This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
v1.0.0-alpha.19
Pre-release
Pre-release
π₯ Includes Breaking changes for Reason users.
This release is mostly a bunch of improvements (with a minor breaking change) for Reason users in addition to a bugfix for an edge case.
π₯ Breaking changes (Reason only)
@phenomic/plugin-renderer-react
: (Reason)jsEdgeToReason
is nowjsEdge
, by @MoOx
There is no transformation anymore. Transformation should be made in your component.
This change is accompanied with a new type to help you (seejsNodeList
type below).
We highly recommend you to take a look to the updated example. See below for more details.
π Bugfixes
@phenomic/core
: support query without path for prerendering as itβs supported by database, by @MoOx
β οΈ Deprecation
hasPreviousPage
&hasNextPage
are deprecated, by @MoOx
Please test directly the existence ofprevious
andnext
.
It will continue to work for a while, but will be remove some day.
This is to make it more straight forward to use pagination in Reason.
πͺ Improvements
-
@phenomic/core
:previousPageIsFirst
now always return a value (false
instead ofundefined
), by @MoOx
This is to make it more straight forward to use pagination in Reason. -
@phenomic/plugin-renderer-react
: (Reason) exposejsNodeList
type, by @MoOx
It is the type of data that comes from list queries.
π Improved Example (Reason)
@MoOx worked a lot on the examples/reason-react-app
:
- upgrade to reason-react 0.3.1
- we switched to es6 for bs generated files
- we added pagination, like in the JavaScript example
- we added react-helmet usage (via bs-react-helmet)
- we reorganized the code and added tiny helpers