This release might include breaking changes for you.
This is one of the final step before stable 1.0.0! The breaking changes included in this release are for the best. We have worked hard so you can be able to use simple options for plugins, exactly like babel. More on this below.
If you use
@phenomic/preset-react-app without any customisation, you are
probably all good
hasPreviousPage. If you were still using those, just replace your test with the presence of next
If your are using custom plugins, you will have to update some signatures.
Previously, using JSON files that were array was broken. We were spreading JSON
like if it was an object. We adjusted the behavior that might affect
(when you fetch list via queries) if you had a "partial" entry in your JSON
(edge case). Reach us on our community tools if you struggle updating.
front-matter, please open an issue so we can improve the situation so we can
work on allowing
Please check flow definitions until docs is online (major change is that config is not send since plugin receive it when it's created). All signatures for plugin have been adjusted. Please take a look if you are a plugin author. See https://github.com/phenomic/phenomic/blob/954fbe16f20a51af90cbd6a25502da1426e4bdc5/flow-typed/phenomic.js#L159-L202
See last item of this list to see an example ;)
You can now send a baseUrl in phenomic configuration. This allow website to work at a folder level of a domain (eg: http://domain.tld/root/).
Note that this will directly be reflected during development for your mental
health! This means you will have to open
Like CRA support
during compilation, you will have access to
PHENOMIC_* var that you can define
from .env files. We are using https://github.com/motdotla/dotenv hunder the
This method is mostly for plugin developers. Calling this method should be made
import query from "@phenomic/api-client/lib/query”;. Be careful to use
this method wisely as it won’t be magically pre-rendered for all end point
unless a plugin handle the static rendering of the resource.
Example of the config for Phenomic website
📝 Various minor docs improvements by @getDanArias