diff --git a/pkgs/cupertino_http/CHANGELOG.md b/pkgs/cupertino_http/CHANGELOG.md index 2a935bd48f..31f46b7577 100644 --- a/pkgs/cupertino_http/CHANGELOG.md +++ b/pkgs/cupertino_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.1.1-wip + +* Support `package:web_socket` 1.0.0. + ## 2.1.0 * Remove some unnecessary native code. diff --git a/pkgs/cupertino_http/pubspec.yaml b/pkgs/cupertino_http/pubspec.yaml index b8df4f8be8..70b22aaf59 100644 --- a/pkgs/cupertino_http/pubspec.yaml +++ b/pkgs/cupertino_http/pubspec.yaml @@ -1,5 +1,5 @@ name: cupertino_http -version: 2.1.0 +version: 2.1.1-wip description: >- A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. @@ -17,7 +17,7 @@ dependencies: http: ^1.2.0 http_profile: ^0.1.0 objective_c: ^7.0.0 - web_socket: ^0.1.0 + web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0 diff --git a/pkgs/ok_http/CHANGELOG.md b/pkgs/ok_http/CHANGELOG.md index aa4ab34b2c..196dc70a7b 100644 --- a/pkgs/ok_http/CHANGELOG.md +++ b/pkgs/ok_http/CHANGELOG.md @@ -5,6 +5,7 @@ - Upgrade to `jni` 0.14.0 - Upgrade to `jnigen` 0.14.0 - `OKHttpClient` supports client certificates. +- Support `package:web_socket` 1.0.0. ## 0.1.0 diff --git a/pkgs/ok_http/example/pubspec.yaml b/pkgs/ok_http/example/pubspec.yaml index 5724312c03..235b649c90 100644 --- a/pkgs/ok_http/example/pubspec.yaml +++ b/pkgs/ok_http/example/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: ok_http: path: ../ provider: ^6.1.1 - web_socket: ^0.1.5 + web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0 diff --git a/pkgs/ok_http/pubspec.yaml b/pkgs/ok_http/pubspec.yaml index 128f4d2f7c..b412de2bc4 100644 --- a/pkgs/ok_http/pubspec.yaml +++ b/pkgs/ok_http/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: http_profile: ^0.1.0 jni: ^0.14.0 plugin_platform_interface: ^2.0.2 - web_socket: ^0.1.5 + web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0 diff --git a/pkgs/web_socket/CHANGELOG.md b/pkgs/web_socket/CHANGELOG.md index fd421d76ce..bc167db5e1 100644 --- a/pkgs/web_socket/CHANGELOG.md +++ b/pkgs/web_socket/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0-wip + +- First non-experimental release; no semantic changes from version `0.1.6`. + ## 0.1.6 - Allow `web: '>=0.5.0 <2.0.0'`. diff --git a/pkgs/web_socket/README.md b/pkgs/web_socket/README.md index 1356d9c1e3..9b8d13d9f2 100644 --- a/pkgs/web_socket/README.md +++ b/pkgs/web_socket/README.md @@ -1,7 +1,7 @@ [![pub package](https://img.shields.io/pub/v/web_socket.svg)](https://pub.dev/packages/web_socket) [![package publisher](https://img.shields.io/pub/publisher/web_socket.svg)](https://pub.dev/packages/web_socket/publisher) -Any easy-to-use library for communicating with +An easy-to-use library for communicating with [WebSockets](https://en.wikipedia.org/wiki/WebSocket) that has multiple implementations. @@ -12,19 +12,18 @@ The goal of `package:web_socket` is to provide a simple, well-defined consistent behavior across implementations. [`package:web_socket_channel`](https://pub.dev/documentation/web_socket_channel/) -is currently the most popular WebSocket package. It has -two implementations, one based on `package:web` and the other based on -`dart:io` `WebSocket`. But those implementations do not have consistent -behavior. +is the most popular WebSocket package but it is complex and does not have +consistent behavior across implementations. [`WebSocket`](https://pub.dev/documentation/web_socket/latest/web_socket/WebSocket-class.html) -currently has three implementations (with more on the way) that -all pass the same set of +currently has four implementations that all pass the same set of [conformance tests](https://github.com/dart-lang/http/tree/master/pkgs/web_socket_conformance_tests): * [`BrowserWebSocket`](https://pub.dev/documentation/web_socket/latest/browser_web_socket/BrowserWebSocket-class.html) * [`CupertinoWebSocket`](https://pub.dev/documentation/cupertino_http/latest/cupertino_http/CupertinoWebSocket-class.html) * [`IOWebSocket`](https://pub.dev/documentation/web_socket/latest/io_web_socket/IOWebSocket-class.html) +* [`OkHttpWebSocket`](https://pub.dev/documentation/ok_http/latest/ok_http/OkHttpWebSocket-class.html) + (currently experimental) ## Using @@ -50,18 +49,3 @@ void main() async { socket.sendText('Hello Dart WebSockets! 🎉'); } ``` - -## Status: experimental - -**NOTE**: This package is currently experimental and published under the -[labs.dart.dev](https://dart.dev/dart-team-packages) pub publisher in order to -solicit feedback. - -For packages in the labs.dart.dev publisher we generally plan to either graduate -the package into a supported publisher (dart.dev, tools.dart.dev) after a period -of feedback and iteration, or discontinue the package. These packages have a -much higher expected rate of API and breaking changes. - -Your feedback is valuable and will help us evolve this package. For general -feedback, suggestions, and comments, please file an issue in the -[bug tracker](https://github.com/dart-lang/http/issues). diff --git a/pkgs/web_socket/pubspec.yaml b/pkgs/web_socket/pubspec.yaml index 57d243ed80..3692d826e8 100644 --- a/pkgs/web_socket/pubspec.yaml +++ b/pkgs/web_socket/pubspec.yaml @@ -3,7 +3,7 @@ description: >- Any easy-to-use library for communicating with WebSockets that has multiple implementations. repository: https://github.com/dart-lang/http/tree/master/pkgs/web_socket -version: 0.1.6 +version: 1.0.0-wip environment: sdk: ^3.4.0 diff --git a/pkgs/web_socket_channel/CHANGELOG.md b/pkgs/web_socket_channel/CHANGELOG.md index 4677fbf161..9fe5b04b5a 100644 --- a/pkgs/web_socket_channel/CHANGELOG.md +++ b/pkgs/web_socket_channel/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.0.3-wip + +- Support `package:web_socket` 1.0.0. + ## 3.0.2 - Move to `dart-lang/http` monorepo. diff --git a/pkgs/web_socket_channel/pubspec.yaml b/pkgs/web_socket_channel/pubspec.yaml index 580c9d2029..bf2e842027 100644 --- a/pkgs/web_socket_channel/pubspec.yaml +++ b/pkgs/web_socket_channel/pubspec.yaml @@ -1,5 +1,5 @@ name: web_socket_channel -version: 3.0.2 +version: 3.0.3-wip description: >- StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API, a cross-platform implementation of that API that @@ -14,7 +14,7 @@ dependencies: crypto: ^3.0.0 stream_channel: ^2.1.0 web: '>=0.5.0 <2.0.0' - web_socket: ^0.1.5 + web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0 diff --git a/pkgs/web_socket_conformance_tests/pubspec.yaml b/pkgs/web_socket_conformance_tests/pubspec.yaml index a4448145c0..5713ca635e 100644 --- a/pkgs/web_socket_conformance_tests/pubspec.yaml +++ b/pkgs/web_socket_conformance_tests/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: dart_style: '>2.3.7 <4.0.0' stream_channel: ^2.1.2 test: ^1.24.0 - web_socket: ^0.1.0 + web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0