diff --git a/.changeset/giant-games-count.md b/.changeset/giant-games-count.md new file mode 100644 index 000000000..775835dae --- /dev/null +++ b/.changeset/giant-games-count.md @@ -0,0 +1,6 @@ +--- +'@web/test-runner-core': patch +'@web/dev-server-core': patch +--- + +bump chokidar to v4 diff --git a/package-lock.json b/package-lock.json index c5918fa6c..f2afab98e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34616,7 +34616,7 @@ "@types/koa": "^2.11.6", "@types/ws": "^7.4.0", "@web/parse5-utils": "^2.1.0", - "chokidar": "^3.4.3", + "chokidar": "^4.0.1", "clone": "^2.1.2", "es-module-lexer": "^1.0.0", "get-stream": "^6.0.0", @@ -34646,6 +34646,34 @@ "node": ">=18.0.0" } }, + "packages/dev-server-core/node_modules/chokidar": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", + "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "packages/dev-server-core/node_modules/readdirp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.1.tgz", + "integrity": "sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw==", + "license": "MIT", + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "packages/dev-server-esbuild": { "name": "@web/dev-server-esbuild", "version": "1.0.2", @@ -37530,7 +37558,7 @@ "@types/istanbul-reports": "^3.0.0", "@web/browser-logs": "^0.4.0", "@web/dev-server-core": "^0.7.2", - "chokidar": "^3.4.3", + "chokidar": "^4.0.1", "cli-cursor": "^3.1.0", "co-body": "^6.1.0", "convert-source-map": "^2.0.0", @@ -37555,6 +37583,21 @@ "node": ">=18.0.0" } }, + "packages/test-runner-core/node_modules/chokidar": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", + "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "packages/test-runner-core/node_modules/dependency-graph": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", @@ -37633,6 +37676,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "packages/test-runner-core/node_modules/readdirp": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.1.tgz", + "integrity": "sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw==", + "license": "MIT", + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "packages/test-runner-core/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", diff --git a/packages/dev-server-core/package.json b/packages/dev-server-core/package.json index dcfe232bc..b32c4c213 100644 --- a/packages/dev-server-core/package.json +++ b/packages/dev-server-core/package.json @@ -61,7 +61,7 @@ "@types/koa": "^2.11.6", "@types/ws": "^7.4.0", "@web/parse5-utils": "^2.1.0", - "chokidar": "^3.4.3", + "chokidar": "^4.0.1", "clone": "^2.1.2", "es-module-lexer": "^1.0.0", "get-stream": "^6.0.0", diff --git a/packages/dev-server-core/src/server/DevServerCoreConfig.ts b/packages/dev-server-core/src/server/DevServerCoreConfig.ts index 659e0469e..4e5621354 100644 --- a/packages/dev-server-core/src/server/DevServerCoreConfig.ts +++ b/packages/dev-server-core/src/server/DevServerCoreConfig.ts @@ -1,7 +1,7 @@ import { Middleware } from 'koa'; import { Plugin } from '../plugins/Plugin'; import { Server } from 'net'; -import chokidar from 'chokidar'; +import type { ChokidarOptions } from 'chokidar'; export type MimeTypeMappings = Record; @@ -72,5 +72,5 @@ export interface DevServerCoreConfig { /** * Additional options you want to provide to chokidar file watcher */ - chokidarOptions?: chokidar.WatchOptions; + chokidarOptions?: ChokidarOptions; } diff --git a/packages/test-runner-core/package.json b/packages/test-runner-core/package.json index abc28e31b..b0075d925 100644 --- a/packages/test-runner-core/package.json +++ b/packages/test-runner-core/package.json @@ -61,7 +61,7 @@ "@types/istanbul-reports": "^3.0.0", "@web/browser-logs": "^0.4.0", "@web/dev-server-core": "^0.7.2", - "chokidar": "^3.4.3", + "chokidar": "^4.0.1", "cli-cursor": "^3.1.0", "co-body": "^6.1.0", "convert-source-map": "^2.0.0",