Skip to content

Releases: projectfluent/cached-iterable

v0.3.0

21 Oct 06:02
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release
  • Ensure that if the CachedAsyncIterable is called multiple times in parallel, it does return the correct value

v0.2.1

24 Jul 14:22
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release
  • Fix package.json's module field.

    It now correctly points to src/index.mjs.

v0.2.0

19 Jul 14:35
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release
  • Add CachedSyncIterable and CachedAsyncIterable.

    CachedIterable is now an abstarct base class. The sync version now
    lives in the CachedSyncIterable sublass, while the async one in
    CachedAsyncIterable.

  • Add CachedAsyncIterable[Symbol.iterator]. (#1)

    The [Symbol.iterator] method returns a synchronous iterator over the
    elements cached by the CachedAsyncIterable instance.

  • Add the static from(iterable) method. (#3)

    The static method from() may be used to create new instances from other
    iterables (which is the same as using the constructor) or to re-use
    existing ones. When an existing instance of a CachedIterable subclass
    is passed, from() simply returns it, preserving its cached state.

v0.1.0

31 May 09:42
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

A copy of the CachedIterable class from fluent 0.6.4.