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.2.3 to 2.2.5 in /webapp (microsoft#985)
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 2.2.3 to 2.2.5. <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.5</h2> <p>This <strong>bugfix release</strong> fixes an issue in the recent <code>createEntityAdapter</code> sorting perf improvements that could (in specific cases) cause Immer to throw an error when trying to read a plain JS value instead of a proxy-wrapped value.</p> <h2>What's Changed</h2> <ul> <li>Fix missed spot where use of <code>current</code> may fail if the value is not a draft by <a href="https://github.com/markerikson"><code>@markerikson</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4412">reduxjs/redux-toolkit#4412</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/redux-toolkit/compare/v2.2.4...v2.2.5">https://github.com/reduxjs/redux-toolkit/compare/v2.2.4...v2.2.5</a></p> <h2>v2.2.4</h2> <p>This <strong>bugfix release</strong> improves sorting performance in <code>createEntityAdapter</code>, shrinks the code size in matcher utilities, fixes assorted issues with query hooks, and makes several TS tweaks.</p> <h2>Changelog</h2> <h3>Entity Adapter Sorting Performance</h3> <p>Users reported in <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4252">#4252</a> that the sorting performance of <code>createEntityAdapter</code> seemed abnormally bad - the provided comparison functions were being called far more times than expected.</p> <p>Upon investigation, we had a couple of problems. We were always starting from an array that was in insertion order, not the existing sorted order, and that would always require significant effort to re-sort even if there weren't any <em>actual</em> changes to the sorted results. Also, the sorting checks required frequent access to Immer's Proxy-wrapped values, even in cases where all we needed was the plain state values for comparison purposes.</p> <p>We've reworked the internal sorting logic to always start from the existing sorted array, do reads against a plain value to avoid the Proxy getter overhead where possible, and optimized inserts into existing sorted arrays. This should significantly speed up sorted entity adapter behavior.</p> <h3>Matcher Code Size Optimization</h3> <p>We've reworked the internals of the thunk-related matchers to deduplicate some of the logic, shaving a few bytes off the final bundle size.</p> <h3>RTK Query Hook Updates</h3> <p><code>defaultSerializeQueryArgs</code> can now handle <code>BigInt</code> values safely.</p> <p>The <code>isLoading</code> flag logic was improved to handle errors when a query hook tries to subscribe.</p> <h3>TS Updates</h3> <p><code>create.asyncThunk</code>'s types were improved to avoid cases where it might infer <code>any</code>.</p> <p>We've made several internal types changes to work correctly with React 19's upcoming types.</p> <p>The <code>retryCondition</code> method now receives <code>unknown</code> as an argument, instead of always assuming the user is using <code>fetchBaseQuery</code>.</p> <h3>Other Changes</h3> <p>The Reselect dep has been bumped to 5.1.0 to match the expected internal usage of <code>createSelector.withTypes()</code>.</p> <h2>What's Changed</h2> <ul> <li>Update remaining <code>Context</code> references to match the new nullable <code>Context</code> by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4336">reduxjs/redux-toolkit#4336</a></li> <li>types: export <code>GetThunkAPI</code> type by <a href="https://github.com/shrouxm"><code>@shrouxm</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4289">reduxjs/redux-toolkit#4289</a></li> <li>Inline the deprecated <code>React.ReactChild</code> type by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4382">reduxjs/redux-toolkit#4382</a></li> <li>Replace usage of deprecated <code>JSX</code> global namespace with <code>React.JSX</code> by <a href="https://github.com/aryaemami59"><code>@aryaemami59</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4381">reduxjs/redux-toolkit#4381</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/4578c74c45e0f4cd7c6d3b156711d5eef1ded389"><code>4578c74</code></a> Release 2.2.5</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/2e400d53c40a5013b93cb690a2f7bcb006cad17f"><code>2e400d5</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4412">#4412</a> from reduxjs/bugfix/4411-immer-current</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/4cc7b1f01a42ad1c028d46f33768adcb8d022272"><code>4cc7b1f</code></a> Fix Immer <code>current</code> usage when the value may not be a draft</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/87e2e59796c9297b7ef76cb4bfe414294bc029ca"><code>87e2e59</code></a> Switch vitest args to allow file filtering by name again</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/f2cc82cb5a4b6a26806aa521bc4e832fd636215a"><code>f2cc82c</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4406">#4406</a> from Wase-Zahin/feature/typo</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/b0a14b240ab7468cdec8565902d230b573296c98"><code>b0a14b2</code></a> fix: fix typo</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/0246f788ef964a6afb5071f5b9a651d48630f3e0"><code>0246f78</code></a> Release 2.2.4</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/72b3ac65a2adc510280f19ec6689aebbf2bf1df4"><code>72b3ac6</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3957">#3957</a> from reduxjs/retry-error-type</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/c892abd1dab0586a6b4d417e5e4d0ec605389364"><code>c892abd</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4337">#4337</a> from jared-ca/undefined-type-initiate-mutation</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/5d77624d413774fe98f4058163656beaf2448652"><code>5d77624</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4364">#4364</a> from smacpherson64/master</li> <li>Additional commits viewable in <a href="https://github.com/reduxjs/redux-toolkit/compare/v2.2.3...v2.2.5">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.3&new-version=2.2.5)](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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information