- Ensure that if the CachedAsyncIterable is called multiple times in parallel, it does return the correct value
-
Fix
package.json
'smodule
field.It now correctly points to
src/index.mjs
.
-
Add
CachedSyncIterable
andCachedAsyncIterable
.CachedIterable
is now an abstarct base class. The sync version now lives in theCachedSyncIterable
sublass, while the async one inCachedAsyncIterable
. -
Add
CachedAsyncIterable[Symbol.iterator]
. (#1)The
[Symbol.iterator]
method returns a synchronous iterator over the elements cached by theCachedAsyncIterable
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 aCachedIterable
subclass is passed,from()
simply returns it, preserving its cached state.
This is the first independent release of cached-iterable
. It corresponds to
CachedIterable
exported by the fluent
0.6.4 package.