Bump @reduxjs/toolkit from 2.0.1 to 2.1.0
Bumps @reduxjs/toolkit from 2.0.1 to 2.1.0.
Release notes
Sourced from @reduxjs/toolkit
's releases.
v2.1.0
This minor release:
- adds withTypes methods to
listenerMiddleware
andcreateDraftSafeSelector
- adds a
skipPollingIfUnfocused
option to RTK Query- adds the ability to customise the
createSelector
instance used by RTK Query- reworks slice selector logic to avoid depending on
this
value- fixes the order and inference of
create.asyncThunk
type parameters- fixes requirements for meta fields returned from
queryFn
s- marks promises that will never reject as safe, in preparation for typescript-eslint/typescript-eslint#7008
What's Changed
- Update docs to avoid circular type by
@EskiMojo14
in reduxjs/redux-toolkit#3948- Copy "Migrating to Modern Redux" and "RTK is Redux" docs from core site by
@markerikson
in reduxjs/redux-toolkit#3956- Fix store path rtk-query pokemon api tutorial by
@suspiciousRaccoon
in reduxjs/redux-toolkit#3611- tweak RTKQ without hooks section, and add note regarding memoization by
@EskiMojo14
in reduxjs/redux-toolkit#3963- Add section regarding overriding deps by
@EskiMojo14
in reduxjs/redux-toolkit#3968- Add section re: RR custom context typing change by
@EskiMojo14
in reduxjs/redux-toolkit#3995- Add Expo demo app to CI workflow by
@aryaemami59
in reduxjs/redux-toolkit#3985- docs: fix a typo in queries markdown file by
@fatihgnc
in reduxjs/redux-toolkit#4013- Preserve nullable store state type by avoiding intersection with {} by
@EskiMojo14
in reduxjs/redux-toolkit#4011- Upgrade version of "graphql-request" by
@phryneas
in reduxjs/redux-toolkit#4026- [graphql-request-base-query] update RTK peerDependency by
@phryneas
in reduxjs/redux-toolkit#4027- fix: improve selectFromResult memoization by
@thisjeremiah
in reduxjs/redux-toolkit#4029- Rename "createSliceWithThunks" and "createThunkSlice" to "createAppSlice" by
@EskiMojo14
in reduxjs/redux-toolkit#4035- Bump Vitest to latest version by
@aryaemami59
in reduxjs/redux-toolkit#4047- fix inference and order of async thunk generics by
@EskiMojo14
in reduxjs/redux-toolkit#4061- Fix markdown links on Next.js page by
@DmitryScaletta
in reduxjs/redux-toolkit#4069- Introduce pre-typed listener middleware via
listenerMiddleware.withTypes<RootState, AppDispatch>()
method by@aryaemami59
in reduxjs/redux-toolkit#4049- Add
.withTypes
tocreateDraftSafeSelector
by@aryaemami59
in reduxjs/redux-toolkit#4080- Task/remove all settled by
@bever1337
in reduxjs/redux-toolkit#3917- Allow customising createSelector instance used by RTKQ by
@EskiMojo14
in reduxjs/redux-toolkit#4048- cacheLifecycle fix for fixedCacheKey in mutationThunk by
@riqts
in reduxjs/redux-toolkit#4082- avoid relying on
this
in createSlice by@EskiMojo14
in reduxjs/redux-toolkit#4071- documentation: fix grammar in redux and redux toolkit comparison by
@untilhamza
in reduxjs/redux-toolkit#4086- Update
tsconfig.typetests.json
to include all TS files by@aryaemami59
in reduxjs/redux-toolkit#4091- Remove abort event listner for AbortController by
@Fonger
in reduxjs/redux-toolkit#3951- Docs: unused value 'isRejected' in code snippet by
@alphonsotran
in reduxjs/redux-toolkit#3301- fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change on login fullfilled by
@shrijan00003
in reduxjs/redux-toolkit#3588- Fix
composeWithDevTools
spy by@aryaemami59
in reduxjs/redux-toolkit#4093- require queryFn meta to match base query by
@EskiMojo14
in reduxjs/redux-toolkit#4098- Added 'SafePromise' branded Promises for createAsyncThunk by
@JoshuaKGoldberg
in reduxjs/redux-toolkit#4102- Add React Native demo app to CI workflow by
@aryaemami59
in reduxjs/redux-toolkit#3984- Modernize unit test setup by
@aryaemami59
in reduxjs/redux-toolkit#4114- Add missing reducer field to ConfigureStoreOptions docs by
@nickgirardo
in reduxjs/redux-toolkit#4116- Option for queries to pause polling when unfocused by
@riqts
in reduxjs/redux-toolkit#4055New Contributors
@suspiciousRaccoon
made their first contribution in reduxjs/redux-toolkit#3611@fatihgnc
made their first contribution in reduxjs/redux-toolkit#4013@thisjeremiah
made their first contribution in reduxjs/redux-toolkit#4029
... (truncated)
Commits
-
f5b07fe
bump RTK to 2.1.0 -
bb28db3
Merge pull request #4055 from riqts/Pause-Polling-When-Unfocused -
8cbf2a1
skipPollOnFocused lost to skipPollingIfUnfocused and yarn format -
4ae5a9b
Polling skipPollOnFocusLost behavior changed to skip if any subscription has ... -
e676ee8
Removed redundant createListenerMiddleware from tests -
b9d37c3
changed polling test name to represent actual behaviour -
65b448f
Update skipPollOnFocusLost to use listenerMiddleware -
823c3b7
Format skipPollOnFocusLost test -
65a6ae3
Added mockClear() to mockBaseQuery in failing test -
e7fce61
Add tests for 'skipPollOnFocusLost' option - 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 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