diff --git a/.changeset/ebusy-retries.md b/.changeset/ebusy-retries.md deleted file mode 100644 index cd8e432..0000000 --- a/.changeset/ebusy-retries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -fix: retry `fs.lstat` on transient `EBUSY` errors instead of emitting a spurious `remove` event (fixes #223, #44). The retry count is controlled by the `WATCHPACK_RETRIES` environment variable (default: `3`; set to `0` or `"false"` to disable retrying). diff --git a/.changeset/olive-onions-yawn.md b/.changeset/olive-onions-yawn.md deleted file mode 100644 index 7dbed63..0000000 --- a/.changeset/olive-onions-yawn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -Improve perfomance for ignored and improve perfomance for reduce plan. diff --git a/.changeset/perf-ignored-reduceplan.md b/.changeset/perf-ignored-reduceplan.md deleted file mode 100644 index 2d142ed..0000000 --- a/.changeset/perf-ignored-reduceplan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -perf: speed up `ignored` matchers (~35–45% faster on POSIX paths) and `reducePlan` (~20–40% faster on medium and large plans). Also adds a tinybench suite under `bench/` and a CodSpeed GitHub Actions workflow to catch future regressions. diff --git a/.changeset/silence-permission-scan-errors.md b/.changeset/silence-permission-scan-errors.md deleted file mode 100644 index ae98050..0000000 --- a/.changeset/silence-permission-scan-errors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -fix: don't log "Watchpack Error (initial scan)" for unreadable entries inside a watched parent directory, e.g. `pagefile.sys` on WSL or `/efi` on Linux (fixes #187). `EACCES` / `ENODEV` (and `EINVAL` on Windows) errors are now handled like `EPERM` / `ENOENT` / `EBUSY`: the entry is recorded as missing and the scan continues silently. diff --git a/.changeset/symlink-cycle-guard.md b/.changeset/symlink-cycle-guard.md deleted file mode 100644 index 75cfd1c..0000000 --- a/.changeset/symlink-cycle-guard.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"watchpack": patch ---- - -fix: prevent unbounded watcher growth when a symlinked directory points back to one of its own ancestors (e.g. `a/b/loop -> ..`) with `followSymlinks: true`. Such symlinks are now recorded as plain entries instead of being descended into; symlinks pointing outside the watched tree (#231) behave as before. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..26e1ed6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# watchpack + +## 2.5.2 + +### Patch Changes + +- fix: retry `fs.lstat` on transient `EBUSY` errors instead of emitting a spurious `remove` event (fixes #223, #44). The retry count is controlled by the `WATCHPACK_RETRIES` environment variable (default: `3`; set to `0` or `"false"` to disable retrying). (by [@alexander-akait](https://github.com/alexander-akait) in [#293](https://github.com/webpack/watchpack/pull/293)) + +- Improve perfomance for ignored and improve perfomance for reduce plan. (by [@alexander-akait](https://github.com/alexander-akait) in [#289](https://github.com/webpack/watchpack/pull/289)) + +- perf: speed up `ignored` matchers (~35–45% faster on POSIX paths) and `reducePlan` (~20–40% faster on medium and large plans). Also adds a tinybench suite under `bench/` and a CodSpeed GitHub Actions workflow to catch future regressions. (by [@alexander-akait](https://github.com/alexander-akait) in [#287](https://github.com/webpack/watchpack/pull/287)) + +- fix: don't log "Watchpack Error (initial scan)" for unreadable entries inside a watched parent directory, e.g. `pagefile.sys` on WSL or `/efi` on Linux (fixes #187). `EACCES` / `ENODEV` (and `EINVAL` on Windows) errors are now handled like `EPERM` / `ENOENT` / `EBUSY`: the entry is recorded as missing and the scan continues silently. (by [@alexander-akait](https://github.com/alexander-akait) in [#298](https://github.com/webpack/watchpack/pull/298)) + +- fix: prevent unbounded watcher growth when a symlinked directory points back to one of its own ancestors (e.g. `a/b/loop -> ..`) with `followSymlinks: true`. Such symlinks are now recorded as plain entries instead of being descended into; symlinks pointing outside the watched tree (#231) behave as before. (by [@alexander-akait](https://github.com/alexander-akait) in [#297](https://github.com/webpack/watchpack/pull/297)) diff --git a/package.json b/package.json index 057a515..a378fd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "watchpack", - "version": "2.5.1", + "version": "2.5.2", "description": "", "homepage": "https://github.com/webpack/watchpack", "bugs": {