chore: set max SDK version to <3.0.0 upgrade test and remove browser … (#7)
* adjust test package version constrain to support dart 1.23
* Remove 1.23.0 SDK from travis
diff --git a/.travis.yml b/.travis.yml
index 2fb8c53..a3abffc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,6 @@
dart:
- dev
- stable
- - 1.23.0
dart_task:
- test
diff --git a/example/index.dart b/example/index.dart
index 1931626..5d708be 100644
--- a/example/index.dart
+++ b/example/index.dart
@@ -5,7 +5,7 @@
var span = querySelector('#count') as SpanElement;
HttpRequest.getString('/api').then((value) {
- return JSON.decode(value);
+ return json.decode(value);
}).then((obj) {
var count = obj['count'];
span.text = count.toString();
diff --git a/pubspec.yaml b/pubspec.yaml
index a9bfb23..b719d51 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -4,11 +4,10 @@
description: A shelf handler for proxying requests to another server.
homepage: https://github.com/dart-lang/shelf_proxy
environment:
- sdk: '>=1.23.0 <2.0.0'
+ sdk: '>=2.0.0-dev <3.0.0'
dependencies:
http: '>=0.9.0 <0.12.0'
path: '>=1.0.0 <2.0.0'
shelf: '>=0.5.2 <0.8.0'
dev_dependencies:
- browser: '>=0.10.0 <0.11.0'
- test: '>=0.12.0 <0.13.0'
+ test: ^1.3.0