Repository navigation
Update dependency quick-lru to v8 - #496
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
^7.0.0→^8.0.0Release Notes
sindresorhus/quick-lru (quick-lru)
v8.0.0Compare Source
Breaking
378efc2.keys(),.values(), and the iterator (for…of, spread) go from the oldest item to the newest, like.entries()and.forEach()378efc2TypeErrorfor an invalidmaxSize, also in.resize()378efc20, orInfinity. Before, a fraction like1.5or a string like'10'was accepted.TypeErrorfor a negative orNaNmaxAge378efc20threw. A negative value was accepted, andNaNsilently meant no expiration.onEvictionafter the item is removed, not right before378efc2Improvements
.getOrInsert()and.getOrInsertComputed()methods378efc2Mapmethods with the same names from the upsert proposal..forEach()callback as theQuickLRUinstance instead ofMap378efc2Optionstype optional378efc2Fixes
onEvictionbeing called for an item that was overwritten with.set()and is still in the cache378efc2.evict()letting the cache grow without limit when it is called repeatedly between writes378efc2onEvictionreads an expired item378efc2378efc2378efc2QuickLRUwas not assignable toMap, and iterator helpers like.keys().map()were missing.Configuration
📅 Schedule: (UTC)
🚦 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.