Skip to content

Releases: mediamonks/react-redux-component-init

v2.0.6

13 Apr 09:55
59908c0
Compare
Choose a tag to compare

Fixes a breaking change for server side rendering compatibility

v2.0.5

13 Apr 08:40
36953f1
Compare
Choose a tag to compare

Fix several breaking changes

  • didMount lifecycle was not working properly
  • didUpdate lifecycle prevProps was undefined

v2.0.4

13 Apr 06:38
31c51fa
Compare
Choose a tag to compare
  • Fix peer dependency version
  • Update version

v2.0.3

12 Apr 15:23
0cffb8c
Compare
Choose a tag to compare
  • Upgrade to React 17 compatibility
  • Update lifeCycles
  • Fix publish module flow

note: Did some failed versioning, that's why it is missing v2.0.0, v2.0.1 and v2.0.2

v1.1.0

24 Jun 21:45
Compare
Choose a tag to compare

Security updates for dev-dependencies, including upgrade to babel 7

v1.0.1

04 Feb 16:08
f90469f
Compare
Choose a tag to compare

#32 Small bugfix for isInitializing prop

v1.0.0

19 Dec 12:36
Compare
Choose a tag to compare

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

19 Dec 11:11
Compare
Choose a tag to compare
v1.0.0-rc.4 Pre-release
Pre-release

Includes #30 Allow passing custom component id

v1.0.0-rc.3

17 Dec 21:16
Compare
Choose a tag to compare
v1.0.0-rc.3 Pre-release
Pre-release

Includes #29 (Improved error messages)

v1.0.0-rc.2

14 Dec 11:22
Compare
Choose a tag to compare
v1.0.0-rc.2 Pre-release
Pre-release
  • various small documentation fixes
  • removed warning on calling prepareComponent with clientOnly init action