NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3877 most downloaded on npm
Memoize/cache function results
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 3.4 years
Nearly every release is documented
notes for 37 of 38 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
38 releases · first in 2012
### Bug Fixes - Fix node version declaration (15ece26) --- Comparison since last release
### Maintenance Improvements - Prettify (fe3e492) --- Comparison since last release
One column per quarter.
Nothing published for this version
ensure to not force unhandled rejections
promise: support cancellation case (b4b018d), closes #97
max-age: unref timeouts to not block processes from exiting (5bcc5a4), closes #25
_get and _has internal args handling. (7cb1c7a), closes #88
remove then:finally mode as it can't work right
_Maintanance improvements_ --- Comparison since last release
_Maintanance improvements_ --- Comparison since last release
improve 'promise' mode handling
profileName option for naming memoizee instances in profile output
resolution of extensions with weak handling (f29a97b), closes #79
See CHANGES
Expose _get and _has methods. It provides temporary means for better cache inspection until v1 is delivered
Fix normalization resolver, so it validates already normalized resolvers (reported at #70)
Guard proper promise resolution in promise mode
Fix promise mode to not use then and finally pair. Thanks @Kovensky
then and finally pair. Thanks @Kovenskydone but no
finally event if it's implemented)Change signature of internal events for 'async' case
Fix arguments support for weak mode
* Update dependencies * Improve documentation * FIx spelling of LICENSE
Introduce WeakMap based weak mode
weak modeFix prefetch support for asynchronous functions
Fix race condition issue related to clear/delete calls and returning id's
Fix internal id genaration, for primitive, length = 1 case. Ids were not serialized to strings, and that caused issues with other internal logiv, whic
null case specifically.
Fixes #15 (Thanks @isaacg for reporting)Fix async handling in case of clear between two async calls (assurance of unique cache ids solves that). Fixes #13
Fix profiler special property definition
Provide no-arguments memoization out of a box (no need to provide normalizer to memoizee/plain)
memoizee/plain)Update package.json to use latest 'tad' engine (fixes tests evaluation)
Major reorganization and partial refactoring
Major reorganization and partial refactoring
normalizer option.normalizer option.memoized.clear into memoized.delete, and memoized.clearAll into memoized.clearmemoized.clearRef into memoized.deleteRef (applies to 'refCounter' option)async handlinglru-queue package.
See https://github.com/medikoo/lru-queueFix internal events propagation when handling async calls that resolve with errors. asyncpurge was emitted for values that had no asyncinit emitted. I
asyncpurge was emitted for values that had no
asyncinit emitted. Issue #9Fix primitive handling for dynamic arguments length
Fix primitive handling for dynamic arguments length
Throw on circular invocations, they cannot be memoized as intended.
Throw on circular invocations, they cannot be memoized as intended.
Fixed serious bug related to not properly cleared cache when working in regular mode
Fixed serious bug related to not properly cleared cache when working in regular mode
preFetch functionality for maxAge variant
Fix missing global reference in method option logic
Modularization and general algorithm cleanup
Fix dispose invocations for no arguments call
Initial. Derived from es5-ext package, added async, maxAge, refCounter, max and dispose options.
Initial. Derived from es5-ext package, added async, maxAge, refCounter, max and dispose options.
async, maxAge,
refCounter, max and dispose options.Your coding agent can read these notes before it upgrades. Set up the MCP server →