Update dependency @reduxjs/toolkit to v2.1.0 #297

Merged
kjuulh merged 1 commits from renovate/all into main 2024-01-24 11:57:49 +01:00
Owner

This PR contains the following updates:

Package Type Update Change
@reduxjs/toolkit (source) dependencies minor 2.0.1 -> 2.1.0

Release Notes

reduxjs/redux-toolkit

v2.1.0

Compare Source

This minor release:

  • adds withTypes methods to listenerMiddleware and createDraftSafeSelector
  • 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 queryFns
  • marks promises that will never reject as safe, in preparation for https://github.com/typescript-eslint/typescript-eslint/issues/7008

What's Changed

New Contributors

Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.0.1...v2.1.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@reduxjs/toolkit](https://redux-toolkit.js.org) ([source](https://github.com/reduxjs/redux-toolkit)) | dependencies | minor | [`2.0.1` -> `2.1.0`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/2.0.1/2.1.0) | --- ### Release Notes <details> <summary>reduxjs/redux-toolkit</summary> ### [`v2.1.0`](https://github.com/reduxjs/redux-toolkit/releases/tag/v2.1.0) [Compare Source](https://github.com/reduxjs/redux-toolkit/compare/v2.0.1...v2.1.0) This *minor release*: - adds withTypes methods to `listenerMiddleware` and `createDraftSafeSelector` - 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 https://github.com/typescript-eslint/typescript-eslint/issues/7008 #### What's Changed - Update docs to avoid circular type by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/3948 - Copy "Migrating to Modern Redux" and "RTK is Redux" docs from core site by [@&#8203;markerikson](https://github.com/markerikson) in https://github.com/reduxjs/redux-toolkit/pull/3956 - Fix store path rtk-query pokemon api tutorial by [@&#8203;suspiciousRaccoon](https://github.com/suspiciousRaccoon) in https://github.com/reduxjs/redux-toolkit/pull/3611 - tweak RTKQ without hooks section, and add note regarding memoization by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/3963 - Add section regarding overriding deps by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/3968 - Add section re: RR custom context typing change by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/3995 - Add Expo demo app to CI workflow by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/3985 - docs: fix a typo in queries markdown file by [@&#8203;fatihgnc](https://github.com/fatihgnc) in https://github.com/reduxjs/redux-toolkit/pull/4013 - Preserve nullable store state type by avoiding intersection with {} by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/4011 - Upgrade version of "graphql-request" by [@&#8203;phryneas](https://github.com/phryneas) in https://github.com/reduxjs/redux-toolkit/pull/4026 - \[graphql-request-base-query] update RTK peerDependency by [@&#8203;phryneas](https://github.com/phryneas) in https://github.com/reduxjs/redux-toolkit/pull/4027 - fix: improve selectFromResult memoization by [@&#8203;thisjeremiah](https://github.com/thisjeremiah) in https://github.com/reduxjs/redux-toolkit/pull/4029 - Rename "createSliceWithThunks" and "createThunkSlice" to "createAppSlice" by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/4035 - Bump Vitest to latest version by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/4047 - fix inference and order of async thunk generics by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/4061 - Fix markdown links on Next.js page by [@&#8203;DmitryScaletta](https://github.com/DmitryScaletta) in https://github.com/reduxjs/redux-toolkit/pull/4069 - Introduce pre-typed listener middleware via `listenerMiddleware.withTypes<RootState, AppDispatch>()` method by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/4049 - Add `.withTypes` to `createDraftSafeSelector` by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/4080 - Task/remove all settled by [@&#8203;bever1337](https://github.com/bever1337) in https://github.com/reduxjs/redux-toolkit/pull/3917 - Allow customising createSelector instance used by RTKQ by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/4048 - cacheLifecycle fix for fixedCacheKey in mutationThunk by [@&#8203;riqts](https://github.com/riqts) in https://github.com/reduxjs/redux-toolkit/pull/4082 - avoid relying on `this` in createSlice by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/4071 - documentation: fix grammar in redux and redux toolkit comparison by [@&#8203;untilhamza](https://github.com/untilhamza) in https://github.com/reduxjs/redux-toolkit/pull/4086 - Update `tsconfig.typetests.json` to include all TS files by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/4091 - Remove abort event listner for AbortController by [@&#8203;Fonger](https://github.com/Fonger) in https://github.com/reduxjs/redux-toolkit/pull/3951 - Docs: unused value 'isRejected' in code snippet by [@&#8203;alphonsotran](https://github.com/alphonsotran) in https://github.com/reduxjs/redux-toolkit/pull/3301 - fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change on login fullfilled by [@&#8203;shrijan00003](https://github.com/shrijan00003) in https://github.com/reduxjs/redux-toolkit/pull/3588 - Fix `composeWithDevTools` spy by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/4093 - require queryFn meta to match base query by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in https://github.com/reduxjs/redux-toolkit/pull/4098 - Added 'SafePromise' branded Promises for createAsyncThunk by [@&#8203;JoshuaKGoldberg](https://github.com/JoshuaKGoldberg) in https://github.com/reduxjs/redux-toolkit/pull/4102 - Add React Native demo app to CI workflow by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/3984 - Modernize unit test setup by [@&#8203;aryaemami59](https://github.com/aryaemami59) in https://github.com/reduxjs/redux-toolkit/pull/4114 - Add missing reducer field to ConfigureStoreOptions docs by [@&#8203;nickgirardo](https://github.com/nickgirardo) in https://github.com/reduxjs/redux-toolkit/pull/4116 - Option for queries to pause polling when unfocused by [@&#8203;riqts](https://github.com/riqts) in https://github.com/reduxjs/redux-toolkit/pull/4055 #### New Contributors - [@&#8203;suspiciousRaccoon](https://github.com/suspiciousRaccoon) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/3611 - [@&#8203;fatihgnc](https://github.com/fatihgnc) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/4013 - [@&#8203;thisjeremiah](https://github.com/thisjeremiah) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/4029 - [@&#8203;riqts](https://github.com/riqts) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/4082 - [@&#8203;untilhamza](https://github.com/untilhamza) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/4086 - [@&#8203;Fonger](https://github.com/Fonger) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/3951 - [@&#8203;alphonsotran](https://github.com/alphonsotran) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/3301 - [@&#8203;shrijan00003](https://github.com/shrijan00003) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/3588 - [@&#8203;JoshuaKGoldberg](https://github.com/JoshuaKGoldberg) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/4102 - [@&#8203;nickgirardo](https://github.com/nickgirardo) made their first contribution in https://github.com/reduxjs/redux-toolkit/pull/4116 **Full Changelog**: https://github.com/reduxjs/redux-toolkit/compare/v2.0.1...v2.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE2MC4wIn0=-->
kjuulh added 1 commit 2024-01-24 11:31:55 +01:00
Update dependency @reduxjs/toolkit to v2.1.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
8d7d26fdcf
kjuulh merged commit 8d7d26fdcf into main 2024-01-24 11:57:49 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/vidow#297
No description provided.