|
| 1 | +## 2.1.1 |
| 2 | + |
| 3 | +- Require Dart 3.1 or greater |
| 4 | +- Forward errors from the `trigger` future through to the result stream in |
| 5 | + `takeUntil`. Previously an error would have not closed the stream, and instead |
| 6 | + raised as an unhandled async error. |
| 7 | +- Move to `dart-lang/tools` monorepo. |
| 8 | + |
| 9 | +## 2.1.0 |
| 10 | + |
| 11 | +- Add `whereNotNull`. |
| 12 | + |
| 13 | +## 2.0.1 |
| 14 | + |
| 15 | +- Require Dart 2.14 or greater. |
| 16 | +- Wait for the future returned from `StreamSubscription.cancel()` before |
| 17 | + listening to the subsequent stream in `switchLatest` and `switchMap`. |
| 18 | + |
| 19 | +## 2.0.0 |
| 20 | + |
| 21 | +- Migrate to null safety. |
| 22 | +- Improve tests of `switchMap` and improve documentation with links and |
| 23 | + clarification. |
| 24 | +- Add `trailing` argument to `throttle`. |
| 25 | + |
| 26 | +## 1.2.0 |
| 27 | + |
| 28 | +- Add support for emitting the "leading" event in `debounce`. |
| 29 | + |
| 30 | +## 1.1.1 |
| 31 | + |
| 32 | +- Fix a bug in `asyncMapSample`, `buffer`, `combineLatest`, |
| 33 | + `combineLatestAll`, `merge`, and `mergeAll` which would cause an exception |
| 34 | + when cancelling a subscription after using the transformer if the original |
| 35 | + stream(s) returned `null` from cancelling their subscriptions. |
| 36 | + |
| 37 | +## 1.1.0 |
| 38 | + |
| 39 | +- Add `concurrentAsyncExpand` to interleave events emitted by multiple sub |
| 40 | + streams created by a callback. |
| 41 | + |
| 42 | +## 1.0.0 |
| 43 | + |
| 44 | +- Remove the top level methods and retain the extensions only. |
| 45 | + |
| 46 | +## 0.0.20 |
| 47 | + |
| 48 | +- Add extension methods for most transformers. These should be used in place |
| 49 | + of the current methods. All current implementations are deprecated and will |
| 50 | + be removed in the next major version bump. |
| 51 | + - Migrating typical use: Instead of |
| 52 | + `stream.transform(debounce(Duration(seconds: 1)))` use |
| 53 | + `stream.debounce(Duration(seconds: 1))`. |
| 54 | + - To migrate a usage where a `StreamTransformer` instance is stored or |
| 55 | + passed see "Getting a StreamTransformer instance" on the README. |
| 56 | +- The `map` and `chainTransformers` utilities are no longer useful with the |
| 57 | + new patterns so they are deprecated without a replacement. If you still have |
| 58 | + a need for them they can be replicated with `StreamTransformer.fromBind`: |
| 59 | + |
| 60 | + ``` |
| 61 | + // Replace `map(convert)` |
| 62 | + StreamTransformer.fromBind((s) => s.map(convert)); |
| 63 | +
|
| 64 | + // Replace `chainTransformers(first, second)` |
| 65 | + StreamTransformer.fromBind((s) => s.transform(first).transform(second)); |
| 66 | + ``` |
| 67 | +
|
| 68 | +## 0.0.19 |
| 69 | +
|
| 70 | +- Add `asyncMapSample` transform. |
| 71 | +
|
| 72 | +## 0.0.18 |
| 73 | +
|
| 74 | +- Internal cleanup. Passed "trigger" streams or futures now allow `<void>` |
| 75 | + generic type rather than an implicit `dynamic>` |
| 76 | +
|
| 77 | +## 0.0.17 |
| 78 | +
|
| 79 | +- Add concrete types to the `onError` callback in `tap`. |
| 80 | +
|
| 81 | +## 0.0.16+1 |
| 82 | +
|
| 83 | +- Remove usage of Set literal which is not available before Dart 2.2.0 |
| 84 | +
|
| 85 | +## 0.0.16 |
| 86 | +
|
| 87 | +- Allow a `combine` callback to return a `FutureOr<T>` in `scan`. There are no |
| 88 | + behavior changes for synchronous callbacks. **Potential breaking change** In |
| 89 | + the unlikely situation where `scan` was used to produce a `Stream<Future>` |
| 90 | + inference may now fail and require explicit generic type arguments. |
| 91 | +- Add `combineLatest`. |
| 92 | +- Add `combineLatestAll`. |
| 93 | +
|
| 94 | +## 0.0.15 |
| 95 | +
|
| 96 | +- Add `whereType`. |
| 97 | +
|
| 98 | +## 0.0.14+1 |
| 99 | +
|
| 100 | +- Allow using non-dev Dart 2 SDK. |
| 101 | +
|
| 102 | +## 0.0.14 |
| 103 | +
|
| 104 | +- `asyncWhere` will now forward exceptions thrown by the callback through the |
| 105 | + result Stream. |
| 106 | +- Added `concurrentAsyncMap`. |
| 107 | +
|
| 108 | +## 0.0.13 |
| 109 | +
|
| 110 | +- `mergeAll` now accepts an `Iterable<Stream>` instead of only `List<Stream>`. |
| 111 | +
|
| 112 | +## 0.0.12 |
| 113 | +
|
| 114 | +- Add `chainTransformers` and `map` for use cases where `StreamTransformer` |
| 115 | + instances are stored as variables or passed to methods other than `transform`. |
| 116 | +
|
| 117 | +## 0.0.11 |
| 118 | +
|
| 119 | +- Renamed `concat` as `followedBy` to match the naming of `Iterable.followedBy`. |
| 120 | + `concat` is now deprecated. |
| 121 | +
|
| 122 | +## 0.0.10 |
| 123 | +
|
| 124 | +- Updates to support Dart 2.0 core library changes (wave |
| 125 | + 2.2). See [issue 31847][sdk#31847] for details. |
| 126 | +
|
| 127 | + [sdk#31847]: https://github.com/dart-lang/sdk/issues/31847 |
| 128 | +
|
| 129 | +## 0.0.9 |
| 130 | +
|
| 131 | +- Add `asyncMapBuffer`. |
| 132 | +
|
| 133 | +## 0.0.8 |
| 134 | +
|
| 135 | +- Add `takeUntil`. |
| 136 | +
|
| 137 | +## 0.0.7 |
| 138 | +
|
| 139 | +- Bug Fix: Streams produced with `scan` and `switchMap` now correctly report |
| 140 | + `isBroadcast`. |
| 141 | +- Add `startWith`, `startWithMany`, and `startWithStream`. |
| 142 | +
|
| 143 | +## 0.0.6 |
| 144 | +
|
| 145 | +- Bug Fix: Some transformers did not correctly add data to all listeners on |
| 146 | + broadcast streams. Fixed for `throttle`, `debounce`, `asyncWhere` and `audit`. |
| 147 | +- Bug Fix: Only call the `tap` data callback once per event rather than once per |
| 148 | + listener. |
| 149 | +- Bug Fix: Allow canceling and re-listening to broadcast streams after a |
| 150 | + `merge` transform. |
| 151 | +- Bug Fix: Broadcast streams which are buffered using a single-subscription |
| 152 | + trigger can be canceled and re-listened. |
| 153 | +- Bug Fix: Buffer outputs one more value if there is a pending trigger before |
| 154 | + the trigger closes. |
| 155 | +- Bug Fix: Single-subscription streams concatted after broadcast streams are |
| 156 | + handled correctly. |
| 157 | +- Use sync `StreamControllers` for forwarding where possible. |
| 158 | +
|
| 159 | +## 0.0.5 |
| 160 | +
|
| 161 | +- Bug Fix: Allow compiling switchLatest with Dart2Js. |
| 162 | +- Add `asyncWhere`: Like `where` but allows an asynchronous predicate. |
| 163 | +
|
| 164 | +## 0.0.4 |
| 165 | +- Add `scan`: fold which returns intermediate values |
| 166 | +- Add `throttle`: block events for a duration after emitting a value |
| 167 | +- Add `audit`: emits the last event received after a duration |
| 168 | +
|
| 169 | +## 0.0.3 |
| 170 | +
|
| 171 | +- Add `tap`: React to values as they pass without being a subscriber on a stream |
| 172 | +- Add `switchMap` and `switchLatest`: Flatten a Stream of Streams into a Stream |
| 173 | + which forwards values from the most recent Stream |
| 174 | +
|
| 175 | +## 0.0.2 |
| 176 | +
|
| 177 | +- Add `concat`: Appends streams in series |
| 178 | +- Add `merge` and `mergeAll`: Interleaves streams |
| 179 | +
|
| 180 | +## 0.0.1 |
| 181 | +
|
| 182 | +- Initial release with the following utilities: |
| 183 | + - `buffer`: Collects events in a `List` until a `trigger` stream fires. |
| 184 | + - `debounce`, `debounceBuffer`: Collect or drop events which occur closer in |
| 185 | + time than a given duration. |
0 commit comments