Skip to content

Commit 80a2ace

Browse files
committed
cached-iterable 0.2.0
1 parent 25e2132 commit 80a2ace

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changelog
2+
3+
## cached-iterable 0.2.0
4+
5+
- Add `CachedSyncIterable` and `CachedAsyncIterable`.
6+
7+
`CachedIterable` is now an abstarct base class. The sync version now
8+
lives in the `CachedSyncIterable` sublass, while the async one in
9+
`CachedAsyncIterable`.
10+
11+
- Add `CachedAsyncIterable[Symbol.iterator]`. (#1)
12+
13+
The `[Symbol.iterator]` method returns a synchronous iterator over the
14+
elements cached by the `CachedAsyncIterable` instance.
15+
16+
- Add the static `from(iterable)` method. (#3)
17+
18+
The static method `from()` may be used to create new instances from other
19+
iterables (which is the same as using the constructor) or to re-use
20+
existing ones. When an existing instance of a `CachedIterable` subclass
21+
is passed, `from()` simply returns it, preserving its cached state.
22+
23+
## cached-iterable 0.1.0
24+
25+
This is the first independent release of `cached-iterable`. It corresponds to
26+
`CachedIterable` exported by the `fluent` 0.6.4 package.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cached-iterable",
33
"description": "Iterables which cache the values they yield",
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"author": "Mozilla <[email protected]>",
66
"license": "Apache-2.0",
77
"contributors": [

0 commit comments

Comments
 (0)