unstale

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 init

@unstale/cli on npm

micro-memoize 57 changes

Performance 1

  • Skips a redundant cache lookup when resetting expiration on resolution.

    5.2.2release notes

Fixes and other changes 6

  • Expiration is reset after every async resolution.

    5.2.2release notes

  • Replacement cache values are kept when an older promise settles.

    5.2.1release notes

  • Fixed typings that were invalid in some cases.

    5.1.2release notes

  • Listeners can be removed while listeners are being iterated.

    5.1.0release notes

  • Expiration is updated when a promise resolves.

    5.1.0release notes

  • Types were cleaned up so the result type is appropriately narrowed.

    5.0.1release notes

micro-memoize 42 changes

Breaking changes 1

  • The cache was converted to a class, changing how developers work with the cache.

    4.0.0release notes

Deprecations 1

micro-memoize 32 changes

Behavior and default changes 1

  • CommonJS users can use require without specifying .default to bring in the package.

    3.0.0release notes

Fixes and other changes 1

  • The types contract is much more accurate after the package was rewritten in TypeScript.

    3.0.0release notes