Skip to content

Releases: aholstenson/transitory

2.2.0

13 Aug 07:36
Compare
Choose a tag to compare
  • Fix: Race-condition in LoadingCache.get
  • Docs: Improved documentation of classes and interfaces
  • Chore: Minor source tweaks due to switch to ESLint

2.1.0

09 Apr 08:27
Compare
Choose a tag to compare
  • Cache implementations are now exported to allow for direct use. Skipping the use of the builder allows for tree-shaking in ES Module projects

2.0.1

09 Apr 08:24
Compare
Choose a tag to compare

Bugfix release to fix NPM deployment not including the built JavaScript files.

2.0.0

09 Apr 08:24
Compare
Choose a tag to compare

Transitory has been rewritten in TypeScript allowing for a safer cache implementation and easier use in other TypeScript projects.

API changes in 2.x:

  • Cache can no longer be used with instanceof, it has been replaced with AbstractCache
  • get(key) has been replaced with getIfPresent(key) for all non-loading caches
  • RemovalCause has been renamed to RemovalReason and now uses strings instead of symbols
  • Builders are now created via newCache() instead of directly via the imported object

Other changes:

  • Separate CommonJS build for Node
  • ES Module builds to support tree-shaking and easier importing in browser projects

1.2.1

25 Jun 07:11
Compare
Choose a tag to compare
  • Fix: memoryEstimator now works correctly with timed and bounded caches

1.2.0

26 Oct 16:25
Compare
Choose a tag to compare
  • Added support for peek(key) to allow peeking into the contents of a cache without loading or or affecting any metrics or stats of the cache

1.1.0

04 Oct 10:34
Compare
Choose a tag to compare
  • cleanUp() is now part of the public API. It can be used toequest clean up of the cache by removing expired entries and old data. In most cases this is not needed. See README for details.
  • All caches now share a common base class to allow for checks using instanceof: if(obj instanceof transitory.Cache)

1.0.0

15 Jun 19:54
Compare
Choose a tag to compare
  • Human friendly arguments in builder
  • clear() and keys() added to Cache API

0.7.0

14 Jun 08:56
Compare
Choose a tag to compare
  • Improved hit rates
  • Expiration of entries now evaluated on set and delete

0.6.0

10 Jun 09:59
Compare
Choose a tag to compare
  • Added support for metrics
  • Improved hit rate for bounded cache