Releases: mediamonks/react-redux-component-init
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v1.1.0
v1.0.1
v1.0.0
Version 1.0.0!
This version is fully backwards compatible with the previous pre-release (v0.3.7)
New features
Documentation and error messages
The long README has been replaced with an extended multi-page documentation that is deployed using Github pages. The formatting has improved a lot, including a new structure for the API documentation. It now also includes a usage guide, which is intended for developers that are not setting up the library but only using it. You can find it at:
https://mediamonks.github.io/react-redux-component-init/
The error messages have been improved to include a link to a section of the documentation where the possible causes of the error are explained in more detail. Errors in validation of prepare state are now of a custom error class PrepareValidationError
, so they can more easily be catched if necessary.
Improved support for client-only initialization
Some initialization should only be done on the client and not prepared on the server. Previously, you had to either use the allowLazy
option to allow deferring the entire action to the client, or move the work to componentDidMount()
. It is now possible to define both a prepared
and clientOnly
init action to a single component. See:
https://mediamonks.github.io/react-redux-component-init/usage/client-only.html
Allow passing of custom component id
Each component wrapped in withInitAction
needs to have a unique identifier. Previously when the displayName
of a component was not unique, you had to use the getPrepareKey
option to replace the entire prepare key. This usage was rather complicated. As an alternative, you can now have the option to replace only the component id with a custom one. See:
https://mediamonks.github.io/react-redux-component-init/api.html#withInitActionCustom
Improved tests
Added more scenarios to unit tests. Also added integration test with a full client/server mock setup.
v1.0.0-rc.4
Includes #30 Allow passing custom component id
v1.0.0-rc.3
Includes #29 (Improved error messages)
v1.0.0-rc.2
- various small documentation fixes
- removed warning on calling
prepareComponent
withclientOnly
init action