This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): Bump @reduxjs/toolkit from 1.9.5 to 1.9.7 in /api-editor…
…/gui (#1490) Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.9.5 to 1.9.7. <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>v1.9.7</h2> <p>This bugfix release rewrites the RTKQ hook TS types to significantly improve TS perf.</p> <h2>Changelog</h2> <h3>RTKQ TS Perf</h3> <p>A number of users had reported that Intellisense for RTKQ API objects was extremely slow (multiple seconds) - see discussion in <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3214">#3214</a> . We did some perf investigation on user-provided examples, and concluded that the biggest factor to slow RTKQ TS perf was the calculation of hook names like <code>useGetPokemonQuery</code>, which was generating a large TS union of types.</p> <p>We've rewritten that hook names type calculation to use mapped types and a couple of intersections. In a specific user-provided stress test repo, it dropped TS calculation time by 60% (2600ms to 1000ms).</p> <p>There's more potential work we can do to improve things, but this seems like a major perf improvement worth shipping now.</p> <h2>What's Changed</h2> <ul> <li>chore: Switch 4.9.2-rc to 4.9.5 since 4.9.5 has been released in TypeScript by <a href="https://github.com/kahirokunn"><code>@kahirokunn</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/3772">reduxjs/redux-toolkit#3772</a></li> <li>Copy of "Work around known TS bug with type inference <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3761">#3761</a>" by <a href="https://github.com/julian-ford"><code>@julian-ford</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/3777">reduxjs/redux-toolkit#3777</a></li> <li>Rework named hooks type (v1.9) by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/3769">reduxjs/redux-toolkit#3769</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.6...v1.9.7">https://github.com/reduxjs/redux-toolkit/compare/v1.9.6...v1.9.7</a></p> <h2>v1.9.6</h2> <p>This bugfix release adds a new dev-mode middleware to catch accidentally dispatching an action creator, adds a new listener middleware option around waiting for forks, adds a new option to update provided tags when <code>updateQueryData</code> is used, reworks internal types to better handle uses with TS declaration output, and fixes a variety of small issues.</p> <h2>Changelog</h2> <h3>Action Creator Dev Check Middleware</h3> <p>RTK already includes dev-mode middleware that check for the common mistakes of accidentally mutating state and putting non-serializable values into state or actions.</p> <p>Over the years we've also seen a semi-frequent error where users accidentally pass an action creator reference to <code>dispatch</code>, instead of <em>calling</em> it and dispatching the action it returns.</p> <p>We've added another dev-mode middleware that specifically catches this error and warns about it.</p> <h3>Additional Options</h3> <p>The listener middleware's <code>listenerApi.fork()</code> method now has an optional <code>autoJoin</code> flag that can be used to keep the effect from finishing until all active forked tasks have completed.</p> <p><code>updateQueryData</code> now has an <code>updateProvidedTags</code> option that will force a recalculation of that endpoint's provided tags. It currently defaults to <code>false</code>, and we'll likely turn that to <code>true</code> in the next major.</p> <h3>Other Fixes</h3> <p>The <code>builder.addCase</code> method now throws an error if a <code>type</code> string is empty.</p> <p><code>fetchBaseQuery</code> now uses an alternate method to clone the original <code>Request</code> in order to work around an obscure Chrome bug.</p> <p>The immutability middleware logic was tweaked to avoid a potential stack overflow.</p> <h3>Types Changes</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/2fe9e737eb9bee6bdc3a116e682f5b350bbebc72"><code>2fe9e73</code></a> Release 1.9.7</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/aaf615a9bb284af58c576c21be6ccf80ebb0608e"><code>aaf615a</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3769">#3769</a> from reduxjs/v1.9-rework-named-hooks</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/49e00b45c14e14efe9f562043385b8ef198600df"><code>49e00b4</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3777">#3777</a> from julian-ford/bugfix/copy-cat-ts-version-compat</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/59b2de7307b2f5575bdc0f87349602275cd88bd3"><code>59b2de7</code></a> Work around known TS bug with type inference</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/cab18077a668e9a2a7865796ed94abbcc4a4d34e"><code>cab1807</code></a> Add phryneas/ts-version</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/ed7ce5e935e24e1b09a2cda7e0746b2e19aa6bd8"><code>ed7ce5e</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3772">#3772</a> from kahirokunn/use-stable</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/6234e63ceaebd836e0b512e35ac2227ef27e59e9"><code>6234e63</code></a> chore: Type testing is now also performed in 5.0, 5.1, and 5.2.</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/ad8d983b094f3d28ef686a99750edd858632fe8d"><code>ad8d983</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/3774">#3774</a> from reza-sadeghzadeh/add-headers-to-axios-query</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/55bb5100587f44845fdc45c10b74a19ab727b8ee"><code>55bb510</code></a> docs(rtk-query): add headers argument to base query example using axios</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/79b400991b4ceecbedae0870835b32b23a484dce"><code>79b4009</code></a> chore: Switch 4.9.2-rc to 4.9.5 since 4.9.5 has been released in TypeScript</li> <li>Additional commits viewable in <a href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.5...v1.9.7">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=1.9.5&new-version=1.9.7)](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