Stop depending on stack_trace (#123)
At this point, we're only using this for Chain.current which might as
well just be StackTrace.current.
This is a cherry-pick of 77d470ac45a4c8972fe5ad4e58170dc0607240a0 into
the 0.11.x branch.
Closes #122
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea7fca5..b43beb1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.11.3+16
+
+* Stop depending on the `stack_trace` package.
+
## 0.11.3+15
* Declare support for `async` 2.0.0.
diff --git a/lib/browser_client.dart b/lib/browser_client.dart
index 309b3ac..45be178 100644
--- a/lib/browser_client.dart
+++ b/lib/browser_client.dart
@@ -6,8 +6,6 @@
import 'dart:html';
import 'dart:typed_data';
-import 'package:stack_trace/stack_trace.dart';
-
import 'src/base_client.dart';
import 'src/base_request.dart';
import 'src/byte_stream.dart';
@@ -71,7 +69,7 @@
reader.onError.first.then((error) {
completer.completeError(
new ClientException(error.toString(), request.url),
- new Chain.current());
+ StackTrace.current);
});
reader.readAsArrayBuffer(blob);
@@ -82,7 +80,7 @@
// specific information about the error itself.
completer.completeError(
new ClientException("XMLHttpRequest error.", request.url),
- new Chain.current());
+ StackTrace.current);
});
xhr.send(bytes);
diff --git a/pubspec.yaml b/pubspec.yaml
index b18e155..f3e584f 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: http
-version: 0.11.3+15
+version: 0.11.3+16
author: "Dart Team <misc@dartlang.org>"
homepage: https://github.com/dart-lang/http
description: A composable, Future-based API for making HTTP requests.
@@ -8,7 +8,6 @@
collection: "^1.5.0"
http_parser: ">=0.0.1 <4.0.0"
path: ">=0.9.0 <2.0.0"
- stack_trace: ">=0.9.1 <2.0.0"
dev_dependencies:
unittest: ">=0.9.0 <0.12.0"
environment: