update CI; prep for publishing (dart-lang/stream_transform#155)
diff --git a/pkgs/stream_transform/.github/dependabot.yaml b/pkgs/stream_transform/.github/dependabot.yaml new file mode 100644 index 0000000..2144819 --- /dev/null +++ b/pkgs/stream_transform/.github/dependabot.yaml
@@ -0,0 +1,8 @@ +# Dependabot configuration file. +version: 2 + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly"
diff --git a/pkgs/stream_transform/.github/dependabot.yml b/pkgs/stream_transform/.github/dependabot.yml deleted file mode 100644 index 430a85e..0000000 --- a/pkgs/stream_transform/.github/dependabot.yml +++ /dev/null
@@ -1,11 +0,0 @@ -# Set update schedule for GitHub Actions -# See https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot - -version: 2 -updates: - -- package-ecosystem: "github-actions" - directory: "/" - schedule: - # Check for updates to GitHub Actions every weekday - interval: "daily"
diff --git a/pkgs/stream_transform/.github/workflows/test-package.yml b/pkgs/stream_transform/.github/workflows/test-package.yml index 02bf25d..3aa30d4 100644 --- a/pkgs/stream_transform/.github/workflows/test-package.yml +++ b/pkgs/stream_transform/.github/workflows/test-package.yml
@@ -22,8 +22,8 @@ matrix: sdk: [dev] steps: - - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: ${{ matrix.sdk }} - id: install @@ -49,8 +49,8 @@ os: [ubuntu-latest] sdk: [2.14.0, dev] steps: - - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 + - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d with: sdk: ${{ matrix.sdk }} - id: install
diff --git a/pkgs/stream_transform/CHANGELOG.md b/pkgs/stream_transform/CHANGELOG.md index a00b3ba..f425a1a 100644 --- a/pkgs/stream_transform/CHANGELOG.md +++ b/pkgs/stream_transform/CHANGELOG.md
@@ -1,4 +1,4 @@ -## 2.0.1-dev +## 2.0.1 - Require Dart 2.14 or greater. - Wait for the future returned from `StreamSubscription.cancel()` before
diff --git a/pkgs/stream_transform/README.md b/pkgs/stream_transform/README.md index ee0ac2e..b574293 100644 --- a/pkgs/stream_transform/README.md +++ b/pkgs/stream_transform/README.md
@@ -1,11 +1,12 @@ [](https://travis-ci.org/dart-lang/stream_transform) [](https://pub.dev/packages/stream_transform) +[](https://pub.dev/packages/stream_transform/publisher) Extension methods on `Stream` adding common transform operators. -# Operators +## Operators -## asyncMapBuffer, asyncMapSample, concurrentAsyncMap +### asyncMapBuffer, asyncMapSample, concurrentAsyncMap Alternatives to `asyncMap`. `asyncMapBuffer` prevents the callback from overlapping execution and collects events while it is executing. @@ -16,70 +17,70 @@ Like `asyncMap` but events are buffered in a List until previous events have been processed rather than being called for each element individually. -## asyncWhere +### asyncWhere Like `where` but allows an asynchronous predicate. -## audit +### audit Waits for a period of time after receiving a value and then only emits the most recent value. -## buffer +### buffer Collects values from a source stream until a `trigger` stream fires and the collected values are emitted. -## combineLatest, combineLatestAll +### combineLatest, combineLatestAll Combine the most recent event from multiple streams through a callback or into a list. -## debounce, debounceBuffer +### debounce, debounceBuffer Prevents a source stream from emitting too frequently by dropping or collecting values that occur within a given duration. -## followedBy +### followedBy Appends the values of a stream after another stream finishes. -## merge, mergeAll, concurrentAsyncExpand +### merge, mergeAll, concurrentAsyncExpand Interleaves events from multiple streams into a single stream. -## scan +### scan Scan is like fold, but instead of producing a single value it yields each intermediate accumulation. -## startWith, startWithMany, startWithStream +### startWith, startWithMany, startWithStream Prepend a value, an iterable, or a stream to the beginning of another stream. -## switchMap, switchLatest +### switchMap, switchLatest Flatten a Stream of Streams into a Stream which forwards values from the most recent Stream -## takeUntil +### takeUntil Let values through until a Future fires. -## tap +### tap Taps into a single-subscriber stream to react to values as they pass, without being a real subscriber. -## throttle +### throttle Blocks events for a duration after an event is successfully emitted. -## whereType +### whereType Like `Iterable.whereType` for a stream. -### Comparison to Rx Operators +## Comparison to Rx Operators The semantics and naming in this package have some overlap, and some conflict, with the [ReactiveX](https://reactivex.io/) suite of libraries. Some of the @@ -125,7 +126,7 @@ [debounce]:https://pub.dev/documentation/stream_transform/latest/stream_transform/RateLimit/debounce.html [throttle]:https://pub.dev/documentation/stream_transform/latest/stream_transform/RateLimit/throttle.html -# Getting a `StreamTransformer` instance +## Getting a `StreamTransformer` instance It may be useful to pass an instance of `StreamTransformer` so that it can be used with `stream.transform` calls rather than reference the specific operator
diff --git a/pkgs/stream_transform/pubspec.yaml b/pkgs/stream_transform/pubspec.yaml index 4b58ddf..1815178 100644 --- a/pkgs/stream_transform/pubspec.yaml +++ b/pkgs/stream_transform/pubspec.yaml
@@ -1,7 +1,7 @@ name: stream_transform +version: 2.0.1 description: A collection of utilities to transform and manipulate streams. repository: https://github.com/dart-lang/stream_transform -version: 2.0.1-dev environment: sdk: ">=2.14.0 <3.0.0"