v5.0.0-rc.1
This release candidate renames the original defaultMemoize function to lruMemoize, and improves dev check warnings to include a stack trace to help track down details. This release has breaking changes.
See the preview Redux Toolkit 2.0 + Redux core 5.0 Migration Guide for an overview of breaking changes in RTK 2.0 and Redux core.
npm install reselect@next
yarn add reselect@next
Changelog
Renaming defaultMemoize to lruMemoize
Reselect's createSelector originally only had one memoization function, which has always called defaultMemoize. In the previous v5.0.0-rc.0 release, we switched createSelector to use the new weakMapMemoize function as the default.
That meant that defaultMemoize was now badly named, because it isn't the default any more.
Given that, we've renamed defaultMemoize to lruMemoize, to better describe what it does.
This should not affect most Reselect users, since few apps actually customize selector setup. For those that do have references to defaultMemoize in the codebase, replace those with lruMemoize.
What's Changed
- Add stack to dev check warnings by @EskiMojo14 in https://github.com/reduxjs/reselect/pull/653
- Rename
defaultMemoizetolruMemoizeby @aryaemami59 in https://github.com/reduxjs/reselect/pull/654
Full Changelog: https://github.com/reduxjs/reselect/compare/v5.0.0-rc.0...v5.0.0-rc.1