Skip to content

Releases: webpack/watchpack

v2.5.2

Choose a tag to compare

@github-actions github-actions released this 11 Jun 10:21
6891a40

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 in #293)

  • Improve perfomance for ignored and improve perfomance for reduce plan. (by @alexander-akait in #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 in #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 in #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 in #297)

v2.5.1

Choose a tag to compare

@alexander-akait alexander-akait released this 15 Jan 11:02

Fixes

  • typo in typescript types

v2.5.0

Choose a tag to compare

@alexander-akait alexander-akait released this 23 Dec 12:27

Features

  • Added types

v2.4.4

Choose a tag to compare

@alexander-akait alexander-akait released this 21 May 11:09

Fixes

  • Node.js v24+ changed permission access error codes

v2.4.3

Choose a tag to compare

@alexander-akait alexander-akait released this 19 May 18:00

Bugfixes

  • ignore listening for the directory itself to be deleted

Performance

  • limit the number of concurrently open file watchers on macOS

v2.4.2

Choose a tag to compare

@alexander-akait alexander-akait released this 13 Aug 13:25

Bugfixes

  • handle empty strings and arrays in ignored

v2.4.1

Choose a tag to compare

@alexander-akait alexander-akait released this 12 Mar 14:42

Bugfixes

  • do not report directory as initial missing on the second watch

v2.4.0

Choose a tag to compare

@sokra sokra released this 02 Jun 11:31

Bugfixes

  • respect filesystem accuracy more accurately

v2.3.1

Choose a tag to compare

@sokra sokra released this 02 Jun 11:29

Bugfixes

  • report time info for directories correctly

v2.3.0

Choose a tag to compare

@sokra sokra released this 24 Nov 18:11

Features

  • allow to grab separate file and directory time info objects
  • allow functions passed to the ignored option

Bugfixes

  • ignore EACCESS errors during initial scan

Performance

  • improve performance of watcher update

Contributing

  • CI tests node.js 17 too