Skip to content

Releases: trygve-lie/ttl-mem-cache

Version 4.1.0

11 Apr 18:56
Compare
Choose a tag to compare

This release contain the following changes:

  • Guard against max listeners warnings - #39
  • Use public readableFlowing instead of private flowing method - #41

Version 4.0.2

24 Oct 09:18
Compare
Choose a tag to compare

This reduce the amount of files in the published npm package.

Version 4.0.1

24 Oct 09:10
Compare
Choose a tag to compare

This release is tested on node.js 11.0.0. It also contain some minor internal formatting changes dues to changes in eslint rules.

Version 4.0.0

04 Jan 18:12
Compare
Choose a tag to compare

Added support for non-object mode stream. In non-object mode the cache will emit Buffers and accept Buffers on the write stream. This simplifies piping cache instances together over a socket.

Internally this has been developed using a feature introduced in node.js version 8.2.0. Due to this, support for node.js 6.x is dropped.

Version 3.1.0

03 Jan 08:03
Compare
Choose a tag to compare

Added new method for preventing entries to go into a forever loop when piping caches together #20.

Version 3.0.1

02 Jan 11:50
Compare
Choose a tag to compare

Added support for Symbol.toPrimitiv().

This makes it possible to do Bugger.from(EntryObj) on the Entry object emitted on the Stream API. When done, the buffer will contain a stringified JSON representation of the Entry object.

Version 3.0.0

31 Dec 13:35
Compare
Choose a tag to compare

This release introduces an structured entry object which holds the item to be cached in the cache. This entry object is also used on the stream to exchange cache items between cache instances.

Its also introduced several optimizations on different validation checks in the cache.

This release have some breaking changes:

  • maxAge is now renamed to ttl on the global constructor.
  • The stream does not emit a changelog value if changelog is set to true.
  • The set event does now emit key and item instead of a object with these two values. This does now align with the dispose event.

Version 2.3.1

28 Dec 09:51
Compare
Choose a tag to compare

Made arguments on the constructor enumerable.

Version 2.3.0

27 Dec 10:28
Compare
Choose a tag to compare
  • Assigned Class constructor to a const to please V8
  • Moved static methods off public API.
  • Added tests
  • Updated dependencies

Version 2.1.0

10 Nov 11:24
Compare
Choose a tag to compare

Made dispose event emit disposed item #10