[Snyk] Upgrade @reduxjs/toolkit from 1.8.5 to 1.8.6 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @reduxjs/toolkit from 1.8.5 to 1.8.6.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @reduxjs/toolkit
-
1.8.6 - 2022-10-09
- Fix the
- fix(toolkit): export "ThunkMiddleware" from redux-thunk by @ VinceOPS in #2745
- Remove previous api tags before adding new provided tags by @ Bezmehrabi in #2702
- Fix invalidateTags by @ manceau-jb in #2721
-
1.8.5 - 2022-08-19
- Prevent
- remove typeof undefined checks where not necessary 🐃🪒 by @ phryneas in #1726
- Update RDT options types, and export those + AnyListenerPredicate by @ markerikson in #2596
- Ensures there is no unexpected slash in url before query params by @ ygrishajev in #2470
from @reduxjs/toolkit GitHub release notesThis bugfix release fixes a couple of issues with RTKQ endpoint tags not invalidating correctly, and tweaks the
dispatchtype inference to handle more variations of arrays.What's Changed
dispatchtype inference to correctly handle read-only middleware arrays by @ dokmic in #2629Full Changelog: v1.8.5...v1.8.6
This bugfix releas fixes an issue with large
keepUnusedDataForvalues overflowing JS timers, exports the types for the Redux DevTools Extension option, and and improves behavior of URL string generation.Changelog
keepUnusedDataForTimer FixkeepUnusedDataForaccepts a value in seconds. When there are no more active subscriptions for a piece of data, RTKQ will set a timer usingsetTimeout, andkeepUnusedDataFor * 1000as the timer value.We've been advising users that if they want to keep data in the cache forever that they should use a very large value for
keepUnusedDataFor, such as 10 years in seconds.However, it turns out that JS engines use a 32-bit signed int for timers, and 32-bits in milliseconds is only 24.8 days. If a timer is given a value larger than that, it triggers immediately.
We've updated the internal logic to clamp the
keepUnusedDataForvalue to be between 0 andTHIRTY_TWO_BIT_MAX_TIMER_SECONDS - 1.Note that in RTK 1.9 (coming soon), RTKQ will also accept
Infinityas a specialkeepUnusedDataForvalue to indicate cached data should never be expired.Other Changes
RTK inlines the TS types for the Redux DevTools Extension options to avoid an extra dependency, but the TS type for the options object wasn't exported publicly. We now export the
DevToolsEnhancerOptionstype.The logic for generating a final URL has been updated to avoid adding an extra trailing
/.What's Changed
keepUnusedDataForvalues from overflowingsetTimeoutcounter by @ markerikson in #2595Full Changelog: v1.8.4...v1.8.5
Commit messages
Package name: @reduxjs/toolkit
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs