Skip to content

chore(deps): bump reselect from 5.2.0 to 5.3.0 in /docs - #43674

Merged
hainenber merged 1 commit into
masterfrom
dependabot/npm_and_yarn/docs/reselect-5.3.0
Aug 29, 2026
Merged

hainenber merged 1 commit into
masterfrom
dependabot/npm_and_yarn/docs/reselect-5.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 29, 2026

Copy link
Copy Markdown
Contributor

Bumps reselect from 5.2.0 to 5.3.0.

Release notes

Sourced from reselect's releases.

v5.3.0

This feature release adds a maxSize option to weakMapMemoize to bound cache growth, adds a new development-mode check that warns when a selector's cache grows without bound, improves memoization performance, removes the experimental unstable_autotrackMemoize, and updates our TypeScript support matrix and documentation.

Changelog

maxSize Option for weakMapMemoize

weakMapMemoize has been the default memoizer since v5.0, and its main benefit is the infinite cache size. Prior to v5, selector instances had a default cache size of 1, which meant having to create unique selector instances per component when sharing selectors that took varying arguments like IDs. weakMapMemoize memoizes based on all arguments, so it eliminated the extra setup work and just stores all cached values.

However, that behavior can also effectively turn into a memory leak depending on what state and arguments are passed in and how they're used in the UI.

weakMapMemoize now accepts a maxSize option that bounds this growth:

const getVisibleItems = weakMapMemoize(
  (items, from, to) => items.slice(from, to),
  { maxSize: 100 }
)

This shares the same maxSize option name as the earlier lruMemoize, but has different behavior. Rather than an LRU eviction, this is a "generational" swap (kind of like a double buffer). When the cache hits its max size, it's swapped out with an empty version and starts over at 0 entries. So, there's effectively at most 2 * maxSize items in memory at any time. If maxSize is not enabled, there's no additional logic or performance overhead. If you do need LRU-style behavior, use lruMemoize instead.

Note that bounding a createSelector selector requires passing maxSize in both memoizeOptions and argsMemoizeOptions, since the two memoization levels have separate caches. See the maxSize docs for details.

Thanks to @​veksa for proposing this in PR #761 and providing memory test infrastructure that helped verify this behavior.

New cacheSizeCheck Dev-Mode Check

We've also added an additional dev-mode check alongside the existing inputStabilityCheck and identityFunctionCheck. If a memoized function has accumulated over 1000 values for the same args, it logs a warning with the function name and stack trace. By default this runs once per function. Unlike the other two checks, it can only be configured globally, via setGlobalDevModeChecks({ cacheSizeCheck: 'always' | 'once' | 'never' })

Performance Improvements

We've revamped our own performance benchmark suite to give better results with more precision and less noise. That's helped verify some additional performance improvements.

  • weakMapMemoize now returns early on a cache hit instead of continuing through bookkeeping
  • lruMemoize's cache lookup was simplified to eliminate unnecessary allocations

These are small wins on already-fast paths, but did show modest improvements.

Removal of unstable_autotrackMemoize

We've removed the experimental unstable_autotrackMemoize export. It was added in v5.0 as an experiment in Glimmer-style dependency tracking, never left unstable_, and as far as we can tell never saw real adoption. If you were using it, switch to weakMapMemoize (the default) or lruMemoize.

TypeScript Support

Our TypeScript support matrix is now 5.6 and up, matching DefinitelyTyped, and CI now tests against TS 6.0.

We've documented on the selector fields that a full cache reset requires clearing both memoization levels: selector.clearCache() plus selector.memoizedResultFunc.clearCache().

We improved types handling in cases where TS strict mode is off (but please migrate to strict behavior as soon as possible!)

... (truncated)

Commits
  • 73e2049 Release 5.3.0
  • 20a91eb Merge pull request #785 from reduxjs/docs/weakmap-hotpath-docs
  • 24bb579 Add docs note on complex selectors and state
  • c57b567 Merge pull request #784 from reduxjs/feature/remove-autotrack
  • 0b0b30b Remove experimental autoTrackMemoize
  • 96d81d3 Merge pull request #760 from veksa/fix/569-clearing-selector-cache
  • 5f51f11 types: document dual cache on selector fields and add clearCache type test (#...
  • 0a64b33 docs: clarify how to fully clear a selector's cache (#569)
  • 77a5b6a Merge pull request #783 from reduxjs/feature/weakmap-maxsize
  • 0f785da Document weakMap maxSize option
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Dependabot - Pull requests that update Javascript code labels Aug 29, 2026
@bito-code-review

bito-code-review Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #3101

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 3322c80..3322c80
    • docs/yarn.lock
  • Files skipped - 1
    • docs/package.json - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added doc Namespace | Anything related to documentation and removed dependencies:npm labels Aug 29, 2026
@netlify

netlify Bot commented Aug 29, 2026

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 3322c80
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a92532ae011ce0008bb43a0
😎 Deploy Preview https://deploy-preview-43674--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hainenber
hainenber merged commit 7bc44d5 into master Aug 29, 2026
82 checks passed
@hainenber
hainenber deleted the dependabot/npm_and_yarn/docs/reselect-5.3.0 branch August 29, 2026 06:41
rusackas pushed a commit that referenced this pull request Aug 29, 2026
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file doc Namespace | Anything related to documentation javascript Dependabot - Pull requests that update Javascript code size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant