From 6c92eb2695f1c533224e295f05c435feb034e501 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 10:03:39 +0000 Subject: [PATCH] chore(release): new release --- .changeset/mixed-ignored.md | 15 ------------ .changeset/report-removal-after-start-time.md | 7 ------ .../silence-stats-errors-watch-events.md | 5 ---- CHANGELOG.md | 24 +++++++++++++++++++ package.json | 2 +- 5 files changed, 25 insertions(+), 28 deletions(-) delete mode 100644 .changeset/mixed-ignored.md delete mode 100644 .changeset/report-removal-after-start-time.md delete mode 100644 .changeset/silence-stats-errors-watch-events.md diff --git a/.changeset/mixed-ignored.md b/.changeset/mixed-ignored.md deleted file mode 100644 index 1a9c0fb..0000000 --- a/.changeset/mixed-ignored.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"watchpack": minor ---- - -feat: allow the `ignored` option to be a mixed array of glob strings and -`RegExp` instances, e.g. `ignored: ["**/.cache", /generated/]`. - -Previously an array was assumed to contain only glob strings, so passing a -`RegExp` inside it threw `TypeError: Expected a string`. This made it -awkward for frameworks to append their own glob ignores to a user-supplied -`RegExp` ignore, since the two could not be combined in one value. - -Glob strings in the array are still merged into a single `RegExp`; `RegExp` -items are tested as-is. Behaviour for string-only arrays, single strings, -single `RegExp`s and functions is unchanged. diff --git a/.changeset/report-removal-after-start-time.md b/.changeset/report-removal-after-start-time.md deleted file mode 100644 index 509d574..0000000 --- a/.changeset/report-removal-after-start-time.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"watchpack": patch ---- - -fix: report a file removed after `startTime` to a watcher attached later, as a change after `startTime` already is. - -Previously a watcher attached with a `startTime` learned of files changed since then ("outdated on attach") but not of files removed since then, so webpack missed a dependency deleted while a build ran. diff --git a/.changeset/silence-stats-errors-watch-events.md b/.changeset/silence-stats-errors-watch-events.md deleted file mode 100644 index e84c2fd..0000000 --- a/.changeset/silence-stats-errors-watch-events.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -Suppress `Watchpack Error (stats)` logging for `EACCES`, `ENODEV`, and Windows `EINVAL` lstat errors in the watch-event path, matching the handling in the scan paths (e.g. `pagefile.sys` on a watched drive root with Node >= 22.17) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26e1ed6..8b2deb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # watchpack +## 2.6.0 + +### Minor Changes + +- feat: allow the `ignored` option to be a mixed array of glob strings and (by [@stormslowly](https://github.com/stormslowly) in [#336](https://github.com/webpack/watchpack/pull/336)) + `RegExp` instances, e.g. `ignored: ["**/.cache", /generated/]`. + + Previously an array was assumed to contain only glob strings, so passing a + `RegExp` inside it threw `TypeError: Expected a string`. This made it + awkward for frameworks to append their own glob ignores to a user-supplied + `RegExp` ignore, since the two could not be combined in one value. + + Glob strings in the array are still merged into a single `RegExp`; `RegExp` + items are tested as-is. Behaviour for string-only arrays, single strings, + single `RegExp`s and functions is unchanged. + +### Patch Changes + +- fix: report a file removed after `startTime` to a watcher attached later, as a change after `startTime` already is. (by [@alexander-akait](https://github.com/alexander-akait) in [#345](https://github.com/webpack/watchpack/pull/345)) + + Previously a watcher attached with a `startTime` learned of files changed since then ("outdated on attach") but not of files removed since then, so webpack missed a dependency deleted while a build ran. + +- Suppress `Watchpack Error (stats)` logging for `EACCES`, `ENODEV`, and Windows `EINVAL` lstat errors in the watch-event path, matching the handling in the scan paths (e.g. `pagefile.sys` on a watched drive root with Node >= 22.17) (by [@danielroe](https://github.com/danielroe) in [#326](https://github.com/webpack/watchpack/pull/326)) + ## 2.5.2 ### Patch Changes diff --git a/package.json b/package.json index a378fd5..7300d2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "watchpack", - "version": "2.5.2", + "version": "2.6.0", "description": "", "homepage": "https://github.com/webpack/watchpack", "bugs": {