File tree 4 files changed +9
-8
lines changed
lib/src/directory_watcher 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ language: dart
2
2
3
3
dart :
4
4
- dev
5
- - 2.2.0
5
+ - 2.8.4
6
6
7
7
os :
8
8
- linux
@@ -16,7 +16,7 @@ matrix:
16
16
include :
17
17
- dart : dev
18
18
dart_task : dartfmt
19
- - dart : 2.2.0
19
+ - dart : 2.8.4
20
20
dart_task :
21
21
dartanalyzer : --fatal-warnings .
22
22
- dart : dev
Original file line number Diff line number Diff line change 1
- # 0.9.8
1
+ # 0.9.8-dev
2
2
3
3
* Add the ability to create custom Watcher types for specific file paths.
4
+ * Require at least Dart 2.8.4.
4
5
5
6
# 0.9.7+15
6
7
Original file line number Diff line number Diff line change @@ -379,11 +379,11 @@ class _WindowsDirectoryWatcher
379
379
void _startWatch () {
380
380
// Note: "watcher closed" exceptions do not get sent over the stream
381
381
// returned by watch, and must be caught via a zone handler.
382
- runZoned (() {
382
+ runZonedGuarded (() {
383
383
var innerStream = Directory (path).watch (recursive: true );
384
384
_watchSubscription = innerStream.listen (_onEvent,
385
385
onError: _eventsController.addError, onDone: _onDone);
386
- }, onError : (error, StackTrace stackTrace) {
386
+ }, (error, StackTrace stackTrace) {
387
387
if (error is FileSystemException &&
388
388
error.message.startsWith ('Directory watcher closed unexpectedly' )) {
389
389
_watchSubscription.cancel ();
Original file line number Diff line number Diff line change 1
1
name : watcher
2
- version : 0.9.7+15
2
+ version : 0.9.8-dev
3
3
4
4
description : >-
5
5
A file system watcher. It monitors changes to contents of directories and
6
6
sends notifications when files have been added, removed, or modified.
7
- homepage : https://github.com/dart-lang/watcher
7
+ repository : https://github.com/dart-lang/watcher
8
8
9
9
environment :
10
- sdk : ' >=2.2.0 <3.0.0'
10
+ sdk : ' >=2.8.4 <3.0.0'
11
11
12
12
dependencies :
13
13
async : ^2.0.0
You can’t perform that action at this time.
0 commit comments