Update dependency mem to v10 - autoclosed #54
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.1.1
->10.0.0
Release Notes
sindresorhus/mem (mem)
v10.0.0
Compare Source
Breaking
mem
tomemoize
4756892
3afdfaf
memDecorator
named import tomemoizeDecorator
4756892
memClear
named import tomemoizeClear
4756892
v9.0.2
Compare Source
Options
type (#88)9a937d0
v9.0.1
Compare Source
7f7ca0a
v9.0.0
Compare Source
Breaking
32c01b1
v8.1.1
Compare Source
.decorator()
is used (#75)d21357c
v8.1.0
Compare Source
.decorator()
method for TypeScript users (#61)528fa42
v8.0.0
Compare Source
Breaking
0b5c364
The types might be slightly different than v6.
1afa53c
.clear(fn)
if fn’s cache can't be cleared (#59)e7c8893
What happened to v7? This version was prematurely published as v7, so we did v8 to prevent breaking for those already on v7.
v6.1.1
Compare Source
ea88c5c
3ffde5d
v6.1.0
Compare Source
e8bb86c
v6.0.1
Compare Source
809697d
v6.0.0
Compare Source
Breaking
cacheKey
(#43)b7a0766
It now defaults to
cacheKey: x => x
instead of the much more complicated previous default. This means it will now only cache the first argument, and only if it's a primitive. Previously, it tried to cache all arguments usingJSON.stringify()
, but this was both error-prone and slow. This change makes the memoization logic very straightforward, explicit and fast by default. See the readme for how to handle multi-argument or non-primitive value situations.cachePromiseRejection
option (#43)b7a0766
It was not a good fit for
mem
and we plan to add it top-memoize
instead (https://github.com/sindresorhus/p-memoize/issues/11), which is likemem
, but focused on promises..clear()
is called with a non-memoized function (#44)c73c23b
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.