udpate for the new Never type in Request.hijack (#34)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 222978a..27fb0e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.1-dev
+
+* Require the latest shelf, remove dead code.
+
## 1.0.0
* Migrate to null safety.
diff --git a/lib/src/web_socket_handler.dart b/lib/src/web_socket_handler.dart
index b4657c8..c190ec9 100644
--- a/lib/src/web_socket_handler.dart
+++ b/lib/src/web_socket_handler.dart
@@ -81,11 +81,6 @@
_onConnection(
WebSocketChannel(channel, pingInterval: _pingInterval), protocol);
});
-
- // [request.hijack] is guaranteed to throw a [HijackException], so we'll
- // never get here.
- assert(false);
- throw StateError('unreachable');
}
/// Selects a subprotocol to use for the given connection.
diff --git a/pubspec.yaml b/pubspec.yaml
index 3501d59..2a001d6 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: shelf_web_socket
-version: 1.0.0
+version: 1.0.1-dev
description: >-
A shelf handler that wires up a listener for every connection.
@@ -9,7 +9,7 @@
sdk: ">=2.12.0-0 <3.0.0"
dependencies:
- shelf: ^1.0.0
+ shelf: ^1.1.0
stream_channel: ^2.1.0
web_socket_channel: ^2.0.0
@@ -19,4 +19,6 @@
test: ^1.16.0
dependency_overrides:
+ shelf:
+ git: https://github.com/dart-lang/shelf.git
test: ^1.16.0