build(deps): bump @reduxjs/toolkit from 1.9.7 to 2.2.3
Bumps @reduxjs/toolkit from 1.9.7 to 2.2.3.
Release notes
Sourced from @reduxjs/toolkit's releases.
v2.2.3
This minor release fixes the types for functions that accept a React Context instance to match the changes in React Redux v9.
What's Changed
- Update React Redux dependency to v9, and update docs to use
.withTypesby@aryaemami59in reduxjs/redux-toolkit#4308Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.2...v2.2.3
v2.2.2
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
- rename TypedUseMutationTrigger to TypedMutationTrigger, and add deprecated alias by
@EskiMojo14in reduxjs/redux-toolkit#4204- Fixed memory leak in rapid hook arg changing by
@riqtsin reduxjs/redux-toolkit#4268- Fix incorrect legacy-esm target by
@markeriksonin reduxjs/redux-toolkit#4284Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.2.0...v2.2.2
v2.2.0
This minor release:
- Adds a second parameter to
entityAdapter.getInitialState(additionalProps, entities)to allow prefilling state
- Equivalent to
entityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)- First parameter can be
undefinedif no additional properties are desired- Allows initialising
combineSliceswith no static reducers
- Previously
const combinedReducer = combineSlices().withLazyLoadedSlices<LazyLoadedSlices>()would have thrown an error- Now returns a "no-op" reducer that just returns an empty object until first reducer injected
- Allows a new
'throw'value foroverrideExistingininjectEndpoints, which throws an error if a definition is injected with a name which is already used- Exports more type helpers for RTKQ hook and trigger types
- Exports types related to overriding result types in
enhanceEndpoints- Fixes state inference for injected slices when undeclared (i.e. not in
LazyLoadedSlices)- Adds a
action.meta.arg.isPrefetchvalue to query thunk actions when prefetchedWhat's Changed
- Revamp type tests setup by
@aryaemami59in reduxjs/redux-toolkit#4095- Bump Prettier and Prettier related packages by
@aryaemami59in reduxjs/redux-toolkit#4126- Fix codemods to work with TypeScript 4.7+ by
@aryaemami59in reduxjs/redux-toolkit#4081
... (truncated)
Commits
213b5f4Release 2.2.3cccf40aMerge pull request #4308 from aryaemami59/TypedUseSelectorHook-to-withTypes5a01e09remove unnecessary type param63f708fadd custom context test for apiprovider7e854c4change ApiProvider context argument to match8b5d210Make parameter ofcreateDispatchWithMiddlewareHookFactorynullabledff4cd2Fix nullablereact-reduxcontext references1d8c4b7Bumpreact-reduxto 9.1.057ef6aeReplace all instances ofTypedUseSelectorHookwith.withTypes1afcdd4Merge pull request #4286 from CodeByZack/add-missing-quote- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by phryneas, a new releaser for @reduxjs/toolkit since your current version.
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)