micro-memoize
Advanced tools
Comparing version 5.0.0-beta.0 to 5.0.0-beta.1
@@ -15,4 +15,4 @@ # micro-memoize CHANGELOG | ||
- `onCacheAdd` / `onCacheChange` / `onCacheHit` has been rearchitected entirely into a dynamic event listener on the `memoized.cache` namespace | ||
- `memoized.cache.snapshot` has renamed to `memoized.cache.entries()` to align with common conventions of `Map` | ||
- Returns an array of `[Key, value]` pairs instead of `{keys: Key[], size: number, values: any[]}` to align with common JS conventions and allow direct population of `Map` / `WeakMap` | ||
- `memoized.cache.snapshot` getter has renamed to `memoized.cache.entries()` method to align with common conventions of `Map` | ||
- Returns an array of `[key, value]` pairs to align with common JS conventions and allow direct population of `Map` / `WeakMap` | ||
- `memoized.options` is now a transparent pass-through of the options provided, instead storing the normalized version | ||
@@ -19,0 +19,0 @@ |
@@ -41,3 +41,3 @@ { | ||
"lru-memoize": "^1.1.0", | ||
"mem": "^8.1.1", | ||
"mem": "^10.0.0", | ||
"memoizee": "^0.4.15", | ||
@@ -128,3 +128,3 @@ "memoizerific": "^1.11.3", | ||
"types": "./index.d.ts", | ||
"version": "5.0.0-beta.0" | ||
"version": "5.0.0-beta.1" | ||
} |
@@ -229,3 +229,3 @@ # micro-memoize | ||
The number of values to store in cache, based on a [Least Recently Used](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29) basis. This operates the same as [`maxSize`](https://github.com/planttheidea/moize#maxsize) on `moize`, with the exception of the default being different. | ||
The number of values to store in cache, based on a [Least Recently Used](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29) basis. This operates the same as [`maxSize`](https://github.com/planttheidea/moize#maxsize) on `moize`. | ||
@@ -232,0 +232,0 @@ ```ts |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
107628
38
2171
0