build(deps): bump memoize-one from 5.2.1 to 6.0.0 in /superset-frontend/packages/superset-ui-demo
Bumps memoize-one from 5.2.1 to 6.0.0.
Release notes
Sourced from memoize-one's releases.
6.0.0
At a glance
🧹 New
.clear()function to remove the current memoization cache 🏋️♀️ Stronger types 🥰 Improved documentationThis release is a
major, but there are no behaviour or API changes. Themajoris to reflect that some of theTypeScripttypes have been tightened which might cause some peoplesTypeScriptbuilds to break.PSA:
memoize-onewill soon™️ be dropping ie11 support More detailsNew: Cache releasing with
.clear()🧹A
.clear()property is now added to memoized functions to allow you to clear it's memoization cacheThis is helpful if you want to:
- Release memory
- Allow the underlying function to be called again without having to change arguments
import memoizeOne from 'memoize-one';function add(a: number, b: number): number { return a + b; }
const memoizedAdd = memoizeOne(add);
// first call - not memoized const first = memoizedAdd(1, 2);
// second call - cache hit (underlying function not called) const second = memoizedAdd(1, 2);
// 👋 clearing memoization cache memoizedAdd.clear();
// third call - not memoized (cache was cleared) const third = memoizedAdd(1, 2);
Improved: memoized function
typeThere are no API changes to
memoize-one, this is merely a typing improvementOur previous
typefor a memoized function was simple:Previous
... (truncated)
Commits
d5acc53v6.0.0deec8beMerge pull request #124 from alexreardon/refreshe5a4d8badding tests for casting the type of a memoized functiond8246dbupdating copy in readme994ef04updating perf benchmark as lodash only uses the first argument as the keycd46d47removing temp type:module18b689fupdating results4c5409bformatting resultsce0c6bfoutputting results to markdown tables3e75de0moving to node 16- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@dependabot rebase
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.