Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
build(deps): bump @reduxjs/toolkit from 1.8.3 to 1.8.5 in /api-editor…
Browse files Browse the repository at this point in the history
…/gui (#1053)

Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from
1.8.3 to 1.8.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>v1.8.5</h2>
<p>This bugfix releas fixes an issue with large
<code>keepUnusedDataFor</code> values overflowing JS timers, exports the
types for the Redux DevTools Extension option, and and improves behavior
of URL string generation.</p>
<h2>Changelog</h2>
<h3><code>keepUnusedDataFor</code> Timer Fix</h3>
<p><code>keepUnusedDataFor</code> accepts a value in seconds. When there
are no more active subscriptions for a piece of data, RTKQ will set a
timer using <code>setTimeout</code>, and <code>keepUnusedDataFor *
1000</code> as the timer value.</p>
<p>We've been advising users that if they want to keep data in the cache
forever that they should use a very large value for
<code>keepUnusedDataFor</code>, such as 10 years in seconds.</p>
<p>However, it turns out that JS engines use a 32-bit signed int for
timers, and 32-bits in milliseconds is only 24.8 days. If a timer is
given a value larger than that, it triggers immediately.</p>
<p>We've updated the internal logic to clamp the
<code>keepUnusedDataFor</code> value to be between 0 and
<code>THIRTY_TWO_BIT_MAX_TIMER_SECONDS - 1</code>.</p>
<p>Note that in RTK 1.9 (coming soon), RTKQ will also accept
<code>Infinity</code> as a special <code>keepUnusedDataFor</code> value
to indicate cached data should never be expired.</p>
<h3>Other Changes</h3>
<p>RTK inlines the TS types for the Redux DevTools Extension options to
avoid an extra dependency, but the TS type for the options object wasn't
exported publicly. We now export the
<code>DevToolsEnhancerOptions</code> type.</p>
<p>The logic for generating a final URL has been updated to avoid adding
an extra trailing <code>/</code>.</p>
<h2>What's Changed</h2>
<ul>
<li>Prevent <code>keepUnusedDataFor</code> values from overflowing
<code>setTimeout</code> counter by <a
href="https://github.com/markerikson"><code>@​markerikson</code></a> in
<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/2595">reduxjs/redux-toolkit#2595</a></li>
<li>remove typeof undefined checks where not necessary 🐃🪒 by <a
href="https://github.com/phryneas"><code>@​phryneas</code></a> in <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/1726">reduxjs/redux-toolkit#1726</a></li>
<li>Update RDT options types, and export those + AnyListenerPredicate by
<a href="https://github.com/markerikson"><code>@​markerikson</code></a>
in <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/2596">reduxjs/redux-toolkit#2596</a></li>
<li>Ensures there is no unexpected slash in url before query params by
<a href="https://github.com/ygrishajev"><code>@​ygrishajev</code></a> in
<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/pull/2470">reduxjs/redux-toolkit#2470</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/redux-toolkit/compare/v1.8.4...v1.8.5">https://github.com/reduxjs/redux-toolkit/compare/v1.8.4...v1.8.5</a></p>
<h2>v1.8.4</h2>
<p>This bugfix release adds exported TS types for RTKQ hooks for use in
wrapping logic, adds <code>useDebugValue</code> to the hooks to improve
display in the React DevTools, updates the inlined types for the Redux
DevTools options, and fixes an issue in <code>createEntityAdapter</code>
that could result in duplicate IDs being stored.</p>
<h2>Changelog</h2>
<h3>RTKQ Hook Result Types</h3>
<p>RTK's types heavily rely on inference to minimize the amount of type
info users have to provide. However, this can also make it difficult to
write functions that wrap calls to RTK APIs.</p>
<p>Some users have asked to have types that help them write
&quot;higher-order hooks&quot;. RTK now exports types that represent
&quot;the return object for a query/mutation hook with a given
value&quot;: <code>TypedUseQueryHookResult</code> and
<code>TypedUseMutationResult</code>. Both require <code>&lt;ResultType,
QueryArg, BaseQuery&gt;</code> as generics, like this:</p>
<pre lang="ts"><code>const baseQuery = fetchBaseQuery({url:
&quot;https://some.server&quot;});
<p>type CustomHookResult = TypedUseQueryHookResult&lt;MyResultObject,
MyArgObject, typeof baseQuery&gt;</p>
<p>const useMyCustomHook = (arg: MyArgObject) : CustomHookResult =&gt; {
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/4ab8c42cb20ae1e6f7b84a8ac0070eee54775b79"><code>4ab8c42</code></a>
Release 1.8.5</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/ceb3d50b875cefb97384ed7dc96470d2e4f6c7e4"><code>ceb3d50</code></a>
Ensures there is no unexpected slash in url before query params (<a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/2470">#2470</a>)</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/4822769d9e6fe282a4de97b26f67d6a03b342b98"><code>4822769</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/2610">#2610</a>
from NiedziolkaMichal/patch-1</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/37e3c5951ada641a1f3aa8e7fc2514f123e235e6"><code>37e3c59</code></a>
Add caseReducers &amp; getInitialState to createSlice docs</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/448607a960e1d3f00cc76cf1049540226be029b2"><code>448607a</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/2596">#2596</a>
from reduxjs/feature/export-more-ts-types</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/ddef7c489d190c169911af07dc059ba62b31dc64"><code>ddef7c4</code></a>
Update RDT options types, and export those + AnyListenerPredicate</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/88692aeacf7b26c182465745d219e89b02bae670"><code>88692ae</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/1726">#1726</a>
from reduxjs/pr/remove-typeof</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/3bd595bbb2661c64b9c0d6928e14248be1bb5cb0"><code>3bd595b</code></a>
remove typeof undefined checks where not necessary 🐃🪒</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/dc673a3a34db38db4113edb44a15955a8e82dc2e"><code>dc673a3</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/reduxjs/redux-toolkit/issues/2595">#2595</a>
from reduxjs/bugfix/settimeout-max-value</li>
<li><a
href="https://github.com/reduxjs/redux-toolkit/commit/e67b93d16713e670870f75cfaa7cfadc1d1dee76"><code>e67b93d</code></a>
Prevent <code>keepUnusedDataFor</code> values from overflowing
<code>setTimeout</code> counter</li>
<li>Additional commits viewable in <a
href="https://github.com/reduxjs/redux-toolkit/compare/1.8.3...v1.8.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=1.8.3&new-version=1.8.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 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 Oct 8, 2022
1 parent 8a1802e commit 68b895c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions api-editor/gui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api-editor/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@chakra-ui/theme-tools": "^2.0.11",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.4",
"@reduxjs/toolkit": "^1.8.3",
"@reduxjs/toolkit": "^1.8.5",
"chart.js": "^3.9.0",
"fastest-levenshtein": "^1.0.16",
"framer-motion": "^6.5.1",
Expand Down

0 comments on commit 68b895c

Please sign in to comment.