Skip to content

Releases: webpack/watchpack

v2.4.2

13 Aug 13:25
Compare
Choose a tag to compare

Bugfixes

  • handle empty strings and arrays in ignored

v2.4.1

12 Mar 14:42
Compare
Choose a tag to compare

Bugfixes

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

v2.4.0

02 Jun 11:31
Compare
Choose a tag to compare

Bugfixes

  • respect filesystem accuracy more accurately

v2.3.1

02 Jun 11:29
Compare
Choose a tag to compare

Bugfixes

  • report time info for directories correctly

v2.3.0

24 Nov 18:11
Compare
Choose a tag to compare

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

v2.1.1

07 Feb 16:37
Compare
Choose a tag to compare

Bugfix

  • fix warnings with ENOENT when symlinks are resolved by watchpack

v2.1.0

08 Dec 10:54
Compare
Choose a tag to compare

Bugfix

  • use creation time instead of modified time for folder entries that are only watch for existence
    • fixes a problem where webpack rebuilds unnecessarily

v1.7.5

10 Nov 06:19
Compare
Choose a tag to compare

Bugfixes

  • removed watchpack-chokidar2 notsup warning

v2.0.1

31 Oct 12:53
Compare
Choose a tag to compare

Bugfix

  • fix incorrectly reported changes when attaching to an already watched directory

v2.0.0

17 Sep 23:59
Compare
Choose a tag to compare

Features

  • Polling no longer uses fs.watchFile but polls the directory directly
  • add ignored option
  • add followSymlinks option
  • allow all Iterables instead of only Array passes as arguments
  • Changed API to take an options object
    • Old API is also accepted without warning (it may be deprecated in the next major)
  • emit remove event when files or directories are not found during initial scan
    • It's assumed that they are removed between reading and watching start
  • add watching of missing items
  • Support /RegExp/ for ignored option
  • limit maximum number of os watchers on OSX to 2000 and on windows to 10000
    • limit can be changed with WATCHPACK_WATCHER_LIMIT environment variable
    • once limit is reached watchers are merged into recursive watchers
  • merge multiple os watchers from watchers with different options into one os watcher
  • add logging of recursive watchers when WATCHPACK_RECURSIVE_WATCHER_LOGGING env var is set

Bugfixes

  • Normalize readdir result to NFC
  • Skip watching the root of the filesystem as file even when requested
  • use options identify instead of stringified options to merge watchers
  • removals and changes in the aggregated event no longer both contain a file
  • aggregateTimeout: 0 now works correctly
  • don't fire change events when files are only read
  • fix handling of renames that only change the casing of files on a case-insensitive filesystem

Performance

  • avoid calling process.nextTick when unneeded on watcher creation
  • cache time entry map in Watcher
  • close watchers faster
  • avoid an unneeded filter call

Dependencies

  • remove neo-async dependency to be smaller

Contributing

  • added prettier
  • node 14 in CI
  • test watcher limit of 1 on CI

Changes

  • increase minimum node.js version to 10
  • initial scan do not fire change events when no start time is provided
  • improve polling schedule to not try to poll faster than the scanning