Skip to content

Releases: kartikk221/cached-lookup

5.4.0

08 Aug 00:01
Compare
Choose a tag to compare

What's Changed

  • Added Error.cause trace to lookup errors for better debugging.

Full Changelog: 5.3.1...5.4.0

5.3.1

25 Jul 05:01
Compare
Choose a tag to compare

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

24 Jul 22:33
Compare
Choose a tag to compare

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

27 Nov 04:07
Compare
Choose a tag to compare

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

22 Nov 22:30
Compare
Choose a tag to compare

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

14 Sep 02:53
Compare
Choose a tag to compare

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 storing max_age.

Full Changelog: 5.0.0...5.0.1

5.0.0

12 Sep 21:05
Compare
Choose a tag to compare

What's Changed

  • Implemented CachedLookup.clear() method to clear all cached values.
  • Implemented CacahedLookup.promises property which is a Map of in flight Promise instances.
  • Migrated CachedLookup.cached property to CachedLookup.cache which is a Map of cached values.
  • Implemented automatic cache cleanup internally for cached values after the greatest max_age value over the lifetime of a instance.
  • Improved JS Docs & Types.

Full Changelog: 4.0.4...5.0.0

4.0.4

12 Sep 04:08
Compare
Choose a tag to compare

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

18 May 23:57
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.0.1...4.0.3

4.0.1

06 May 20:11
Compare
Choose a tag to compare

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