Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

build(deps): bump @reduxjs/toolkit from 1.9.2 to 1.9.3 #314

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 22, 2023

Bumps @reduxjs/toolkit from 1.9.2 to 1.9.3.

Release notes

Sourced from @​reduxjs/toolkit's releases.

v1.9.3

This release fixes a couple issues with the skip/skipToken options for query hooks, and makes a small perf tweak to serializing query args.

Changelog

Skip Behavior

We made a change in v1.9.0 that tried to make some skip behavior more consistent, including clearing out the cached data. However, we had overlooked that our own docs actually said "skipping a query will keep the cached data", and several users pointed this out as they'd been relying on that behavior.

We've reverted that change. Now, setting {skip: true} or skipToken for a query with existing results will keep the data value (reflecting the last successful query), but currentData will be undefined (reflecting the current settings).

We also identified and fixed an issue that could cause subscription entries to leak under a specific combination of timing and settings changes.

Query Arg Serialization Perf

RTKQ relies on serializing query arguments to serve as the cache keys, with the default using JSON.stringify() + some logic for sorting keys. There was a report that in some apps, large query arg objects could take a while to stringify and this was being done repeatedly. We've added a WeakMap-based cache for query args to avoid re-serializing existing arg values.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v1.9.2...v1.9.3

Commits
  • a636751 Release 1.9.3
  • 71c3c8c Merge pull request #3193 from reduxjs/bugfix/3147-query-args-perf
  • 04f4131 Use a WeakMap cache for query arg serialization for perf
  • 4fba13e Merge pull request #3188 from reduxjs/bugfix/2871-skip-data
  • 364ff51 Only remove promise in query hook if the subscription was removed
  • 140ca1a Revert "clear data on skip" back to its original behavior
  • 43d94a0 Merge pull request #3158 from petermekhaeil/master
  • d53eea2 docs: Add missing keys to BaseQueryApi
  • bdf8af3 Merge pull request #3135 from vvcigy/patch-1
  • 9917fdf Fix original and current examples
  • See full diff in compare view

Dependabot compatibility score

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 commands and options

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 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)

Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 22, 2023
@github-actions github-actions bot enabled auto-merge (squash) February 22, 2023 02:35
@github-actions github-actions bot merged commit 75fbb13 into development Feb 22, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/development/reduxjs/toolkit-1.9.3 branch February 22, 2023 02:39
Clumsy-Coder pushed a commit that referenced this pull request Jul 29, 2023
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from
1.9.2 to 1.9.3.
<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.3</h2>
<p>This release fixes a couple issues with the
<code>skip/skipToken</code> options for query hooks, and makes a small
perf tweak to serializing query args.</p>
<h2>Changelog</h2>
<h3>Skip Behavior</h3>
<p>We made a change in <a
href="https://github.com/reduxjs/redux-toolkit/releases/tag/v1.9.0">v1.9.0</a>
that tried to make some skip behavior more consistent, including
clearing out the cached data. However, we had overlooked that our own
docs actually said &quot;skipping a query will <em>keep</em> the cached
data&quot;, and several users pointed this out as they'd been relying on
that behavior.</p>
<p>We've reverted that change. Now, setting <code>{skip: true}</code> or
<code>skipToken</code> for a query with existing results will keep the
<code>data</code> value (reflecting the last successful query), but
<code>currentData</code> will be undefined (reflecting the
<em>current</em> settings).</p>
<p>We also identified and fixed an issue that could cause subscription
entries to leak under a specific combination of timing and settings
changes.</p>
<h3>Query Arg Serialization Perf</h3>
<p>RTKQ relies on serializing query arguments to serve as the cache
keys, with the default using <code>JSON.stringify()</code> + some logic
for sorting keys. There was a report that in some apps, large query arg
objects could take a while to stringify and this was being done
repeatedly. We've added a <code>WeakMap</code>-based cache for query
args to avoid re-serializing existing arg values.</p>
<h2>What's Changed</h2>
<ul>
<li>Revert &quot;clear data on skip&quot; back to its original behavior
by <a
href="https://github.com/markerikson"><code>@​markerikson</code></a> in
<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/3188">reduxjs/redux-toolkit#3188</a></li>
<li>Use a WeakMap cache for query arg serialization for perf by <a
href="https://github.com/markerikson"><code>@​markerikson</code></a> in
<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/3193">reduxjs/redux-toolkit#3193</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.2...v1.9.3">https://github.com/reduxjs/redux-toolkit/compare/v1.9.2...v1.9.3</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/a636751f12e4272391c32e7b3672a6d65a59b5d0"><code>a636751</code></a>
Release 1.9.3</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/71c3c8cc2255ddbdb20c835c302f7b41807c24fd"><code>71c3c8c</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3193">#3193</a>
from reduxjs/bugfix/3147-query-args-perf</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/04f41313a68d23a9372fd1db822dc068cff2da1d"><code>04f4131</code></a>
Use a WeakMap cache for query arg serialization for perf</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/4fba13e43cce50ac10cd6ccd900f3a49b2c76640"><code>4fba13e</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3188">#3188</a>
from reduxjs/bugfix/2871-skip-data</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/364ff518b7b909761fe5da01db7c0a7242bd70ab"><code>364ff51</code></a>
Only remove promise in query hook if the subscription was removed</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/140ca1a4739e492661f584b56febda58af628c98"><code>140ca1a</code></a>
Revert &quot;clear data on skip&quot; back to its original behavior</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/43d94a0b6de88c85c3e7c50bb53f2f4c58e88f4f"><code>43d94a0</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3158">#3158</a>
from petermekhaeil/master</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/d53eea2ca875250db862aeb82de4622c0fb44bbf"><code>d53eea2</code></a>
docs: Add missing keys to BaseQueryApi</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/bdf8af37ec868150c771fb78bf0de99f7984841f"><code>bdf8af3</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3135">#3135</a>
from vvcigy/patch-1</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/9917fdf7ff132c44275a0a568487e3507d6859d6"><code>9917fdf</code></a>
Fix original and current examples</li>
<li>See full diff in <a
href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.2...v1.9.3">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.2&new-version=1.9.3)](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 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>
Clumsy-Coder pushed a commit that referenced this pull request Aug 20, 2023
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from
1.9.2 to 1.9.3.
<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.3</h2>
<p>This release fixes a couple issues with the
<code>skip/skipToken</code> options for query hooks, and makes a small
perf tweak to serializing query args.</p>
<h2>Changelog</h2>
<h3>Skip Behavior</h3>
<p>We made a change in <a
href="https://github.com/reduxjs/redux-toolkit/releases/tag/v1.9.0">v1.9.0</a>
that tried to make some skip behavior more consistent, including
clearing out the cached data. However, we had overlooked that our own
docs actually said &quot;skipping a query will <em>keep</em> the cached
data&quot;, and several users pointed this out as they'd been relying on
that behavior.</p>
<p>We've reverted that change. Now, setting <code>{skip: true}</code> or
<code>skipToken</code> for a query with existing results will keep the
<code>data</code> value (reflecting the last successful query), but
<code>currentData</code> will be undefined (reflecting the
<em>current</em> settings).</p>
<p>We also identified and fixed an issue that could cause subscription
entries to leak under a specific combination of timing and settings
changes.</p>
<h3>Query Arg Serialization Perf</h3>
<p>RTKQ relies on serializing query arguments to serve as the cache
keys, with the default using <code>JSON.stringify()</code> + some logic
for sorting keys. There was a report that in some apps, large query arg
objects could take a while to stringify and this was being done
repeatedly. We've added a <code>WeakMap</code>-based cache for query
args to avoid re-serializing existing arg values.</p>
<h2>What's Changed</h2>
<ul>
<li>Revert &quot;clear data on skip&quot; back to its original behavior
by <a
href="https://github.com/markerikson"><code>@​markerikson</code></a> in
<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/3188">reduxjs/redux-toolkit#3188</a></li>
<li>Use a WeakMap cache for query arg serialization for perf by <a
href="https://github.com/markerikson"><code>@​markerikson</code></a> in
<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/3193">reduxjs/redux-toolkit#3193</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.2...v1.9.3">https://github.com/reduxjs/redux-toolkit/compare/v1.9.2...v1.9.3</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/a636751f12e4272391c32e7b3672a6d65a59b5d0"><code>a636751</code></a>
Release 1.9.3</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/71c3c8cc2255ddbdb20c835c302f7b41807c24fd"><code>71c3c8c</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3193">#3193</a>
from reduxjs/bugfix/3147-query-args-perf</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/04f41313a68d23a9372fd1db822dc068cff2da1d"><code>04f4131</code></a>
Use a WeakMap cache for query arg serialization for perf</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/4fba13e43cce50ac10cd6ccd900f3a49b2c76640"><code>4fba13e</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3188">#3188</a>
from reduxjs/bugfix/2871-skip-data</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/364ff518b7b909761fe5da01db7c0a7242bd70ab"><code>364ff51</code></a>
Only remove promise in query hook if the subscription was removed</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/140ca1a4739e492661f584b56febda58af628c98"><code>140ca1a</code></a>
Revert &quot;clear data on skip&quot; back to its original behavior</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/43d94a0b6de88c85c3e7c50bb53f2f4c58e88f4f"><code>43d94a0</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3158">#3158</a>
from petermekhaeil/master</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/d53eea2ca875250db862aeb82de4622c0fb44bbf"><code>d53eea2</code></a>
docs: Add missing keys to BaseQueryApi</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/bdf8af37ec868150c771fb78bf0de99f7984841f"><code>bdf8af3</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/3135">#3135</a>
from vvcigy/patch-1</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/9917fdf7ff132c44275a0a568487e3507d6859d6"><code>9917fdf</code></a>
Fix original and current examples</li>
<li>See full diff in <a
href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.2...v1.9.3">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.2&new-version=1.9.3)](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 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants