From cba637af73f4029b413e4d9956d7124bb9bdffb6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Oct 2026 10:26:21 +0000 Subject: [PATCH] chore(release): new release --- .changeset/case-insensitive-time-info.md | 5 ----- .changeset/directory-fs-accuracy.md | 7 ------- .changeset/macos-lost-events.md | 5 ----- .changeset/missing-under-file.md | 5 ----- .changeset/watcher-limit-polling.md | 5 ----- CHANGELOG.md | 16 ++++++++++++++++ package.json | 2 +- 7 files changed, 17 insertions(+), 28 deletions(-) delete mode 100644 .changeset/case-insensitive-time-info.md delete mode 100644 .changeset/directory-fs-accuracy.md delete mode 100644 .changeset/macos-lost-events.md delete mode 100644 .changeset/missing-under-file.md delete mode 100644 .changeset/watcher-limit-polling.md diff --git a/.changeset/case-insensitive-time-info.md b/.changeset/case-insensitive-time-info.md deleted file mode 100644 index 409783f..0000000 --- a/.changeset/case-insensitive-time-info.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -On case-insensitive file systems, give a file watched with other casing (e.g. imported as `./B` while the file is `b.js`) the time info of the file instead of `null`, so webpack rebuilds it on every change, not only the first (fixes #228). diff --git a/.changeset/directory-fs-accuracy.md b/.changeset/directory-fs-accuracy.md deleted file mode 100644 index 98552e7..0000000 --- a/.changeset/directory-fs-accuracy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"watchpack": patch ---- - -fix: do not report directories created shortly before `startTime` as changed when the initial scan sees only directories (#295). - -Timestamp accuracy was learned only from file mtimes, so a scan that found only directories kept the 2000ms default and flagged anything created in the 2s before `startTime`. Directory mtimes now lower it the same way. diff --git a/.changeset/macos-lost-events.md b/.changeset/macos-lost-events.md deleted file mode 100644 index b8dcfdd..0000000 --- a/.changeset/macos-lost-events.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -Report changes and removals macOS loses when a directory watcher starts or stops, by rescanning the watched directories once its event stream restarts. diff --git a/.changeset/missing-under-file.md b/.changeset/missing-under-file.md deleted file mode 100644 index b0bb0c4..0000000 --- a/.changeset/missing-under-file.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -Watch a missing file whose parent path is a file (e.g. `src/foo/index.js`, tried by a resolver alias, while `src/foo` is a file) like one whose parent is missing: no more `ENOTDIR` "Watchpack Error (initial scan)" log, and the file is reported once the parent becomes a directory (fixes #226's case). diff --git a/.changeset/watcher-limit-polling.md b/.changeset/watcher-limit-polling.md deleted file mode 100644 index a647b7f..0000000 --- a/.changeset/watcher-limit-polling.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -When the system runs out of file watchers (`ENOSPC`/`EMFILE`, e.g. `fs.inotify.max_user_watches` on Linux), poll the directories it cannot watch instead of reporting their files as removed and retrying in a loop, and log the error once with a hint (fixes #46). diff --git a/CHANGELOG.md b/CHANGELOG.md index 73bd80c..5a6f0ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # watchpack +## 2.6.2 + +### Patch Changes + +- On case-insensitive file systems, give a file watched with other casing (e.g. imported as `./B` while the file is `b.js`) the time info of the file instead of `null`, so webpack rebuilds it on every change, not only the first (fixes #228). (by [@alexander-akait](https://github.com/alexander-akait) in [#358](https://github.com/webpack/watchpack/pull/358)) + +- fix: do not report directories created shortly before `startTime` as changed when the initial scan sees only directories (#295). (by [@alexander-akait](https://github.com/alexander-akait) in [#350](https://github.com/webpack/watchpack/pull/350)) + + Timestamp accuracy was learned only from file mtimes, so a scan that found only directories kept the 2000ms default and flagged anything created in the 2s before `startTime`. Directory mtimes now lower it the same way. + +- Report changes and removals macOS loses when a directory watcher starts or stops, by rescanning the watched directories once its event stream restarts. (by [@alexander-akait](https://github.com/alexander-akait) in [#354](https://github.com/webpack/watchpack/pull/354)) + +- Watch a missing file whose parent path is a file (e.g. `src/foo/index.js`, tried by a resolver alias, while `src/foo` is a file) like one whose parent is missing: no more `ENOTDIR` "Watchpack Error (initial scan)" log, and the file is reported once the parent becomes a directory (fixes #226's case). (by [@alexander-akait](https://github.com/alexander-akait) in [#360](https://github.com/webpack/watchpack/pull/360)) + +- When the system runs out of file watchers (`ENOSPC`/`EMFILE`, e.g. `fs.inotify.max_user_watches` on Linux), poll the directories it cannot watch instead of reporting their files as removed and retrying in a loop, and log the error once with a hint (fixes #46). (by [@alexander-akait](https://github.com/alexander-akait) in [#359](https://github.com/webpack/watchpack/pull/359)) + ## 2.6.1 ### Patch Changes diff --git a/package.json b/package.json index 606928a..bda1a41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "watchpack", - "version": "2.6.1", + "version": "2.6.2", "description": "", "homepage": "https://github.com/webpack/watchpack", "bugs": {