dependabot[bot] opened a new pull request, #26858: URL: https://github.com/apache/superset/pull/26858
Bumps [memoize-one](https://github.com/alexreardon/memoize-one) from 5.2.1 to 6.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/alexreardon/memoize-one/releases">memoize-one's releases</a>.</em></p> <blockquote> <h2>6.0.0</h2> <h2>At a glance</h2> <p>🧹 New <code>.clear()</code> function to remove the current memoization cache 🏋️♀️ Stronger types 🥰 Improved documentation</p> <p>This release is a <code>major</code>, but there are no behaviour or API changes. The <code>major</code> is to reflect that some of the <code>TypeScript</code> types have been tightened which might cause <em>some</em> peoples <code>TypeScript</code> builds to break.</p> <blockquote> <p>PSA: <code>memoize-one</code> will soon™️ be dropping ie11 support <a href="https://redirect.github.com/alexreardon/memoize-one/issues/125">More details</a></p> </blockquote> <h2>New: Cache releasing with <code>.clear()</code> 🧹</h2> <p>A <code>.clear()</code> property is now added to memoized functions to allow you to clear it's memoization cache</p> <p>This is helpful if you want to:</p> <ul> <li>Release memory</li> <li>Allow the underlying function to be called again without having to change arguments</li> </ul> <pre lang="ts"><code>import memoizeOne from 'memoize-one'; <p>function add(a: number, b: number): number { return a + b; }</p> <p>const memoizedAdd = memoizeOne(add);</p> <p>// first call - not memoized const first = memoizedAdd(1, 2);</p> <p>// second call - cache hit (underlying function not called) const second = memoizedAdd(1, 2);</p> <p>// 👋 clearing memoization cache memoizedAdd.clear();</p> <p>// third call - not memoized (cache was cleared) const third = memoizedAdd(1, 2); </code></pre></p> <h2>Improved: memoized function <code>type</code></h2> <blockquote> <p>There are no API changes to <code>memoize-one</code>, this is merely a typing improvement</p> </blockquote> <p>Our previous <code>type</code> for a memoized function was simple:</p> <p><strong>Previous</strong></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/alexreardon/memoize-one/commit/d5acc5343970ee4b615d4d1d5da85c2436752a79"><code>d5acc53</code></a> v6.0.0</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/deec8be0581c9f87bbb24873f585e29d6e25e283"><code>deec8be</code></a> Merge pull request <a href="https://redirect.github.com/alexreardon/memoize-one/issues/124">#124</a> from alexreardon/refresh</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/e5a4d8b1506137bde01300b19ad293dbf5c3d2f5"><code>e5a4d8b</code></a> adding tests for casting the type of a memoized function</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/d8246db0693499dce99c2f782055c8fd821a0c46"><code>d8246db</code></a> updating copy in readme</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/994ef04ca2be4ea154142c004bfcb8e4209836d2"><code>994ef04</code></a> updating perf benchmark as lodash only uses the first argument as the key</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/cd46d477f69eea0c11e194570ad8f41d7440c6e5"><code>cd46d47</code></a> removing temp type:module</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/18b689fcf07ddcbe300f30a04eb6aeda6a1a7041"><code>18b689f</code></a> updating results</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/4c5409becc19cf1adbc80ae3d5781c4ea135964a"><code>4c5409b</code></a> formatting results</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/ce0c6bf8fd1704f00639d470e6f21894db49cffd"><code>ce0c6bf</code></a> outputting results to markdown tables</li> <li><a href="https://github.com/alexreardon/memoize-one/commit/3e75de068a58fdc6633a16ce578c719d8f4db9d9"><code>3e75de0</code></a> moving to node 16</li> <li>Additional commits viewable in <a href="https://github.com/alexreardon/memoize-one/compare/v5.2.1...v6.0.0">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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org