Skip to content

Commit

Permalink
Bump @reduxjs/toolkit from 2.2.3 to 2.2.5 in /webapp (microsoft#985)
Browse files Browse the repository at this point in the history
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
dependabot[bot] authored Jun 12, 2024
1 parent 0c91931 commit 196cef2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@fluentui/react-northstar": "^0.66.4",
"@microsoft/signalr": "^8.0.0",
"@playwright/test": "^1.43.1",
"@reduxjs/toolkit": "^2.2.3",
"@reduxjs/toolkit": "^2.2.5",
"debug": "^4.3.4",
"microsoft-cognitiveservices-speech-sdk": "^1.36.0",
"react": "^18.2.0",
Expand Down
12 changes: 6 additions & 6 deletions webapp/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2795,15 +2795,15 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.4.4.tgz#11d5db19bd178936ec89cd84519c4de439574398"
integrity sha512-1oO6+dN5kdIA3sKPZhRGJTfGVP4SWV6KqlMOwry4J3HfyD68sl/3KmG7DeYUzvN+RbhXDnv/D8vNNB8168tAMg==

"@reduxjs/toolkit@^2.2.3":
version "2.2.3"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.2.3.tgz#5ce71cbf162f98c5dafb49bd3f1e11c5486ab9c4"
integrity sha512-76dll9EnJXg4EVcI5YNxZA/9hSAmZsFqzMmNRHvIlzw2WS/twfcVX3ysYrWGJMClwEmChQFC4yRq74tn6fdzRA==
"@reduxjs/toolkit@^2.2.5":
version "2.2.5"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.2.5.tgz#c0d2d8482ef80722bebe015ff05b06c34bfb6e0d"
integrity sha512-aeFA/s5NCG7NoJe/MhmwREJxRkDs0ZaSqt0MxhWUrwCf1UQXpwR87RROJEql0uAkLI6U7snBOYOcKw83ew3FPg==
dependencies:
immer "^10.0.3"
redux "^5.0.1"
redux-thunk "^3.1.0"
reselect "^5.0.1"
reselect "^5.1.0"

"@rollup/plugin-babel@^5.2.0":
version "5.3.1"
Expand Down Expand Up @@ -10342,7 +10342,7 @@ requires-port@^1.0.0:
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==

reselect@^5.0.1:
reselect@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/reselect/-/reselect-5.1.0.tgz#c479139ab9dd91be4d9c764a7f3868210ef8cd21"
integrity sha512-aw7jcGLDpSgNDyWBQLv2cedml85qd95/iszJjN988zX1t7AVRJi19d9kto5+W7oCfQ94gyo40dVbT6g2k4/kXg==
Expand Down

0 comments on commit 196cef2

Please sign in to comment.