From a957eeadd1a8b4a2bebfd3ab4046be457d0d37a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Mon, 16 Sep 2024 13:40:25 -0700 Subject: [PATCH] Bump chokidar to v4 (#2347) --- lib/src/io/js.dart | 3 +-- lib/src/js/chokidar.dart | 3 +-- package.json | 2 +- package/package.json | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/src/io/js.dart b/lib/src/io/js.dart index fee609540..973b62f1f 100644 --- a/lib/src/io/js.dart +++ b/lib/src/io/js.dart @@ -252,8 +252,7 @@ Future> watchDir(String path, {bool poll = false}) { if (!isNodeJs) { throw UnsupportedError("watchDir() is only supported on Node.js"); } - var watcher = chokidar.watch( - path, ChokidarOptions(disableGlobbing: true, usePolling: poll)); + var watcher = chokidar.watch(path, ChokidarOptions(usePolling: poll)); // Don't assign the controller until after the ready event fires. Otherwise, // Chokidar will give us a bunch of add events for files that already exist. diff --git a/lib/src/js/chokidar.dart b/lib/src/js/chokidar.dart index e94b9def8..1ff3658a7 100644 --- a/lib/src/js/chokidar.dart +++ b/lib/src/js/chokidar.dart @@ -12,10 +12,9 @@ class Chokidar { @JS() @anonymous class ChokidarOptions { - external bool? get disableGlobbing; external bool? get usePolling; - external factory ChokidarOptions({bool? disableGlobbing, bool? usePolling}); + external factory ChokidarOptions({bool? usePolling}); } @JS() diff --git a/package.json b/package.json index 823058eef..84f259e39 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ ], "name": "sass", "devDependencies": { - "chokidar": ">=3.0.0 <4.0.0", + "chokidar": "^4.0.0", "immutable": "^4.0.0", "intercept-stdout": "^0.1.2" } diff --git a/package/package.json b/package/package.json index 73023b861..e1581c448 100644 --- a/package/package.json +++ b/package/package.json @@ -17,7 +17,7 @@ "node": ">=14.0.0" }, "dependencies": { - "chokidar": ">=3.0.0 <4.0.0", + "chokidar": "^4.0.0", "immutable": "^4.0.0", "source-map-js": ">=0.6.2 <2.0.0" },