This repository was archived by the owner on Feb 24, 2025. It is now read-only.
File tree 5 files changed +33
-9
lines changed 5 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 42
42
fail-fast : false
43
43
matrix :
44
44
os : [ubuntu-latest]
45
- sdk : [3.2.0 , dev]
45
+ sdk : [3.2, dev]
46
46
steps :
47
47
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
48
48
- uses : dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
60
60
- name : Run Chrome tests - wasm
61
61
run : dart test --platform chrome --compiler dart2wasm
62
62
if : always() && steps.install.outcome == 'success' && matrix.sdk == 'dev'
63
+
64
+ # Run analysis against the oldest supported pub constraints.
65
+ downgrade :
66
+ runs-on : ubuntu-latest
67
+ steps :
68
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
69
+ - uses : dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
70
+ - run : dart pub downgrade
71
+ - run : dart analyze --fatal-infos
Original file line number Diff line number Diff line change 1
- ## 2.4.2
1
+ ## 2.4.3
2
+
3
+ - ` HtmlWebSocketChannel ` : Relax the type of the websocket parameter to the
4
+ constructor in order to mitigate a breaking change introduced in ` 2.4.1 ` .
5
+
6
+ ## 2.4.2 (retracted)
7
+
2
8
- Allow ` web: '>=0.3.0 <0.5.0' `
3
9
4
10
## 2.4.1
Original file line number Diff line number Diff line change 1
1
[ ![ CI] ( https://github.com/dart-lang/web_socket_channel/actions/workflows/test-package.yml/badge.svg?branch=master )] ( https://github.com/dart-lang/web_socket_channel/actions/workflows/test-package.yml )
2
+ [ ![ pub package] ( https://img.shields.io/pub/v/web_socket_channel.svg )] ( https://pub.dev/packages/web_socket_channel )
3
+ [ ![ package publisher] ( https://img.shields.io/pub/publisher/web_socket_channel.svg )] ( https://pub.dev/packages/web_socket_channel/publisher )
2
4
3
- The ` web_socket_channel ` package provides [ ` StreamChannel ` ] [ stream_channel ]
4
- wrappers for WebSocket connections. It provides a cross-platform
5
+ ` package:web_socket_channel ` provides cross-platform
6
+ [ ` StreamChannel ` ] [ stream_channel ] wrappers for WebSocket connections.
7
+
8
+ ## Docs and Usage
9
+
10
+ It provides a cross-platform
5
11
[ ` WebSocketChannel ` ] [ WebSocketChannel ] API, a cross-platform implementation of
6
12
that API that communicates over an underlying [ ` StreamChannel ` ] [ stream_channel ] ,
7
13
[ an implementation] [ IOWebSocketChannel ] that wraps ` dart:io ` 's ` WebSocket `
Original file line number Diff line number Diff line change @@ -82,8 +82,12 @@ class HtmlWebSocketChannel extends StreamChannelMixin
82
82
)..binaryType = (binaryType ?? BinaryType .list).value,
83
83
);
84
84
85
- /// Creates a channel wrapping [innerWebSocket] .
86
- HtmlWebSocketChannel (this .innerWebSocket) {
85
+ /// Creates a channel wrapping [webSocket] .
86
+ ///
87
+ /// The parameter [webSocket] should be either a dart:html `WebSocket`
88
+ /// instance or a package:web [WebSocket] instance.
89
+ HtmlWebSocketChannel (Object /*WebSocket*/ webSocket)
90
+ : innerWebSocket = webSocket as WebSocket {
87
91
_readyCompleter = Completer ();
88
92
if (innerWebSocket.readyState == WebSocket .OPEN ) {
89
93
_readyCompleter.complete ();
Original file line number Diff line number Diff line change 1
1
name : web_socket_channel
2
- version : 2.4.2
3
-
2
+ version : 2.4.3
4
3
description : >-
5
4
StreamChannel wrappers for WebSockets. Provides a cross-platform
6
5
WebSocketChannel API, a cross-platform implementation of that API that
@@ -14,7 +13,7 @@ dependencies:
14
13
async : ^2.5.0
15
14
crypto : ^3.0.0
16
15
stream_channel : ^2.1.0
17
- web : ' >=0.3.0 <0.5.0 '
16
+ web : ^0.4.0
18
17
19
18
dev_dependencies :
20
19
dart_flutter_team_lints : ^2.0.0
You can’t perform that action at this time.
0 commit comments