Bump @reduxjs/toolkit from 2.1.0 to 2.2.0
Bumps @reduxjs/toolkit from 2.1.0 to 2.2.0.
Release notes
Sourced from @reduxjs/toolkit
's releases.
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
undefined
if no additional properties are desired- Allows initialising
combineSlices
with 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 foroverrideExisting
ininjectEndpoints
, 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.isPrefetch
value to query thunk actions when prefetchedWhat's Changed
- Revamp type tests setup by
@aryaemami59
in reduxjs/redux-toolkit#4095- Bump Prettier and Prettier related packages by
@aryaemami59
in reduxjs/redux-toolkit#4126- Fix codemods to work with TypeScript 4.7+ by
@aryaemami59
in reduxjs/redux-toolkit#4081- Export types related to overriding the result types by
@aryaemami59
in reduxjs/redux-toolkit#4134- Migrate type tests to Vitest by
@aryaemami59
in reduxjs/redux-toolkit#4127- Fix RetryOptions type test by flipping order by
@EskiMojo14
in reduxjs/redux-toolkit#4136- Format all files by
@aryaemami59
in reduxjs/redux-toolkit#4135- [Docs/Website] skipPollingIfUnfocused added to polling overview and query options by
@riqts
in reduxjs/redux-toolkit#4131- [Docs] Changed create.asyncThunk setup admonition to caution by
@riqts
in reduxjs/redux-toolkit#4150- Temporarily revert node-fetch bump until ESM issues are sorted by
@EskiMojo14
in reduxjs/redux-toolkit#4151- Contributing Markdown Refresh by
@itz-Me-Pj
in reduxjs/redux-toolkit#4139- investigate re-adding size limit action by
@EskiMojo14
in reduxjs/redux-toolkit#4083- Add size limit imports for more commonly used RTK exports by
@EskiMojo14
in reduxjs/redux-toolkit#4155- pure some things by
@EskiMojo14
in reduxjs/redux-toolkit#4157- cut back on suffixes tested for size by
@EskiMojo14
in reduxjs/redux-toolkit#4160- Incorrect builder method referenced by
@kantbtrue
in reduxjs/redux-toolkit#4161- Rename
cli.js
tocli.mjs
by@aryaemami59
in reduxjs/redux-toolkit#4169- Migrate Codegen OpenAPI's unit tests to Vitest by
@aryaemami59
in reduxjs/redux-toolkit#4137- Fix wrong state for injected slices when not declared via
withLazyLoadedSlices
by@aryaemami59
in reduxjs/redux-toolkit#4172- [Docs, createEntityAdapter API]: add missing setOne and setMany signature by
@kyselberg
in reduxjs/redux-toolkit#4173- Corrected the "Observing cache behaviour" example point no.4 by
@721-atikshaikh
in reduxjs/redux-toolkit#4174- feat: add isPrefetch property in query action by
@juliengbt
in reduxjs/redux-toolkit#4177- allow initialising combined slice reducer with no static slices by
@EskiMojo14
in reduxjs/redux-toolkit#4184- Create more Typed wrappers for RTKQ hook types by
@EskiMojo14
in reduxjs/redux-toolkit#4147- proposal fix for axios base query types by
@smff
in reduxjs/redux-toolkit#4186- Provide 'throw' option for
overrideExisting
by@ffluk3
in reduxjs/redux-toolkit#4189- Use vite-tsconfig-paths to make path aliasing easier by
@aryaemami59
in reduxjs/redux-toolkit#4175- Remove trailing commas in
tsconfig.json
files of all CodesandBox examples by@aryaemami59
in reduxjs/redux-toolkit#4190- [Docs] Added withTypes documentation in createDraftSafeSelector by
@riqts
in reduxjs/redux-toolkit#4143- Add second parameter to getInitialState to prefill entities by
@EskiMojo14
in reduxjs/redux-toolkit#4183New Contributors
@itz-Me-Pj
made their first contribution in reduxjs/redux-toolkit#4139@kantbtrue
made their first contribution in reduxjs/redux-toolkit#4161
... (truncated)
Commits
-
2341224
v2.2.0 -
23f1114
Merge pull request #4183 from reduxjs/getinitialstate-entities -
5ea4c31
Merge pull request #4143 from riqts/document-withTypes-for-2.1.0 -
6f4194d
Merge pull request #4190 from aryaemami59/reformat-files -
5aa2594
Reformat all files one more time -
7a5b39a
Slightly modify prettier config -
d09ab21
Change test timeout for codegen -
8eff730
Merge pull request #4175 from aryaemami59/use-tsconfigPaths -
554aac6
Addpool: "forks"
to vitest config of codegen -
c979069
Reformat files to remove trailing commas in tsconfig files - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts