Releases: kartikk221/cached-lookup
Releases · kartikk221/cached-lookup
5.4.0
What's Changed
- Added
Error.cause
trace to lookup errors for better debugging.
Full Changelog: 5.3.1...5.4.0
5.3.1
What's Changed
- Improved JSDoc & TypeScript types with support for EventEmitter events.
- Improved efficiency of cache cleanup scheduler.
Full Changelog: 5.3.0...5.3.1
5.3.0
What's Changed
- Implemented the
CachedLookup.get(...args)
method to consume cached value instantly if one exists. - Re-implemented internal cache and cleanup to be more efficient with a control for maximum cache expiries per event loop tick.
Full Changelog: 5.2.0...5.3.0
5.2.0
What's Changed
- Implemented
CachedLookup.rolling()
method to allow for consumption of cached values on a rolling basis allowing for low latency consumption at the cost of guaranteed cache freshness. - Improved JSDoc Types & TypeScript.
Full Changelog: 5.1.0...5.2.0
5.1.0
What's Changed
- Implemented
options
parameter to the constructor. - Implemented
options.auto_purge
options parameter to allow for controlling of internal cache purging. - Implemented
options.purge_age_factor
options parameter to allow for controlling of the internal cache purging age threshold.
Full Changelog: 5.0.1...5.1.0
5.0.1
What's Changed
- Improved the internal automatic cache value deletion / cleanup process to also release memory from remembering the greatest
max_age
of a cached value for a certain set of arguments to prevent uncontrolled growth of memory usage for storingmax_age
.
Full Changelog: 5.0.0...5.0.1
5.0.0
What's Changed
- Implemented
CachedLookup.clear()
method to clear all cached values. - Implemented
CacahedLookup.promises
property which is aMap
of in flightPromise
instances. - Migrated
CachedLookup.cached
property toCachedLookup.cache
which is aMap
of cached values. - Implemented
automatic
cachecleanup
internally for cached values after the greatestmax_age
value over the lifetime of a instance. - Improved JS Docs & Types.
Full Changelog: 4.0.4...5.0.0
4.0.4
What's Changed
- Made the
CachedLookup.cache
object public with JSDoc comments to allow for faster access without a getter.
Full Changelog: 4.0.3...4.0.4
4.0.3
What's Changed
- fix: amend typescript definition by @leosuncin in #3
New Contributors
- @leosuncin made their first contribution in #3
Full Changelog: 4.0.1...4.0.3
4.0.1
General Changes
- Implemented
CachedLookup.updated_at()
method which allows retrieval of the last value update timestamp in milliseconds for the provided set of arguments.
Full Changelog: 4.0.0...4.0.1