Skip to content

v5.2.0

Compare
Choose a tag to compare
@davidgilbertson davidgilbertson released this 30 Mar 10:55
· 24 commits to master since this release

New stuff

  • Recollect now exports PropTypes, a replacement for the prop-types library. This ensures that Recollect ignores reads from the store that occur while React is checking prop types.
  • getListenersByComponent() and getComponentsByListener() helpers for better debugging in the console.

Improvements

Webpack has been replaced with Rollup, and there are now CommonJS, ES6 modules, and UMD builds - each with a separate prod and dev build. Dev builds contain better errors and the two new helpers mentioned above.

Builds are now smaller in many cases. For example, if a project already has @material-ui/core, adding Recollect is only 3 KB instead of 5 KB.

Bug fixes

  • Previously, reading from the store using the in operator (e.g. if ('title' in store.page) ...) inside componentDidUpdate would result in reads for the 'previous' store being routed to the current store.