Merge pull request #96 from dart-lang/zone.strong
Zone.strong
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 00b9474..e83f71e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+#### 0.15.2
+
+* Update to use strong-mode clean Zone API.
+
#### 0.15.1
* Update to use new analyzer API
diff --git a/lib/src/dirty_check.dart b/lib/src/dirty_check.dart
index c60753c..169c6bd 100644
--- a/lib/src/dirty_check.dart
+++ b/lib/src/dirty_check.dart
@@ -107,7 +107,8 @@
});
}
- Func0 wrapCallback(Zone self, ZoneDelegate parent, Zone zone, f()) {
+ ZoneCallback<R> wrapCallback<R>(
+ Zone self, ZoneDelegate parent, Zone zone, R f()) {
// TODO(jmesserly): why does this happen?
if (f == null) return f;
return () {
@@ -116,7 +117,8 @@
};
}
- Func1 wrapUnaryCallback(Zone self, ZoneDelegate parent, Zone zone, f(x)) {
+ ZoneUnaryCallback<R, T> wrapUnaryCallback<R, T>(
+ Zone self, ZoneDelegate parent, Zone zone, R f(T x)) {
// TODO(jmesserly): why does this happen?
if (f == null) return f;
return (x) {
diff --git a/pubspec.yaml b/pubspec.yaml
index 4c2325f..415d202 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: observe
-version: 0.15.1
+version: 0.15.2
author: Polymer.dart Authors <web-ui-dev@dartlang.org>
description: >
Observable properties and objects for use in template_binding.
@@ -27,7 +27,7 @@
test: '^0.12.18+1'
stack_trace: '>=0.9.1 <2.0.0'
environment:
- sdk: ">=1.9.0 <2.0.0"
+ sdk: ">=1.24.0 <2.0.0"
transformers:
- observe:
files: