Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @reduxjs/toolkit from 1.9.1 to 1.9.2 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade @reduxjs/toolkit from 1.9.1 to 1.9.2.

ℹ️ 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.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 21 days ago, on 2023-01-28.
Release notes
Package name: @reduxjs/toolkit
  • 1.9.2 - 2023-01-28

    This bugfix release fixes a memory leak in createListenerMiddleware, optimizes performance inside serializableMiddleware, adds new options for fetchBaseQuery, adds support for path RegExp exclusions in serializableMiddleware and immutabilityMiddleware, and improves some TS types.

    Changelog

    Bug Fixes

    createListenerMiddleware had a memory leak that turned out to be due to use of Promise.race(). We've restructured the logic to fix that.

    fetchBaseQuery now correctly combines global options with endpoint / default options in all cases.

    New Options

    fetchBaseQuery now supports a jsonReplacer option that will be used when processing JSON.

    Both dev check middleware now support regular expressions in the ignoredPaths array in addition to strings. This adds extra flexibility in skipping certain fields.

    TS Changes

    The CaseReducer type was sometimes incorrectly inferring its return type in rare cases. That's been fixed.

    The isAnyOf/isAllOf matcher function TS types have been tweaked to not require an individual first parameter. This allows spreading arrays of matchers as arguments, like const isLoading = isAnyOf(...interestingPendingThunksArray).

    Other Changes

    The serializableMiddleware now uses a WeakSet if available to cache values it's seen. This should significantly speed up checks against large state values in development builds.

    What's Changed

    • fix CaseReducer to infer from argument, not return value by @ phryneas in #3054
    • fetchBaseQuery | Add jsonReplacer param by @ tophep in #2904
    • Support RegExp in ignoredPaths/ignoredActionPaths by @ markerikson in #3129
    • fix(types): export ThunkWithReturnValue interface by @ giomogna in #3108
    • remove unnecessary fetchBaseQuery defaults by @ phryneas in #3062
    • make isAnyOf friendly for mapped matchers, but making argument optional by @ megagon in #3123
    • raceWithSignal method instead of Promise.race by @ phryneas in #3021
    • Fix lint problems and enable linting on CI by @ thorn0 in #2992
    • Add caching to serializableStateInvariantMiddleware by @ GeorchW in #3115
    • Allow TS isolatedModules flag to be set for safer transpilation by @ matmannion in #2911

    Full Changelog: v1.9.1...v1.9.2

  • 1.9.1 - 2022-11-30

    This bugfix release fixes assorted issues that were reported with RTK 1.9.0, and adds a few additional requested tweaks and improvements.

    Changelog

    Fixes

    The createAsyncThunk.withTypes function was fully broken (it type-checked correctly, but pointed to the wrong function due to a name shadowing issue). That now works correctly.

    The maxRetries option for RTKQ was inadvertently filtering out 0 values, and those are now accepted.

    fulfillWithValue had incorrect types that made it appear as if the data was nested an additional level deeper. The types are now correct.

    The ActionCreatorWithoutPayload type was tweaked to force an error when an action creator is accidentally called with an argument, which happens in cases like onClick={todoAdded}. This avoids accidentally passing values like React event objects as the payload.

    Timer handling for batchActions and autoBatchEnhancer now works in more JS runtime environments.

    Other Changes

    The TagDescription type is now exported from RTKQ.

    API endpoints now have a .name field containing the endpoint name, such as "getPokemon".

    Calling promise.abort() on a createAsyncThunk promise before an async condition resolves will now be treated as if the condition itself returned false, bailing out and not dispatching anything.

    The merge option now receives a third argument containing {arg, baseQueryMeta, fulfilledTimeStamp, requestId}, in case that info is useful in deciding how to merge.

    The @ reduxjs/rtk-codemods package has been updated to fix cases where the createSliceBuilder codemod didn't preserve fields with function variable arguments, like [todoAdded]: adapter.addOne. That package has been updated to v0.0.3.

    What's Changed

    Full Changelog: v1.9.0...v1.9.1

from @reduxjs/toolkit GitHub release notes
Commit messages
Package name: @reduxjs/toolkit
  • a72bee9 Merge pull request #2911 from matmannion/isolated-modules
  • 67a69e8 Merge pull request #3115 from GeorchW/serializable-state-invariant-middleware-caching
  • bcd0615 Simplify test
  • f9049cc Add caching to serializableStateInvariantMiddleware
  • f5f8bc2 Merge pull request #2761 from huyenltnguyen/docs/codegen
  • 0678c2e Merge pull request #2992 from thorn0/lint1
  • d9374c7 Merge pull request #3021 from reduxjs/pr/fix-signal-race-memleak
  • 59899f4 Merge pull request #3123 from megagon/type-error-anyoff-with-map
  • f5d7d15 make isAnyOf friendly for mapped matchers, but making argument optional
  • 02c2e9b Merge pull request #3062 from reduxjs/pr/fBQ-remove-defaults
  • 54bbb32 `raceWithSignal` method instead of `Promise.race`
  • a9abb1d remove unnecessary fetchBaseQuery defaults
  • bd9c4ab Merge pull request #3108 from giomogna/export-thunk-with-return-value
  • dbe83fb Merge pull request #3129 from reduxjs/feature/regexp-in-ignored-paths
  • 0fab520 Add RegExp support to immutability middleware
  • b27aa9b Support RegExp in ignoredPaths/ignoredActionPaths
  • 85ec86b Merge pull request #2954 from OliverRadini/issues/2947
  • 13d48e2 Merge pull request #2904 from tophep/feature/add-json-replacer-to-fetchBaseQuery
  • 37a33fb Merge pull request #2842 from rahsheen/feat/add-react-bindings-to-getting-started
  • db1873d fix(types): export ThunkWithReturnValue interface
  • d2d0f70 Merge pull request #3054 from reduxjs/pr/fix-caseReducer-inference
  • 0ed008f Merge pull request #3067 from nevsky118/nevsky118-patch-1
  • ac8e5f6 Fix docs typo
  • 8beef87 fix CaseReducer to infer from argument, not return value

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

@netlify
Copy link

netlify bot commented Feb 19, 2023

Deploy Preview for react-samurai-tenzies ready!

Name Link
🔨 Latest commit aa160b5
🔍 Latest deploy log https://app.netlify.com/sites/react-samurai-tenzies/deploys/63f1c20438b71f000735166c
😎 Deploy Preview https://deploy-preview-5--react-samurai-tenzies.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant