dependabot[bot] opened a new pull request, #32947: URL: https://github.com/apache/superset/pull/32947
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.9.7 to 2.6.1. <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.6.1</h2> <p>This <strong>bugfix release</strong> fixes several assorted types issues with the initial infinite query feature release, and adds support for an optional signal argument to <code>createAsyncThunk</code>.</p> <h2>Changelog</h2> <h3>Infinite Query Fixes</h3> <p>We've fixed several types issues that were reported with infinite queries after the 2.6.0 release:</p> <ul> <li><code>matchFulfilled</code> and <code>providesTags</code> now get the correct response types</li> <li>We've added pre-typed <code>Type*</code> types to represent infinite queries, similar to the existing pre-defined types for queries and mutations</li> <li><code>selectCachedArgsForQuery</code> now supports fetching args for infinite query endpoints</li> <li>We fixed some TS type portability issues with infinite queries that caused errors when generating TS declarations</li> <li><code>useInfiniteQueryState/Subscription</code> now correctly expect just the query arg, not the combined <code>{queryArg, pageParam}</code> object</li> </ul> <h3>Other Improvements</h3> <p><code>createAsyncThunk</code> now accepts an optional <code>{signal}</code> argument. If provided, the internal AbortSignal handling will tie into that signal.</p> <p><code>upsertQueryEntries</code> now correctly generates provided tags for upserted cache entries.</p> <h2>What's Changed</h2> <ul> <li>Fix assorted infinite query types by <a href="https://github.com/markerikson"><code>@markerikson</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4869">reduxjs/redux-toolkit#4869</a></li> <li>Add providesTags handling for upsertQueryEntries by <a href="https://github.com/markerikson"><code>@markerikson</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4872">reduxjs/redux-toolkit#4872</a></li> <li>add infinite query type support for selectCachedArgsForQuery by <a href="https://github.com/alexmotoc"><code>@alexmotoc</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4880">reduxjs/redux-toolkit#4880</a></li> <li>add more Typed wrappers and make sure they're all exported by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4866">reduxjs/redux-toolkit#4866</a></li> <li>Fix infinite query type portability issues by <a href="https://github.com/markerikson"><code>@markerikson</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4881">reduxjs/redux-toolkit#4881</a></li> <li>support passing an external abortsignal to createAsyncThunk by <a href="https://github.com/EskiMojo14"><code>@EskiMojo14</code></a> in <a href="https://redirect.github.com/reduxjs/redux-toolkit/pull/4860">reduxjs/redux-toolkit#4860</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/redux-toolkit/compare/v2.6.0...v2.6.1">https://github.com/reduxjs/redux-toolkit/compare/v2.6.0...v2.6.1</a></p> <h2>v2.6.0</h2> <p>This <strong>feature release</strong> adds infinite query support to RTK Query.</p> <h2>Changelog</h2> <h3>RTK Query Infinite Query support</h3> <p>Since we <a href="https://github.com/reduxjs/redux-toolkit/releases/v1.6.0">first released RTK Query in 2021</a>, we've had users asking us to add support for "infinite queries" - the ability to keep fetching additional pages of data for a given endpoint. It's been <a href="https://github.com/reduxjs/redux-toolkit/discussions/1163">by far our most requested feature</a>. Until recently, our answer was that <a href="https://github.com/reduxjs/redux-toolkit/discussions/1163#discussioncomment-849158">we felt there were too many use cases to support with a single API design approach</a>.</p> <p>Last year, we revisited this concept and concluded that the best approach was to mimic <a href="https://tanstack.com/query/latest/docs/framework/react/guides/infinite-queries">the flexible infinite query API design from React Query</a>. We had additional discussions with <a href="https://github.com/tkdodo"><code>@tkdodo</code></a> , who described the rationale and implementation approach and encouraged us to use their API design, and <a href="https://github.com/riqts"><code>@riqts</code></a> provided an initial implementation on top of RTKQ's existing internals.</p> <p>We're excited to announce that <strong>this release officially adds full infinite query endpoint support to RTK Query!</strong></p> <h4>Using Infinite Queries</h4> <p>As with React Query, the API design is based around "page param" values that act as the query arguments for fetching a specific page for the given cache entry.</p> <p>Infinite queries are defined with a new <code>build.infiniteQuery()</code> endpoint type. It accepts all of the same options as normal query endpoints, but also needs an additional <code>infiniteQueryOptions</code> field that specifies the infinite query behaviors. With TypeScript, you must supply 3 generic arguments: <code>build.infiniteQuery<ResultType, QueryArg, PageParam></code>, where <code>ResultType</code> is the contents of a single page, <code>QueryArg</code> is the type passed in as the cache key, and <code>PageParam</code> is the value used to request a specific page.</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/ac26766267f663d7d8251008a2e5f8b3166396ff"><code>ac26766</code></a> Release 2.6.1</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/690869c3e44c69f23a70fb1a88c5fccde3ce5d1d"><code>690869c</code></a> support passing an external abortsignal to createAsyncThunk (<a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4860">#4860</a>)</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/4e358215f68b21e7f7b1dce5ec573d96f054907a"><code>4e35821</code></a> Fix infinite query type portability issues (<a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4881">#4881</a>)</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/642d79503ed3af7b55938757f6b7ec79282074f6"><code>642d795</code></a> add more Typed wrappers and make sure they're all exported (<a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4866">#4866</a>)</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/a59f90c1b660af917ddf6aea9765856efd535e49"><code>a59f90c</code></a> add infinite query type support for selectCachedArgsForQuery (<a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4880">#4880</a>)</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/72ac07d62ba48fa5b42ef13ec0f24cff85e45a3f"><code>72ac07d</code></a> Add providesTags handling for upsertQueryEntries (<a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4872">#4872</a>)</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/2751becc65c7fac07616094b8096bcbe577b58fd"><code>2751bec</code></a> Merge pull request <a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4877">#4877</a> from aryaemami59/chore/fix-env-handling</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/be33129029107e654d945dac966712cc8777f4be"><code>be33129</code></a> Improve handling of environment variables in tests</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/66ff32ad7bf5ff15e7b5abaaaca3abbf62cae31c"><code>66ff32a</code></a> Fix assorted infinite query types (<a href="https://redirect.github.com/reduxjs/redux-toolkit/issues/4869">#4869</a>)</li> <li><a href="https://github.com/reduxjs/redux-toolkit/commit/18ddd7eb4515122c5922c67c93f515afe5eeb5eb"><code>18ddd7e</code></a> Release 2.6.0</li> <li>Additional commits viewable in <a href="https://github.com/reduxjs/redux-toolkit/compare/v1.9.7...v2.6.1">compare view</a></li> </ul> </details> <br /> [](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> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
