From 72e6065f216f7bb90a22a5c439ceb38a30890fa8 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 17 Jul 2018 17:47:30 -0400 Subject: [PATCH] chore: set max SDK version to <3.0.0 (dart-lang/watcher#61) --- pkgs/watcher/CHANGELOG.md | 4 ++++ pkgs/watcher/analysis_options.yaml | 2 -- pkgs/watcher/pubspec.yaml | 18 +++++++++++------- .../test/directory_watcher/linux_test.dart | 3 +-- .../test/directory_watcher/mac_os_test.dart | 3 +-- .../test/directory_watcher/windows_test.dart | 2 +- pkgs/watcher/test/no_subscription/shared.dart | 2 -- 7 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 pkgs/watcher/analysis_options.yaml diff --git a/pkgs/watcher/CHANGELOG.md b/pkgs/watcher/CHANGELOG.md index d8f2d5f99..7ea1cc1f3 100644 --- a/pkgs/watcher/CHANGELOG.md +++ b/pkgs/watcher/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.9.7+10 + +* Set max SDK version to `<3.0.0`, and adjust other dependencies. + # 0.9.7+9 * Internal changes only. diff --git a/pkgs/watcher/analysis_options.yaml b/pkgs/watcher/analysis_options.yaml deleted file mode 100644 index a10d4c5a0..000000000 --- a/pkgs/watcher/analysis_options.yaml +++ /dev/null @@ -1,2 +0,0 @@ -analyzer: - strong-mode: true diff --git a/pkgs/watcher/pubspec.yaml b/pkgs/watcher/pubspec.yaml index 2f449ff75..73ce19b36 100644 --- a/pkgs/watcher/pubspec.yaml +++ b/pkgs/watcher/pubspec.yaml @@ -1,16 +1,20 @@ name: watcher -version: 0.9.7+9 -author: Dart Team -homepage: https://github.com/dart-lang/watcher +version: 0.9.7+10 + description: > A file system watcher. It monitors changes to contents of directories and sends notifications when files have been added, removed, or modified. +author: Dart Team +homepage: https://github.com/dart-lang/watcher + environment: - sdk: '>=2.0.0-dev.61.0 <2.0.0' + sdk: '>=2.0.0-dev.61.0 <3.0.0' + dependencies: async: '>=1.10.0 <3.0.0' path: '>=0.9.0 <2.0.0' + dev_dependencies: - benchmark_harness: '^1.0.4' - test: '^0.12.29' - test_descriptor: '^1.0.0' + benchmark_harness: ^1.0.4 + test: '>=0.12.42 <2.0.0' + test_descriptor: ^1.0.0 diff --git a/pkgs/watcher/test/directory_watcher/linux_test.dart b/pkgs/watcher/test/directory_watcher/linux_test.dart index 25c550468..744045fcd 100644 --- a/pkgs/watcher/test/directory_watcher/linux_test.dart +++ b/pkgs/watcher/test/directory_watcher/linux_test.dart @@ -17,8 +17,7 @@ void main() { sharedTests(); test('DirectoryWatcher creates a LinuxDirectoryWatcher on Linux', () { - expect( - new DirectoryWatcher('.'), new isInstanceOf()); + expect(new DirectoryWatcher('.'), new TypeMatcher()); }); test('emits events for many nested files moved out then immediately back in', diff --git a/pkgs/watcher/test/directory_watcher/mac_os_test.dart b/pkgs/watcher/test/directory_watcher/mac_os_test.dart index 8fa76fd2d..689d35318 100644 --- a/pkgs/watcher/test/directory_watcher/mac_os_test.dart +++ b/pkgs/watcher/test/directory_watcher/mac_os_test.dart @@ -17,8 +17,7 @@ void main() { sharedTests(); test('DirectoryWatcher creates a MacOSDirectoryWatcher on Mac OS', () { - expect( - new DirectoryWatcher('.'), new isInstanceOf()); + expect(new DirectoryWatcher('.'), new TypeMatcher()); }); test( diff --git a/pkgs/watcher/test/directory_watcher/windows_test.dart b/pkgs/watcher/test/directory_watcher/windows_test.dart index 3696f9cb9..875f4ee81 100644 --- a/pkgs/watcher/test/directory_watcher/windows_test.dart +++ b/pkgs/watcher/test/directory_watcher/windows_test.dart @@ -22,6 +22,6 @@ void main() { test('DirectoryWatcher creates a WindowsDirectoryWatcher on Windows', () { expect( - new DirectoryWatcher('.'), new isInstanceOf()); + new DirectoryWatcher('.'), new TypeMatcher()); }); } diff --git a/pkgs/watcher/test/no_subscription/shared.dart b/pkgs/watcher/test/no_subscription/shared.dart index c7e050151..ba8468401 100644 --- a/pkgs/watcher/test/no_subscription/shared.dart +++ b/pkgs/watcher/test/no_subscription/shared.dart @@ -2,8 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'dart:async'; - import 'package:async/async.dart'; import 'package:test/test.dart'; import 'package:watcher/watcher.dart';