Skip to content

Commit 03eb8de

Browse files
authored
Prepare for a package:web_socket 1.0 release (#1738)
1 parent e4ddd3e commit 03eb8de

File tree

11 files changed

+27
-30
lines changed

11 files changed

+27
-30
lines changed

pkgs/cupertino_http/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.1-wip
2+
3+
* Support `package:web_socket` 1.0.0.
4+
15
## 2.1.0
26

37
* Remove some unnecessary native code.

pkgs/cupertino_http/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cupertino_http
2-
version: 2.1.0
2+
version: 2.1.1-wip
33
description: >-
44
A macOS/iOS Flutter plugin that provides access to the Foundation URL
55
Loading System.
@@ -17,7 +17,7 @@ dependencies:
1717
http: ^1.2.0
1818
http_profile: ^0.1.0
1919
objective_c: ^7.0.0
20-
web_socket: ^0.1.0
20+
web_socket: '>=0.1.5 <2.0.0'
2121

2222
dev_dependencies:
2323
dart_flutter_team_lints: ^3.0.0

pkgs/ok_http/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Upgrade to `jni` 0.14.0
66
- Upgrade to `jnigen` 0.14.0
77
- `OKHttpClient` supports client certificates.
8+
- Support `package:web_socket` 1.0.0.
89

910
## 0.1.0
1011

pkgs/ok_http/example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
ok_http:
1717
path: ../
1818
provider: ^6.1.1
19-
web_socket: ^0.1.5
19+
web_socket: '>=0.1.5 <2.0.0'
2020

2121
dev_dependencies:
2222
dart_flutter_team_lints: ^3.0.0

pkgs/ok_http/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
http_profile: ^0.1.0
1616
jni: ^0.14.0
1717
plugin_platform_interface: ^2.0.2
18-
web_socket: ^0.1.5
18+
web_socket: '>=0.1.5 <2.0.0'
1919

2020
dev_dependencies:
2121
dart_flutter_team_lints: ^3.0.0

pkgs/web_socket/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0-wip
2+
3+
- First non-experimental release; no semantic changes from version `0.1.6`.
4+
15
## 0.1.6
26

37
- Allow `web: '>=0.5.0 <2.0.0'`.

pkgs/web_socket/README.md

+6-22
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![pub package](https://img.shields.io/pub/v/web_socket.svg)](https://pub.dev/packages/web_socket)
22
[![package publisher](https://img.shields.io/pub/publisher/web_socket.svg)](https://pub.dev/packages/web_socket/publisher)
33

4-
Any easy-to-use library for communicating with
4+
An easy-to-use library for communicating with
55
[WebSockets](https://en.wikipedia.org/wiki/WebSocket) that has multiple
66
implementations.
77

@@ -12,19 +12,18 @@ The goal of `package:web_socket` is to provide a simple, well-defined
1212
consistent behavior across implementations.
1313

1414
[`package:web_socket_channel`](https://pub.dev/documentation/web_socket_channel/)
15-
is currently the most popular WebSocket package. It has
16-
two implementations, one based on `package:web` and the other based on
17-
`dart:io` `WebSocket`. But those implementations do not have consistent
18-
behavior.
15+
is the most popular WebSocket package but it is complex and does not have
16+
consistent behavior across implementations.
1917

2018
[`WebSocket`](https://pub.dev/documentation/web_socket/latest/web_socket/WebSocket-class.html)
21-
currently has three implementations (with more on the way) that
22-
all pass the same set of
19+
currently has four implementations that all pass the same set of
2320
[conformance tests](https://github.com/dart-lang/http/tree/master/pkgs/web_socket_conformance_tests):
2421

2522
* [`BrowserWebSocket`](https://pub.dev/documentation/web_socket/latest/browser_web_socket/BrowserWebSocket-class.html)
2623
* [`CupertinoWebSocket`](https://pub.dev/documentation/cupertino_http/latest/cupertino_http/CupertinoWebSocket-class.html)
2724
* [`IOWebSocket`](https://pub.dev/documentation/web_socket/latest/io_web_socket/IOWebSocket-class.html)
25+
* [`OkHttpWebSocket`](https://pub.dev/documentation/ok_http/latest/ok_http/OkHttpWebSocket-class.html)
26+
(currently experimental)
2827

2928
## Using
3029

@@ -50,18 +49,3 @@ void main() async {
5049
socket.sendText('Hello Dart WebSockets! 🎉');
5150
}
5251
```
53-
54-
## Status: experimental
55-
56-
**NOTE**: This package is currently experimental and published under the
57-
[labs.dart.dev](https://dart.dev/dart-team-packages) pub publisher in order to
58-
solicit feedback.
59-
60-
For packages in the labs.dart.dev publisher we generally plan to either graduate
61-
the package into a supported publisher (dart.dev, tools.dart.dev) after a period
62-
of feedback and iteration, or discontinue the package. These packages have a
63-
much higher expected rate of API and breaking changes.
64-
65-
Your feedback is valuable and will help us evolve this package. For general
66-
feedback, suggestions, and comments, please file an issue in the
67-
[bug tracker](https://github.com/dart-lang/http/issues).

pkgs/web_socket/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >-
33
Any easy-to-use library for communicating with WebSockets
44
that has multiple implementations.
55
repository: https://github.com/dart-lang/http/tree/master/pkgs/web_socket
6-
version: 0.1.6
6+
version: 1.0.0-wip
77

88
environment:
99
sdk: ^3.4.0

pkgs/web_socket_channel/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.3-wip
2+
3+
- Support `package:web_socket` 1.0.0.
4+
15
## 3.0.2
26

37
- Move to `dart-lang/http` monorepo.

pkgs/web_socket_channel/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: web_socket_channel
2-
version: 3.0.2
2+
version: 3.0.3-wip
33
description: >-
44
StreamChannel wrappers for WebSockets. Provides a cross-platform
55
WebSocketChannel API, a cross-platform implementation of that API that
@@ -14,7 +14,7 @@ dependencies:
1414
crypto: ^3.0.0
1515
stream_channel: ^2.1.0
1616
web: '>=0.5.0 <2.0.0'
17-
web_socket: ^0.1.5
17+
web_socket: '>=0.1.5 <2.0.0'
1818

1919
dev_dependencies:
2020
dart_flutter_team_lints: ^3.0.0

pkgs/web_socket_conformance_tests/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
dart_style: '>2.3.7 <4.0.0'
1616
stream_channel: ^2.1.2
1717
test: ^1.24.0
18-
web_socket: ^0.1.0
18+
web_socket: '>=0.1.5 <2.0.0'
1919

2020
dev_dependencies:
2121
dart_flutter_team_lints: ^3.0.0

0 commit comments

Comments
 (0)