Skip to content

v5.0.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@markerikson markerikson released this 02 Dec 03:59
· 230 commits to master since this release

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

Full Changelog: v5.0.0-rc.0...v5.0.0-rc.1