OLD | NEW |
| 1 ## 1.13.3 |
| 2 |
| 3 * Make `TypeSafeStream` extend `Stream` instead of implementing it. This ensures |
| 4 that new methods on `Stream` are automatically picked up, they will go through |
| 5 the `listen` method which type-checks every event. |
| 6 |
| 7 ## 1.13.2 |
| 8 |
| 9 * Fix a type-warning. |
| 10 |
| 11 ## 1.13.1 |
| 12 |
| 13 * Use `FutureOr` for various APIs that had previously used `dynamic`. |
| 14 |
| 15 ## 1.13.0 |
| 16 |
| 17 * Add `collectBytes` and `collectBytesCancelable` functions which collects |
| 18 list-of-byte events into a single byte list. |
| 19 |
| 20 * Fix a bug where rejecting a `StreamQueueTransaction` would throw a |
| 21 `StateError` if `StreamQueue.rest` had been called on one of its child queues. |
| 22 |
| 23 * `StreamQueue.withTransaction()` now properly returns whether or not the |
| 24 transaction was committed. |
| 25 |
| 26 ## 1.12.0 |
| 27 |
| 28 * Add an `AsyncCache` class that caches asynchronous operations for a period of |
| 29 time. |
| 30 |
| 31 * Add `StreamQueue.peek` and `StreamQueue.lookAheead`. |
| 32 These allow users to look at events without consuming them. |
| 33 |
| 34 * Add `StreamQueue.startTransaction()` and `StreamQueue.withTransaction()`. |
| 35 These allow users to conditionally consume events based on their values. |
| 36 |
| 37 * Add `StreamQueue.cancelable()`, which allows users to easily make a |
| 38 `CancelableOperation` that can be canceled without affecting the queue. |
| 39 |
| 40 * Add `StreamQueue.eventsDispatched` which counts the number of events that have |
| 41 been dispatched by a given queue. |
| 42 |
| 43 * Add a `subscriptionTransformer()` function to create `StreamTransformer`s that |
| 44 modify the behavior of subscriptions to a stream. |
| 45 |
| 46 ## 1.11.3 |
| 47 |
| 48 * Fix strong-mode warning against the signature of Future.then |
| 49 |
| 50 ## 1.11.1 |
| 51 |
| 52 * Fix new strong-mode warnings introduced in Dart 1.17.0. |
| 53 |
| 54 ## 1.11.0 |
| 55 |
| 56 * Add a `typedStreamTransformer()` function. This wraps an untyped |
| 57 `StreamTransformer` with the correct type parameters, and asserts the types of |
| 58 events as they're emitted from the transformed stream. |
| 59 |
| 60 * Add a `StreamSinkTransformer.typed()` static method. This wraps an untyped |
| 61 `StreamSinkTransformer` with the correct type parameters, and asserts the |
| 62 types of arguments passed in to the resulting sink. |
| 63 |
| 64 ## 1.10.0 |
| 65 |
| 66 * Add `DelegatingFuture.typed()`, `DelegatingStreamSubscription.typed()`, |
| 67 `DelegatingStreamConsumer.typed()`, `DelegatingSink.typed()`, |
| 68 `DelegatingEventSink.typed()`, and `DelegatingStreamSink.typed()` static |
| 69 methods. These wrap untyped instances of these classes with the correct type |
| 70 parameter, and assert the types of values as they're accessed. |
| 71 |
| 72 * Add a `DelegatingStream` class. This is behaviorally identical to `StreamView` |
| 73 from `dart:async`, but it follows this package's naming conventions and |
| 74 provides a `DelegatingStream.typed()` static method. |
| 75 |
| 76 * Fix all strong mode warnings and add generic method annotations. |
| 77 |
| 78 * `new StreamQueue()`, `new SubscriptionStream()`, `new |
| 79 DelegatingStreamSubscription()`, `new DelegatingStreamConsumer()`, `new |
| 80 DelegatingSink()`, `new DelegatingEventSink()`, and `new |
| 81 DelegatingStreamSink()` now take arguments with generic type arguments (for |
| 82 example `Stream<T>`) rather than without (for example `Stream<dynamic>`). |
| 83 Passing a type that wasn't `is`-compatible with the fully-specified generic |
| 84 would already throw an error under some circumstances, so this is not |
| 85 considered a breaking change. |
| 86 |
| 87 * `ErrorResult` now takes a type parameter. |
| 88 |
| 89 * `Result.asError` now returns a `Result<T>`. |
| 90 |
| 91 ## 1.9.0 |
| 92 |
| 93 * Deprecate top-level libraries other than `package:async/async.dart`, which |
| 94 exports these libraries' interfaces. |
| 95 |
| 96 * Add `Result.captureStreamTransformer`, `Result.releaseStreamTransformer`, |
| 97 `Result.captureSinkTransformer`, and `Result.releaseSinkTransformer`. |
| 98 |
| 99 * Deprecate `CaptureStreamTransformer`, `ReleaseStreamTransformer`, |
| 100 `CaptureSink`, and `ReleaseSink`. `Result.captureStreamTransformer`, |
| 101 `Result.releaseStreamTransformer`, `Result.captureSinkTransformer`, and |
| 102 `Result.releaseSinkTransformer` should be used instead. |
| 103 |
| 104 ## 1.8.0 |
| 105 |
| 106 - Added `StreamSinkCompleter`, for creating a `StreamSink` now and providing its |
| 107 destination later as another sink. |
| 108 |
| 109 - Added `StreamCompleter.setError`, a shortcut for emitting a single error event |
| 110 on the resulting stream. |
| 111 |
| 112 - Added `NullStreamSink`, an implementation of `StreamSink` that discards all |
| 113 events. |
| 114 |
| 115 ## 1.7.0 |
| 116 |
| 117 - Added `SingleSubscriptionTransformer`, a `StreamTransformer` that converts a |
| 118 broadcast stream into a single-subscription stream. |
| 119 |
| 120 ## 1.6.0 |
| 121 |
| 122 - Added `CancelableOperation.valueOrCancellation()`, which allows users to be |
| 123 notified when an operation is canceled elsewhere. |
| 124 |
| 125 - Added `StreamSinkTransformer` which transforms events before they're passed to |
| 126 a `StreamSink`, similarly to how `StreamTransformer` transforms events after |
| 127 they're emitted by a stream. |
| 128 |
| 129 ## 1.5.0 |
| 130 |
| 131 - Added `LazyStream`, which forwards to the return value of a callback that's |
| 132 only called when the stream is listened to. |
| 133 |
1 ## 1.4.0 | 134 ## 1.4.0 |
2 | 135 |
3 - Added `AsyncMemoizer.future`, which allows the result to be accessed before | 136 - Added `AsyncMemoizer.future`, which allows the result to be accessed before |
4 `runOnce()` is called. | 137 `runOnce()` is called. |
5 | 138 |
| 139 - Added `CancelableOperation`, an asynchronous operation that can be canceled. |
| 140 It can be created using a `CancelableCompleter`. |
| 141 |
6 - Added `RestartableTimer`, a non-periodic timer that can be reset over and | 142 - Added `RestartableTimer`, a non-periodic timer that can be reset over and |
7 over. | 143 over. |
8 | 144 |
9 ## 1.3.0 | 145 ## 1.3.0 |
10 | 146 |
11 - Added `StreamCompleter` class for creating a stream now and providing its | 147 - Added `StreamCompleter` class for creating a stream now and providing its |
12 events later as another stream. | 148 events later as another stream. |
13 | 149 |
14 - Added `StreamQueue` class which allows requesting events from a stream | 150 - Added `StreamQueue` class which allows requesting events from a stream |
15 before they are avilable. It is like a `StreamIterator` that can queue | 151 before they are avilable. It is like a `StreamIterator` that can queue |
(...skipping 19 matching lines...) Expand all Loading... |
35 interface for subclasses, or extended to add extra functionality. | 171 interface for subclasses, or extended to add extra functionality. |
36 | 172 |
37 ## 1.2.0 | 173 ## 1.2.0 |
38 | 174 |
39 - Added a `FutureGroup` class for waiting for a group of futures, potentially of | 175 - Added a `FutureGroup` class for waiting for a group of futures, potentially of |
40 unknown size, to complete. | 176 unknown size, to complete. |
41 | 177 |
42 - Added a `StreamGroup` class for merging the events of a group of streams, | 178 - Added a `StreamGroup` class for merging the events of a group of streams, |
43 potentially of unknown size. | 179 potentially of unknown size. |
44 | 180 |
| 181 - Added a `StreamSplitter` class for splitting a stream into multiple new |
| 182 streams. |
| 183 |
45 ## 1.1.1 | 184 ## 1.1.1 |
46 | 185 |
47 - Updated SDK version constraint to at least 1.9.0. | 186 - Updated SDK version constraint to at least 1.9.0. |
48 | 187 |
49 ## 1.1.0 | 188 ## 1.1.0 |
50 | 189 |
51 - ChangeLog starts here. | 190 - ChangeLog starts here. |
OLD | NEW |