Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

micro-memoize

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-memoize - npm Package Compare versions

Comparing version 5.0.0-beta.0 to 5.0.0-beta.1

.prettierrc.json

4

CHANGELOG.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc