npm / micro-memoize
micro-memoize
What changed in micro-memoize 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.
1 breaking1 deprecations1 performance1 behavior and defaults7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmicro-memoize 57 changes
Performance 1
Skips a redundant cache lookup when resetting expiration on resolution.
Fixes and other changes 6
Expiration is reset after every async resolution.
Replacement cache values are kept when an older promise settles.
Fixed typings that were invalid in some cases.
Listeners can be removed while listeners are being iterated.
Expiration is updated when a promise resolves.
Types were cleaned up so the result type is appropriately narrowed.
micro-memoize 42 changes
Breaking changes 1
The cache was converted to a class, changing how developers work with the cache.
Deprecations 1
cacheSnapshot was deprecated.
micro-memoize 32 changes
Behavior and default changes 1
CommonJS users can use require without specifying
.defaultto bring in the package.
Fixes and other changes 1
The types contract is much more accurate after the package was rewritten in TypeScript.