A tiny, crazy fast memoization library for the 95% use-case
release-it
configs (17ec572)hit
fires as well as update
when updating cache (22486e2)mem
and handle it in benchmarks (8213ca0)moize
superset (30d7263)matchesArg
to isArgEqual
and matchesKey
to isKeyEqual
to be more declarative (78654fc)this.c
since it is not needed (f095b80)snapshot
to entries
and provide JSDoc for exposed types (28442d4)cloneKey
and improve test for transformKey
(63b9d80).set()
(cc33dce).set()
(7ded0dd)clear
method and playground types, and surface Cache
/ EventEmitter
for moize
consumption later (2065715)Cache
and scope access to its values (3df44bf)onCache
events (af8f4ad)Cache
(de9f11c)get
method (217d6e4)set
, and ensure normalization of async nodes occurs when set
is used (acbe0cc)src
directory (#98) (171cf6c)*.d.mts
, as is standard for *.mjs
files (bbfcb20)es-to-mjs
script to also copy index.d.ts
(#100) (3ed3d03)es-to-mjs
script to also copy index.d.ts
(#100) (3ed3d03)