Skip to content

Commit

Permalink
Support Dart 2 stable, prepare to release 0.22.1+4 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Jul 23, 2018
1 parent 7b35bf7 commit 8755ee4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 0.22.1+4-dev
## 0.22.1+4

* Support Dart 2 stable.

* Bump and widen dev dependencies on build packages.

Expand Down
2 changes: 0 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
analyzer:
strong-mode: true
linter:
rules:
# Errors
Expand Down
16 changes: 8 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: observable
version: 0.22.1+4-dev
version: 0.22.1+4
author: Dart Team <misc@dartlang.org>
description: Support for marking objects as observable
homepage: https://github.com/dart-lang/observable
environment:
sdk: '>=2.0.0-dev.55.0 <2.0.0'
sdk: '>=2.0.0-dev.55.0 <3.0.0'
dependencies:
collection: '^1.11.0'
dart_internal: '^0.1.1'
meta: '^1.0.4'
quiver: '>=0.24.0 <0.30.0'
collection: ^1.11.0
dart_internal: ^0.1.1
meta: ^1.0.4
quiver: '>=0.24.0 <3.0.0'
dev_dependencies:
dart_style: '^1.0.9'
build_runner: '>=0.8.0 <0.10.0'
build_test: ^0.10.0
build_web_compilers: '>=0.3.1 <0.5.0'
test: ^0.12.0
dart_style: ^1.0.9
test: ^1.3.0
16 changes: 8 additions & 8 deletions test/observable_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void observableTests() {
});

test('handle future result', () {
var callback = expectAsync(() {});
var callback = expectAsync0(() {});
return new Future(callback);
});

Expand All @@ -48,7 +48,7 @@ void observableTests() {
var t = createModel(123);
int called = 0;

subs.add(t.changes.listen(expectAsync((records) {
subs.add(t.changes.listen(expectAsync1((records) {
called++;
expectPropertyChanges(records, 2);
})));
Expand All @@ -62,7 +62,7 @@ void observableTests() {
var t = createModel(123);
int called = 0;

subs.add(t.changes.listen(expectAsync((records) {
subs.add(t.changes.listen(expectAsync1((records) {
called++;
expectPropertyChanges(records, 1);
if (called == 1) {
Expand All @@ -81,8 +81,8 @@ void observableTests() {
expectPropertyChanges(records, 2);
}

subs.add(t.changes.listen(expectAsync(verifyRecords)));
subs.add(t.changes.listen(expectAsync(verifyRecords)));
subs.add(t.changes.listen(expectAsync1(verifyRecords)));
subs.add(t.changes.listen(expectAsync1(verifyRecords)));

t.value = 41;
t.value = 42;
Expand Down Expand Up @@ -112,7 +112,7 @@ void observableTests() {
test('cancel listening', () {
var t = createModel(123);
var sub;
sub = t.changes.listen(expectAsync((records) {
sub = t.changes.listen(expectAsync1((records) {
expectPropertyChanges(records, 1);
sub.cancel();
t.value = 777;
Expand All @@ -123,12 +123,12 @@ void observableTests() {
test('cancel and reobserve', () {
var t = createModel(123);
var sub;
sub = t.changes.listen(expectAsync((records) {
sub = t.changes.listen(expectAsync1((records) {
expectPropertyChanges(records, 1);
sub.cancel();

scheduleMicrotask(() {
subs.add(t.changes.listen(expectAsync((records) {
subs.add(t.changes.listen(expectAsync1((records) {
expectPropertyChanges(records, 1);
})));
t.value = 777;
Expand Down

0 comments on commit 8755ee4

Please sign in to comment.