Skip to content

Commit a957eea

Browse files
authoredSep 16, 2024··
Bump chokidar to v4 (#2347)
1 parent aa35aa2 commit a957eea

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
 

‎lib/src/io/js.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ Future<Stream<WatchEvent>> watchDir(String path, {bool poll = false}) {
252252
if (!isNodeJs) {
253253
throw UnsupportedError("watchDir() is only supported on Node.js");
254254
}
255-
var watcher = chokidar.watch(
256-
path, ChokidarOptions(disableGlobbing: true, usePolling: poll));
255+
var watcher = chokidar.watch(path, ChokidarOptions(usePolling: poll));
257256

258257
// Don't assign the controller until after the ready event fires. Otherwise,
259258
// Chokidar will give us a bunch of add events for files that already exist.

‎lib/src/js/chokidar.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ class Chokidar {
1212
@JS()
1313
@anonymous
1414
class ChokidarOptions {
15-
external bool? get disableGlobbing;
1615
external bool? get usePolling;
1716

18-
external factory ChokidarOptions({bool? disableGlobbing, bool? usePolling});
17+
external factory ChokidarOptions({bool? usePolling});
1918
}
2019

2120
@JS()

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"name": "sass",
88
"devDependencies": {
9-
"chokidar": ">=3.0.0 <4.0.0",
9+
"chokidar": "^4.0.0",
1010
"immutable": "^4.0.0",
1111
"intercept-stdout": "^0.1.2"
1212
}

‎package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"node": ">=14.0.0"
1818
},
1919
"dependencies": {
20-
"chokidar": ">=3.0.0 <4.0.0",
20+
"chokidar": "^4.0.0",
2121
"immutable": "^4.0.0",
2222
"source-map-js": ">=0.6.2 <2.0.0"
2323
},

0 commit comments

Comments
 (0)
Please sign in to comment.