Closed renovate[bot] closed 2 years ago
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 6.x releases. However, if you upgrade to 6.x manually then Renovate will reenable minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.
This PR contains the following updates:
^5.2.1
->^6.0.0
Release Notes
alexreardon/memoize-one
### [`v6.0.0`](https://togithub.com/alexreardon/memoize-one/releases/v6.0.0) [Compare Source](https://togithub.com/alexreardon/memoize-one/compare/v5.2.1...v6.0.0) #### At a glance 🧹 New `.clear()` function to remove the current memoization cache 🏋️♀️ Stronger types 🥰 Improved documentation This release is a `major`, but there are no behaviour or API changes. The `major` is to reflect that some of the `TypeScript` types have been tightened which might cause *some* peoples `TypeScript` builds to break. > PSA: `memoize-one` will soon™️ be dropping ie11 support > [More details](https://togithub.com/alexreardon/memoize-one/issues/125) #### New: Cache releasing with `.clear()` 🧹 A `.clear()` property is now added to memoized functions to allow you to clear it's memoization cache This is helpful if you want to: - Release memory - Allow the underlying function to be called again without having to change arguments ```ts 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 `type` > There are no API changes to `memoize-one`, this is merely a typing improvement Our previous `type` for a memoized function was simple: **Previous** ```ts export declare type EqualityFn = (newArgs: any[], lastArgs: any[]) => boolean; declare function memoizeOneConfiguration
📅 Schedule: "before 7am on Tuesday" in timezone Australia/Sydney.
🚦 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 has been generated by WhiteSource Renovate. View repository job log here.