[Snyk] Upgrade @reduxjs/toolkit from 2.0.1 to 2.2.3 #58
  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.
  
    
  
    
This PR was automatically created by Snyk using the credentials of a real user.

Snyk has created this PR to upgrade @reduxjs/toolkit from 2.0.1 to 2.2.3.
ℹ️ 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 5 versions ahead of your current version.
The recommended version was released on 2 months ago.
Release notes
Package name: @reduxjs/toolkit
- 
        2.2.3 - 2024-03-31
 - Update React Redux dependency to v9, and update docs to use 
 
- 
        2.2.2 - 2024-03-21
 
- rename TypedUseMutationTrigger to TypedMutationTrigger, and add deprecated alias by @ EskiMojo14 in #4204
- Fixed memory leak in rapid hook arg changing by @ riqts in #4268
- Fix incorrect legacy-esm target by @ markerikson in #4284
 
- 
        2.2.1 - 2024-02-14
 
- 
        2.2.0 - 2024-02-12
 - Adds a second parameter to - Equivalent to 
- First parameter can be 
 
- Allows initialising - Previously 
- Now returns a "no-op" reducer that just returns an empty object until first reducer injected
 
- Allows a new 
- Exports more type helpers for RTKQ hook and trigger types
- Exports types related to overriding result types in 
- Fixes state inference for injected slices when undeclared (i.e. not in 
- Adds a 
 - Revamp type tests setup by @ aryaemami59 in #4095
- Bump Prettier and Prettier related packages by @ aryaemami59 in #4126
- Fix codemods to work with TypeScript 4.7+ by @ aryaemami59 in #4081
- Export types related to overriding the result types by @ aryaemami59 in #4134
- Migrate type tests to Vitest by @ aryaemami59 in #4127
- Fix RetryOptions type test by flipping order by @ EskiMojo14 in #4136
- Format all files by @ aryaemami59 in #4135
- [Docs/Website] skipPollingIfUnfocused added to polling overview and query options by @ riqts in #4131
- [Docs] Changed create.asyncThunk setup admonition to caution by @ riqts in #4150
- Temporarily revert node-fetch bump until ESM issues are sorted by @ EskiMojo14 in #4151
- Contributing Markdown Refresh by @ itz-Me-Pj in #4139
- investigate re-adding size limit action by @ EskiMojo14 in #4083
- Add size limit imports for more commonly used RTK exports by @ EskiMojo14 in #4155
- pure some things by @ EskiMojo14 in #4157
- cut back on suffixes tested for size by @ EskiMojo14 in #4160
- Incorrect builder method referenced by @ kantbtrue in #4161
- Rename 
- Migrate Codegen OpenAPI's unit tests to Vitest by @ aryaemami59 in #4137
- Fix wrong state for injected slices when not declared via 
- [Docs, createEntityAdapter API]: add missing setOne and setMany signature by @ kyselberg in #4173
- Corrected the "Observing cache behaviour" example point no.4  by @ 721-atikshaikh in #4174
- feat: add isPrefetch property in query action by @ juliengbt in #4177
- allow initialising combined slice reducer with no static slices by @ EskiMojo14 in #4184
- Create more Typed wrappers for RTKQ hook types by @ EskiMojo14 in #4147
- proposal fix for axios base query types by @ smff in #4186
- Provide 'throw' option for 
- Use vite-tsconfig-paths to make path aliasing easier by @ aryaemami59 in #4175
- Remove trailing commas in 
- [Docs] Added withTypes documentation in createDraftSafeSelector by @ riqts in #4143
- Add second parameter to getInitialState to prefill entities by @ EskiMojo14 in #4183
 - @ itz-Me-Pj made their first contribution in #4139
- @ kantbtrue made their first contribution in #4161
- @ kyselberg made their first contribution in #4173
- @ 721-atikshaikh made their first contribution in #4174
- @ smff made their first contribution in #4186
- @ ffluk3 made their first contribution in #4189
 
- 
        2.1.0 - 2024-01-24
 - adds withTypes methods to 
- adds a 
- adds the ability to customise the 
- reworks slice selector logic to avoid depending on 
- fixes the order and inference of 
- fixes requirements for meta fields returned from 
- marks promises that will never reject as safe, in preparation for typescript-eslint/typescript-eslint#7008
 - Update docs to avoid circular type by @ EskiMojo14 in #3948
- Copy "Migrating to Modern Redux" and "RTK is Redux" docs from core site by @ markerikson in #3956
- Fix store path rtk-query pokemon api tutorial by @ suspiciousRaccoon in #3611
- tweak RTKQ without hooks section, and add note regarding memoization by @ EskiMojo14 in #3963
- Add section regarding overriding deps by @ EskiMojo14 in #3968
- Add section re: RR custom context typing change by @ EskiMojo14 in #3995
- Add Expo demo app to CI workflow by @ aryaemami59 in #3985
- docs: fix a typo in queries markdown file by @ fatihgnc in #4013
- Preserve nullable store state type by avoiding intersection with {} by @ EskiMojo14 in #4011
- Upgrade version of "graphql-request" by @ phryneas in #4026
- [graphql-request-base-query] update RTK peerDependency by @ phryneas in #4027
- fix: improve selectFromResult memoization by @ thisjeremiah in #4029
- Rename "createSliceWithThunks" and "createThunkSlice" to "createAppSlice" by @ EskiMojo14 in #4035
- Bump Vitest to latest version by @ aryaemami59 in #4047
- fix inference and order of async thunk generics by @ EskiMojo14 in #4061
- Fix markdown links on Next.js page by @ DmitryScaletta in #4069
- Introduce pre-typed listener middleware via 
- Add 
- Task/remove all settled by @ bever1337 in #3917
- Allow customising createSelector instance used by RTKQ by @ EskiMojo14 in #4048
- cacheLifecycle fix for fixedCacheKey in mutationThunk by @ riqts in #4082
- avoid relying on 
- documentation: fix grammar in redux and redux toolkit comparison by @ untilhamza in #4086
- Update 
- Remove abort event listner for AbortController by @ Fonger in #3951
- Docs: unused value 'isRejected' in code snippet by @ alphonsotran in #3301
- fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change on login fullfilled by @ shrijan00003 in #3588
- Fix 
- require queryFn meta to match base query by @ EskiMojo14 in #4098
- Added 'SafePromise' branded Promises for createAsyncThunk by @ JoshuaKGoldberg in #4102
- Add React Native demo app to CI workflow by @ aryaemami59 in #3984
- Modernize unit test setup by @ aryaemami59 in #4114
- Add missing reducer field to ConfigureStoreOptions docs by @ nickgirardo in #4116
- Option for queries to pause polling when unfocused by @ riqts in #4055
 - @ suspiciousRaccoon made their first contribution in #3611
- @ fatihgnc made their first contribution in #4013
- @ thisjeremiah made their first contribution in #4029
- @ riqts made their first contribution in #4082
- @ untilhamza made their first contribution in #4086
- @ Fonger made their first contribution in #3951
- @ alphonsotran made their first contribution in #3301
- @ shrijan00003 made their first contribution in #3588
- @ JoshuaKGoldberg made their first contribution in #4102
- @ nickgirardo made their first contribution in #4116
 
- 
        2.0.1 - 2023-12-04
 
from @reduxjs/toolkit GitHub release notesThis bugfix release fixes the types for functions that accept a React Context instance to match the changes in React Redux v9.
What's Changed
.withTypesby @ aryaemami59 in #4308Full Changelog: v2.2.2...v2.2.3
This patch release fixes an incorrect build setting for the
legacy-esmartifacts, and fixes an issue with RTKQ query hooks didn't always remove the cache entries if arguments were changed rapidly.Changes
legacy-esmArtifact TranspilationThe
legacy-esmbuild artifacts are intended for use by Webpack 4. Those were supposed to be transpiled to target"es2017", but were in fact still set to target"esnext"- an oversight during the 2.0 development cycle. This release fixes that setting, so those artifacts are now correctly transpiled.Other Fixes
RTKQ query hooks now handle additional actions around argument changes that should result in cache entries being removed.
Additionally, 2.2.1 contained a fix to an incorrectly named type:
TypedUseMutationTriggeris nowTypedMutationTrigger.What's Changed
Full Changelog: v2.2.0...v2.2.2
Release 2.2.1
This minor release:
entityAdapter.getInitialState(additionalProps, entities)to allow prefilling stateentityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)undefinedif no additional properties are desiredcombineSliceswith no static reducersconst combinedReducer = combineSlices().withLazyLoadedSlices<LazyLoadedSlices>()would have thrown an error'throw'value foroverrideExistingininjectEndpoints, which throws an error if a definition is injected with a name which is already usedenhanceEndpointsLazyLoadedSlices)action.meta.arg.isPrefetchvalue to query thunk actions when prefetchedWhat's Changed
cli.jstocli.mjsby @ aryaemami59 in #4169withLazyLoadedSlicesby @ aryaemami59 in #4172overrideExistingby @ ffluk3 in #4189tsconfig.jsonfiles of all CodesandBox examples by @ aryaemami59 in #4190New Contributors
Full Changelog: v2.1.0...v2.2.0
This minor release:
listenerMiddlewareandcreateDraftSafeSelectorskipPollingIfUnfocusedoption to RTK QuerycreateSelectorinstance used by RTK Querythisvaluecreate.asyncThunktype parametersqueryFnsWhat's Changed
listenerMiddleware.withTypes<RootState, AppDispatch>()method by @ aryaemami59 in #4049.withTypestocreateDraftSafeSelectorby @ aryaemami59 in #4080thisin createSlice by @ EskiMojo14 in #4071tsconfig.typetests.jsonto include all TS files by @ aryaemami59 in #4091composeWithDevToolsspy by @ aryaemami59 in #4093New Contributors
Full Changelog: v2.0.1...v2.1.0
Release 2.0.1
Important
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: