dependabot[bot] opened a new pull request, #36997: URL: https://github.com/apache/superset/pull/36997
Bumps [use-query-params](https://github.com/pbeshai/use-query-params) from 1.2.3 to 2.2.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pbeshai/use-query-params/releases">use-query-params's releases</a>.</em></p> <blockquote> <h2>v2.2.1</h2> <h2>use-query-params v2.2.1 (March 24, 2023)</h2> <ul> <li>fix: <a href="https://redirect.github.com/pbeshai/use-query-params/issues/256">#256</a> adds peer dependencies and metas to allow adapters to work on pnpm setups</li> </ul> <h2>v2.2.0</h2> <ul> <li>fix: <a href="https://redirect.github.com/pbeshai/use-query-params/issues/233">#233</a> attempt to read location from data router in react-router 6.6+. making this a minor revision since it imports something that may not be there in older versions of react-router 6.</li> </ul> <h2>v2.1.1</h2> <ul> <li>fix: <a href="https://redirect.github.com/pbeshai/use-query-params/issues/241">#241</a> import from react-router-dom in adapters to prevent error about wrong context. (thank you <a href="https://github.com/lisandro52"><code>@lisandro52</code></a>)</li> </ul> <h2>v2.1.0</h2> <h2>use-query-params v2.1.0 (August 31, 2022)</h2> <ul> <li>feat: <a href="https://redirect.github.com/pbeshai/use-query-params/issues/234">#234</a> skip unnecessary updates by default. new option <code>skipUpdateWhenNoChange</code> defaults to true (set to false for previous behavior)</li> </ul> <h2>v2.0.1</h2> <h2>use-query-params v2.0.1 (August 31, 2022)</h2> <ul> <li>fixes <a href="https://redirect.github.com/pbeshai/use-query-params/issues/233">#233</a> - consecutive calls to setters (e.g. setFoo('a'); setBar('b')) properly accumulate. Previously only the last would make it through.</li> </ul> <h2>v2.0.0</h2> <h2>use-query-params v2.0.0</h2> <p><strong>Breaking</strong></p> <ul> <li>Drop dependency for query-string. New default uses URLSearchParams which doesn’t support <code>null</code>. You can continue using <a href="https://github.com/sindresorhus/query-string">query-string</a> by specifying the <code>searchStringToObject</code> and <code>objectToSearchString</code> options as parse and stringify respectively.</li> <li>Modify <strong>QueryParamProvider</strong> to take adapter prop, no longer taking react router or reach props</li> </ul> <p><strong>New Features</strong></p> <ul> <li> <p>Deep imports for React-Router 5 and 6 adapters</p> </li> <li> <p>Supports registering params in the <strong>QueryParamProvider</strong> to have them available to any downstream hooks.</p> <ul> <li>Supports nesting <strong>QueryParamProviders</strong> to extend the registered params list</li> </ul> </li> <li> <p>Additional function signatures have been added, but greater care must be taken to get proper types out of the response.</p> <ul> <li><code>useQueryParam(’myparam’)</code> ← param type is inherited from the params registered in the <strong>QueryParamProvider</strong></li> <li><code>useQueryParam(’myparam’, StringParam, options)</code></li> <li><code>useQueryParams()</code> ← gets all params from the <strong>QueryParamProvider</strong></li> <li><code>useQueryParams([’myparam1’, ‘myparam2’])</code> ← gets just myparam1 and myparam2 from those registered in the <strong>QueryParamProvider</strong>.</li> <li><code>useQueryParams({ myparam: StringParam }, options)</code></li> <li><code>useQueryParams({ myparam: ‘inherit’ }, options)</code> ←inherit myparam param name from <strong>QueryParamProvider</strong></li> </ul> </li> <li> <p>New <code>options</code> prop to <strong>QueryParamProvider</strong> and argument to <strong>useQueryParam(s)</strong></p> <ul> <li>(experimental) batching via <code>enableBatching</code> option (i.e., multiple consecutive calls to setQueryParams in a row only result in a single update to the URL). This seems to work but would require updating the way all the tests are written to verify for sure, so marking as experimental for now.</li> <li><code>removeDefaultsFromUrl</code> (default: false). This happens on updates only, not on initial load. Requires the use of the <code>default</code> attribute on a parameter to function (note serialize-query-params v2 withDefault now populates this).</li> <li><code>includeKnownParams</code> - in addition to those specified, also include all preconfigured parameters from the <strong>QueryParamProvider</strong></li> <li><code>includeAllParams</code> (default: false) - in addition to those specified, include all other parameters found in the current URL</li> <li><code>updateType</code> (default “pushIn”) - the default update type when set is called.</li> <li><code>searchStringToObject, objectToSearchString</code> (default uses URLSearchParams) - equivalent of <code>parse</code> and <code>stringify</code> from query-string.</li> </ul> </li> <li> <p>Parameters now can include <code>urlName</code> to automatically convert to a different name in the URL (e.g. { encode, decode, urlName })</p> </li> <li> <p>Caches decoded values across multiple hook calls from different components</p> </li> </ul> <p><strong>Fixes</strong></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/pbeshai/use-query-params/commits/[email protected]">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]
