Skip to content

Commit 332d6cf

Browse files
authored
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 77d470a into the 0.11.x branch. Closes #122
1 parent 3b551fb commit 332d6cf

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.11.3+16
2+
3+
* Stop depending on the `stack_trace` package.
4+
15
## 0.11.3+15
26

37
* Declare support for `async` 2.0.0.

lib/browser_client.dart

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import 'dart:async';
66
import 'dart:html';
77
import 'dart:typed_data';
88

9-
import 'package:stack_trace/stack_trace.dart';
10-
119
import 'src/base_client.dart';
1210
import 'src/base_request.dart';
1311
import 'src/byte_stream.dart';
@@ -71,7 +69,7 @@ class BrowserClient extends BaseClient {
7169
reader.onError.first.then((error) {
7270
completer.completeError(
7371
new ClientException(error.toString(), request.url),
74-
new Chain.current());
72+
StackTrace.current);
7573
});
7674

7775
reader.readAsArrayBuffer(blob);
@@ -82,7 +80,7 @@ class BrowserClient extends BaseClient {
8280
// specific information about the error itself.
8381
completer.completeError(
8482
new ClientException("XMLHttpRequest error.", request.url),
85-
new Chain.current());
83+
StackTrace.current);
8684
});
8785

8886
xhr.send(bytes);

pubspec.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: http
2-
version: 0.11.3+15
2+
version: 0.11.3+16
33
author: "Dart Team <[email protected]>"
44
homepage: https://github.com/dart-lang/http
55
description: A composable, Future-based API for making HTTP requests.
@@ -8,7 +8,6 @@ dependencies:
88
collection: "^1.5.0"
99
http_parser: ">=0.0.1 <4.0.0"
1010
path: ">=0.9.0 <2.0.0"
11-
stack_trace: ">=0.9.1 <2.0.0"
1211
dev_dependencies:
1312
unittest: ">=0.9.0 <0.12.0"
1413
environment:

0 commit comments

Comments
 (0)