Releases: dart-lang/shelf
Releases · dart-lang/shelf
package:shelf_web_socket v3.0.0
- BREAKING:: Change the signature of the
webSocketHandler
method's
onConnection
callback. Previously this took an untyped function with either
one or two parameters. This now requires aConnectionCallback
; a typedef
taking two parameters. See also #457. - Add a API usage example.
- Require Dart
^3.5.0
.
Note that most clients seeing analysis issues from the above breaking change can
fix it by adding a second parameter to their callback. So, they would change
this:
webSocketHandler((webSocket) {
webSocket.stream.listen((message) {
webSocket.sink.add('echo $message');
});
});
to this:
webSocketHandler((webSocket, _) {
webSocket.stream.listen((message) {
webSocket.sink.add('echo $message');
});
});
package:shelf_router_generator v1.1.1
- Support the latest
package:analyzer
andpackage:source_gen
- Require
sdk: ^3.3.0
package:shelf_web_socket v2.0.1
- Require Dart
^3.3.0
.
shelf-v1.4.2
package:shelf_router_generator v1.1.0
- Require
sdk: ^3.0.0
- Require
analyzer: '>=4.6.0 <7.0.0'
- Remove trailing slash requirement when using
mount
.
package:shelf_proxy v1.0.4
- Require Dart
2.19
. - Allow
package:http
v1.0.0
shelf_web_socket-v1.0.4
- Added package topics to the pubspec file.
shelf_test_handler-v2.0.2
- Added package topics to the pubspec file.
- Require Dart
2.17
.
shelf_static-v1.1.2
- Added package topics to the pubspec file.
- Require Dart
2.17
.
shelf_router_generator-v1.0.6
- Added package topics to the pubspec file.