Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump @reduxjs/toolkit from 2.0.1 to 2.1.0 in /webapp (microsoft#798)
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.0.1 to 2.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/reduxjs/redux-toolkit/releases"><code>@reduxjs/toolkit</code>'s releases</a>.</em></p> <blockquote> <h2>v2.1.0</h2> <p>This <em>minor release</em>:</p> <ul> <li>adds withTypes methods to <code>listenerMiddleware</code> and <code>createDraftSafeSelector</code></li> <li>adds a <code>skipPollingIfUnfocused</code> option to RTK Query</li> <li>adds the ability to customise the <code>createSelector</code> instance used by RTK Query</li> <li>reworks slice selector logic to avoid depending on <code>this</code> value</li> <li>fixes the order and inference of <code>create.asyncThunk</code> type parameters</li> <li>fixes requirements for meta fields returned from <code>queryFn</code>s</li> <li>marks promises that will never reject as safe, in preparation for <a href="https://github.com/typescript-eslint/typescript-eslint/issues/7008">typescript-eslint/typescript-eslint#7008</a></li> </ul> <h2>What's Changed</h2> <ul> <li>Update docs to avoid circular type by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3948">reduxjs/redux-toolkit#3948</a></li> <li>Copy "Migrating to Modern Redux" and "RTK is Redux" docs from core site by <a href="https://github.com/markerikson"><code>@markerikson</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3956">reduxjs/redux-toolkit#3956</a></li> <li>Fix store path rtk-query pokemon api tutorial by <a href="https://github.com/suspiciousRaccoon"><code>@suspiciousRaccoon</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3611">reduxjs/redux-toolkit#3611</a></li> <li>tweak RTKQ without hooks section, and add note regarding memoization by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3963">reduxjs/redux-toolkit#3963</a></li> <li>Add section regarding overriding deps by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3968">reduxjs/redux-toolkit#3968</a></li> <li>Add section re: RR custom context typing change by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3995">reduxjs/redux-toolkit#3995</a></li> <li>Add Expo demo app to CI workflow by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3985">reduxjs/redux-toolkit#3985</a></li> <li>docs: fix a typo in queries markdown file by <a href="https://github.com/fatihgnc"><code>@fatihgnc</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4013">reduxjs/redux-toolkit#4013</a></li> <li>Preserve nullable store state type by avoiding intersection with {} by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4011">reduxjs/redux-toolkit#4011</a></li> <li>Upgrade version of "graphql-request" by <a href="https://github.com/phryneas"><code>@phryneas</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4026">reduxjs/redux-toolkit#4026</a></li> <li>[graphql-request-base-query] update RTK peerDependency by <a href="https://github.com/phryneas"><code>@phryneas</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4027">reduxjs/redux-toolkit#4027</a></li> <li>fix: improve selectFromResult memoization by <a href="https://github.com/thisjeremiah"><code>@thisjeremiah</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4029">reduxjs/redux-toolkit#4029</a></li> <li>Rename "createSliceWithThunks" and "createThunkSlice" to "createAppSlice" by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4035">reduxjs/redux-toolkit#4035</a></li> <li>Bump Vitest to latest version by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4047">reduxjs/redux-toolkit#4047</a></li> <li>fix inference and order of async thunk generics by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4061">reduxjs/redux-toolkit#4061</a></li> <li>Fix markdown links on Next.js page by <a href="https://github.com/DmitryScaletta"><code>@DmitryScaletta</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4069">reduxjs/redux-toolkit#4069</a></li> <li>Introduce pre-typed listener middleware via <code>listenerMiddleware.withTypes<RootState, AppDispatch>()</code> method by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4049">reduxjs/redux-toolkit#4049</a></li> <li>Add <code>.withTypes</code> to <code>createDraftSafeSelector</code> by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4080">reduxjs/redux-toolkit#4080</a></li> <li>Task/remove all settled by <a href="https://github.com/bever1337"><code>@bever1337</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3917">reduxjs/redux-toolkit#3917</a></li> <li>Allow customising createSelector instance used by RTKQ by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4048">reduxjs/redux-toolkit#4048</a></li> <li>cacheLifecycle fix for fixedCacheKey in mutationThunk by <a href="https://github.com/riqts"><code>@riqts</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4082">reduxjs/redux-toolkit#4082</a></li> <li>avoid relying on <code>this</code> in createSlice by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4071">reduxjs/redux-toolkit#4071</a></li> <li>documentation: fix grammar in redux and redux toolkit comparison by <a href="https://github.com/untilhamza"><code>@untilhamza</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4086">reduxjs/redux-toolkit#4086</a></li> <li>Update <code>tsconfig.typetests.json</code> to include all TS files by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4091">reduxjs/redux-toolkit#4091</a></li> <li>Remove abort event listner for AbortController by <a href="https://github.com/Fonger"><code>@Fonger</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3951">reduxjs/redux-toolkit#3951</a></li> <li>Docs: unused value 'isRejected' in code snippet by <a href="https://github.com/alphonsotran"><code>@alphonsotran</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3301">reduxjs/redux-toolkit#3301</a></li> <li>fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change on login fullfilled by <a href="https://github.com/shrijan00003"><code>@shrijan00003</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3588">reduxjs/redux-toolkit#3588</a></li> <li>Fix <code>composeWithDevTools</code> spy by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4093">reduxjs/redux-toolkit#4093</a></li> <li>require queryFn meta to match base query by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4098">reduxjs/redux-toolkit#4098</a></li> <li>Added 'SafePromise' branded Promises for createAsyncThunk by <a href="https://github.com/JoshuaKGoldberg"><code>@JoshuaKGoldberg</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4102">reduxjs/redux-toolkit#4102</a></li> <li>Add React Native demo app to CI workflow by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/3984">reduxjs/redux-toolkit#3984</a></li> <li>Modernize unit test setup by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4114">reduxjs/redux-toolkit#4114</a></li> <li>Add missing reducer field to ConfigureStoreOptions docs by <a href="https://github.com/nickgirardo"><code>@nickgirardo</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4116">reduxjs/redux-toolkit#4116</a></li> <li>Option for queries to pause polling when unfocused by <a href="https://github.com/riqts"><code>@riqts</code></a> in <a href="https://github.com/reduxjs/redux-toolkit/pull/4055">reduxjs/redux-toolkit#4055</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/suspiciousRaccoon"><code>@suspiciousRaccoon</code></a> made their first contribution in <a href="https://github.com/reduxjs/redux-toolkit/pull/3611">reduxjs/redux-toolkit#3611</a></li> <li><a href="https://github.com/fatihgnc"><code>@fatihgnc</code></a> made their first contribution in <a href="https://github.com/reduxjs/redux-toolkit/pull/4013">reduxjs/redux-toolkit#4013</a></li> <li><a href="https://github.com/thisjeremiah"><code>@thisjeremiah</code></a> made their first contribution in <a href="https://github.com/reduxjs/redux-toolkit/pull/4029">reduxjs/redux-toolkit#4029</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/f5b07fee734bb75288c64e1a4b8c14d005fa22a4"><code>f5b07fe</code></a> bump RTK to 2.1.0</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/bb28db36835df7128cddb1baff23cd9ccabddd69"><code>bb28db3</code></a> Merge pull request <a href="https://github.com/reduxjs/redux-toolkit/issues/4055">#4055</a> from riqts/Pause-Polling-When-Unfocused</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/8cbf2a1c9fbe50037a00f376a2cd274b83f3b27f"><code>8cbf2a1</code></a> skipPollOnFocused lost to skipPollingIfUnfocused and yarn format</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/4ae5a9bbdfe4e7f941b6b156ad07f130eca52269"><code>4ae5a9b</code></a> Polling skipPollOnFocusLost behavior changed to skip if any subscription has ...</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/e676ee8d28c1929e5963558c9740491d5e0de3cf"><code>e676ee8</code></a> Removed redundant createListenerMiddleware from tests</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/b9d37c3d56157b9b99daaff4fae3ce4e59c54491"><code>b9d37c3</code></a> changed polling test name to represent actual behaviour</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/65b448f9099a378d3db9ba48fb000b0fa2cc8647"><code>65b448f</code></a> Update skipPollOnFocusLost to use listenerMiddleware</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/823c3b70b907a6ee5e2e2676011960cca641c6e6"><code>823c3b7</code></a> Format skipPollOnFocusLost test</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/65a6ae32a21223527a81bff8b46bbdadd4e3fe20"><code>65a6ae3</code></a> Added mockClear() to mockBaseQuery in failing test</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/e7fce612d6f0be73ebc08862dc7905ec794b6d5b"><code>e7fce61</code></a> Add tests for 'skipPollOnFocusLost' option</li> <li>Additional commits viewable in <a href="https://github.com/reduxjs/redux-toolkit/compare/v2.0.1...v2.1.0">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~phryneas">phryneas</a>, a new releaser for <code>@reduxjs/toolkit</code> since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@reduxjs/toolkit&package-manager=npm_and_yarn&previous-version=2.0.1&new-version=2.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information