From 80a2acefe7d1ba3e95e5904217fd029711f96ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sta=C5=9B=20Ma=C5=82olepszy?= Date: Thu, 19 Jul 2018 16:34:42 +0200 Subject: [PATCH] cached-iterable 0.2.0 --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100755 index 0000000..dda45ff --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,26 @@ +# Changelog + +## cached-iterable 0.2.0 + + - 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. + +## cached-iterable 0.1.0 + +This is the first independent release of `cached-iterable`. It corresponds to +`CachedIterable` exported by the `fluent` 0.6.4 package. diff --git a/package.json b/package.json index f5b4508..058667c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cached-iterable", "description": "Iterables which cache the values they yield", - "version": "0.1.0", + "version": "0.2.0", "author": "Mozilla ", "license": "Apache-2.0", "contributors": [