stream_channel
An abstraction for two-way communication channels based on the Dart Stream class.
2.1.4
8.8M downloads/mo
#51 most downloaded on pub.dev
dart-lang/tools
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.6 years
Nearly every release is documented
notes for 27 of 27 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
31 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
31 releases · Jan 2016 to Jan 2025Releases
latest 31-
2.1.407 Jan 2025 -
2.1.320 Dec 2024 -
2.1.222 Jun 2023Release notes
Open source →- Require Dart 2.19
- Add an example.
- Fix a race condition in
IsolateChannel.connectReceive()where the channel could hang forever if its sink was closed before the connection was established.
-
2.1.121 Sep 2022Release notes
Open source →- Require Dart 2.14
- Populate the pubspec
repositoryfield. - Handle multichannel messages where the ID element is a
doubleat runtime instead of anint. When reading an array withdart2wasmnumbers within the array are parsed asdouble.
-
2.1.002 Feb 2021 -
2.1.0-nullsafety.303 Nov 2020 pre-releaseNothing published for this version
-
2.1.0-nullsafety.223 Oct 2020 pre-releaseNothing published for this version
-
2.1.0-nullsafety.122 Sep 2020 pre-releaseNothing published for this version
-
2.1.0-nullsafety29 Jul 2020 pre-releaseNothing published for this version
-
2.0.028 Mar 2019Release notes
Open source →Breaking changes
IsolateChannelrequires a separate importpackage:stram_channel/isolate_channel.dart.package:stream_channel/stream_channel.dartwill now not trigger any platform concerns due to importingdart:isolate.- Remove
JsonDocumentTransformerclass. ThejsonDocumenttop level is still available. - Remove
StreamChannelTransformer.typed. Use.caston the transformed channel instead. - Change
Future<dynamic>returns toFuture<void>.
-
1.7.026 Mar 2019Release notes
Open source →- Make
IsolateChannelavailable throughpackage:stream_channel/isolate_channel.dart. This will be the required import in the next release. - Require
2.0.0or newer SDK. - Internal style changes.
- Make
-
1.6.818 Jul 2018 -
1.6.708 Jun 2018Release notes
Open source →- Update SDK version to 2.0.0-dev.17.0.
- Add a type argument to
MultiChannel.
-
1.6.7+112 Jun 2018 -
1.6.602 May 2018Release notes
Open source →-
Fix a Dart 2 issue with inner stream transformation in
GuaranteeChannel. -
Fix a Dart 2 issue with
StreamChannelTransformer.fromCodec().
-
-
1.6.516 Apr 2018Release notes
Open source →- Fix an issue with
JsonDocumentTransformer.bindwhere it created an internal stream channel which didn't get a properly inferred type for itssink.
- Fix an issue with
-
1.6.427 Feb 2018Release notes
Open source →- Fix a race condition in
MultiChannelwhere messages from a remote virtual channel could get dropped if the corresponding local channel wasn't registered quickly enough.
- Fix a race condition in
-
1.6.319 Dec 2017 -
1.6.222 Sep 2017 -
1.6.125 Jan 2017Release notes
Open source →- Fix the type of
StreamChannel.transform(). This previously inverted the generic parameters, so it only really worked with transformers where both generic types were identical.
- Fix the type of
-
1.6.019 Jan 2017Release notes
Open source →Disconnector.disconnect()now returns a future that completes when all the innerStreamSink.close()futures have completed.
-
1.5.006 Jun 2016Release notes
Open source →-
Add
new StreamChannel.withCloseGuarantee()to provide the specific guarantee that closing the sink causes the stream to close before it emits any more events. This is the only guarantee that isn't automatically preserved when transforming a channel. -
StreamChannelTransformers provided by thestream_channelpackage now properly provide the guarantee that closing the sink causes the stream to close before it emits any more events
-
-
1.4.010 May 2016Release notes
Open source →-
Add
StreamChannel.cast(), which soundly coerces the generic type of a channel. -
Add
StreamChannelTransformer.typed(), which soundly coerces the generic type of a transformer.
-
-
1.3.210 May 2016 -
1.3.110 Feb 2016Release notes
Open source →-
Make
IsolateChannelslightly more efficient. -
Make
MultiChannelfollow the stream channel rules.
-
-
1.3.009 Feb 2016Release notes
Open source →- Add
Disconnector, a transformer that allows the caller to disconnect the transformed channel.
- Add
-
1.2.009 Feb 2016Release notes
Open source →-
Add
new StreamChannel.withGuarantees(), which creates a channel with extra wrapping to ensure that it obeys the stream channel guarantees. -
Add
StreamChannelController, which can be used to create customStreamChannelobjects.
-
-
1.1.102 Feb 2016 -
1.1.001 Feb 2016Release notes
Open source →-
Add
StreamChannel.transformStream(),StreamChannel.transformSink(),StreamChannel.changeStream(), andStreamChannel.changeSink()to support changing only the stream or only the sink of a channel. -
Be more explicit about
JsonDocumentTransformer's error-handling behavior.
-
-
1.0.128 Jan 2016Release notes
Open source →- Fix
MultiChannel's constructor to take aStreamChannel. This is technically a breaking change, but since 1.0.0 was only released an hour ago, we're treating it as a bug fix.
- Fix
-
1.0.028 Jan 2016