Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump @reduxjs/toolkit from 2.2.7 to 2.2.8 in /typescript (#2306)
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.2.7 to 2.2.8. <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.2.8</h2> <p>This <strong>bugfix</strong> release fixes a long-standing issue with RTK Query lazy query triggers returning stale data in some cases, fixes an error handling issue in RTK Query, and exports additional TS types.</p> <h2>Changelog</h2> <h3>Lazy Query Trigger Handling</h3> <p>We'd had a couple long-standing issues reporting that <code>const result = await someLazyQueryTrigger()</code> sometimes returned stale data, especially if a mutation had just invalidated that query's tag.</p> <p>We finally got a good repro of this issue and identified it as a mis-written call inside of the middleware that skipped past the necessary handling to activate the correct query status tracking in that scenario. This should now be fixed.</p> <h3>Other Changes</h3> <p>Timeout handling in RTKQ endpoints should now correctly throw a timeout-related error instead of an <code>AbortError</code>.</p> <p>Base queries now have access to the current <code>queryCacheKey</code> value so it can be used in deciding query logic.</p> <p>We've exported several more TS types related to query options, as some users have been depending on those even though they previously weren't part of the public API.</p> <h2>What's Changed</h2> <ul> <li>Export <code>QueryExtraOptions</code> and <code>MutationExtraOptions</code> by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4556">reduxjs/redux-toolkit#4556</a></li> <li>Fix <code>mangleErrors</code> not preserving different error types by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4586">reduxjs/redux-toolkit#4586</a></li> <li>Add the <code>TypedUseQueryStateOptions</code> helper type by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4604">reduxjs/redux-toolkit#4604</a></li> <li>feat(baseQuery): expose queryCacheKey in baseQuery by <a href="https://github.com/HaakonSvane"><code>@HaakonSvane</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4636">reduxjs/redux-toolkit#4636</a></li> <li>Fix <code>AbortError</code> being triggered incorrectly on <code>createApi</code> endpoint timeout by <a href="https://github.com/andrejpavlovic"><code>@andrejpavlovic</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4628">reduxjs/redux-toolkit#4628</a></li> <li>type: export QueryReturnValue by <a href="https://github.com/hornta"><code>@hornta</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4640">reduxjs/redux-toolkit#4640</a></li> <li>call <code>initiate</code> to refetch queries from middleware by <a href="https://github.com/phryneas"><code>@phryneas</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4651">reduxjs/redux-toolkit#4651</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8">https://github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/e7540a5594b0d880037f2ff41a83a32c629d3117"><code>e7540a5</code></a> Release 2.2.8</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/2885f692c2ca0a891eba15f11060e4daa86b0bab"><code>2885f69</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4651">#4651</a> from reduxjs/pr/fix-4650</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/4788d5188f8093424441d250d2d763646d975eff"><code>4788d51</code></a> Add test for lazy query trigger fix</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/a59476efe762f21adb79ea68092f8aa185c970df"><code>a59476e</code></a> call <code>initiate</code> to refetch queries from middleware</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/8178e7f9cf4a0af08a34950aa9f6ea734fbd19b4"><code>8178e7f</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4640">#4640</a> from hornta/export-query-return-value</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/eb11019d7e165919617600c97a26da36af5987e1"><code>eb11019</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4628">#4628</a> from andrejpavlovic/fix/timeout-on-createApi-endpoin...</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/f009cc933be3e44d186cadce81e2ab3fdbe1d2b1"><code>f009cc9</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4636">#4636</a> from HaakonSvane/add-queryCacheKey-to-baseQuery-api</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/c8f37395bc5dc1eb1f77fec2b89a389b6eb78b9a"><code>c8f3739</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4604">#4604</a> from aryaemami59/export-UseQueryStateOptions</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/551ad03882ac936fdce8755bcfd34372441d2fd2"><code>551ad03</code></a> type: export QueryReturnValue</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/e56997103895447a4931601fa8b61368824482f2"><code>e569971</code></a> Add example for <code>TypedUseQueryStateOptions</code></li> <li>Additional commits viewable in <a href="https://github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8">compare view</a></li> </ul> </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.2.7&new-version=2.2.8)](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