Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Support the latest pkg:web, require Dart 3.3 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Feb 17, 2024
1 parent af7d8d0 commit 2830dc9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.2.0, dev]
sdk: [3.3, dev]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 4.1.5-wip

- Drop unneeded dependency on `package:js`.
- Update the minimum Dart SDK version to `3.3.0`.
- Support the latest `package:web`.

## 4.1.4

Expand Down
2 changes: 1 addition & 1 deletion example/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:sse/server/sse_handler.dart';

/// A basic server which sets up an SSE handler.
///
/// When a client connnects it will send a simple message and print the
/// When a client connects it will send a simple message and print the
/// response.
void main() async {
var handler = SseHandler(Uri.parse('/sseHandler'));
Expand Down
4 changes: 2 additions & 2 deletions lib/client/sse_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'dart:js_interop';
import 'package:logging/logging.dart';
import 'package:pool/pool.dart';
import 'package:stream_channel/stream_channel.dart';
import 'package:web/helpers.dart';
import 'package:web/web.dart';

import '../src/util/uuid.dart';

Expand All @@ -21,7 +21,7 @@ import '../src/util/uuid.dart';
/// Note Chrome's limit is 6000. So this gives us plenty of headroom.
final _requestPool = Pool(1000);

/// A client for bi-directional sse communcation.
/// A client for bi-directional sse communication.
///
/// The client can send any JSON-encodable messages to the server by adding
/// them to the [sink] and listen to messages from the server on the [stream].
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >-
repository: https://github.com/dart-lang/sse

environment:
sdk: ^3.2.0
sdk: ^3.3.0

dependencies:
async: ^2.0.8
Expand All @@ -16,7 +16,7 @@ dependencies:
pool: ^1.5.0
shelf: ^1.1.0
stream_channel: ^2.0.0
web: '>=0.3.0 <0.5.0'
web: ^0.5.0

dev_dependencies:
dart_flutter_team_lints: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion test/web/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

import 'package:sse/client/sse_client.dart';
import 'package:web/helpers.dart';
import 'package:web/web.dart';

void main() {
var channel = SseClient('/test');
Expand Down

0 comments on commit 2830dc9

Please sign in to comment.