Download Latest Version v5.1.1 source code.zip (1.5 MB)
Email in envelope

Get an email when there's a new version of Reselect

Home / v5.1.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2024-06-01 1.5 kB
v5.1.1 source code.tar.gz 2024-06-01 1.4 MB
v5.1.1 source code.zip 2024-06-01 1.5 MB
Totals: 3 Items   2.9 MB 0

This patch release fixes behavior of resultEqualityCheck in weakMapMemoize, fixes the case of lruMemoize being given a maxSize less than 1, and tweaks the internal implementation of lruMemoize. (We've also updated our general build tooling.)

Changelog

Bug fixes

Previously, providing the resultEqualityCheck option to weakMapMemoize resulted in it being called with empty objects as part of the initialization / dev check process. That could be an issue if your comparison function expected different values. We've updated the logic to avoid that, as well as improving a couple other perf aspects.

Previously, passing a maxSize < 1 to lruMemoize would result in it creating a larger cache. That's now fixed.

lruMemoize now uses a symbol for its NOT_FOUND value instead of a string.

What's Changed

Full Changelog: https://github.com/reduxjs/reselect/compare/v5.1.0...v5.1.1

Source: README.md, updated 2024-06-01