watchpack

Wrapper library for directory and file watching.

MIT License

Downloads
121.2M
Stars
373
Committers
30

Bot releases are hidden (Show)

watchpack - v2.4.1 Latest Release

Published by alexander-akait 7 months ago

Bugfixes

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

Published by sokra over 2 years ago

Bugfixes

  • respect filesystem accuracy more accurately
watchpack -

Published by sokra over 2 years ago

Bugfixes

  • report time info for directories correctly
watchpack -

Published by sokra almost 3 years ago

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
watchpack -

Published by sokra over 3 years ago

Bugfix

  • fix warnings with ENOENT when symlinks are resolved by watchpack
watchpack -

Published by sokra almost 4 years ago

Bugfix

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

Published by sokra almost 4 years ago

Bugfixes

  • removed watchpack-chokidar2 notsup warning
watchpack -

Published by sokra almost 4 years ago

Bugfix

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

Published by sokra about 4 years ago

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
watchpack -

Published by sokra about 4 years ago

Features

  • add logging of recursive watchers when WATCHPACK_RECURSIVE_WATCHER_LOGGING env var is set

Bugfixes

  • fix incorrect merging of watchers when reaching the watcher limit
watchpack -

Published by sokra about 4 years ago

Features

  • 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

Changes

  • 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

Contributing

  • node 14 in CI
  • test watcher limit of 1 on CI
watchpack -

Published by sokra about 4 years ago

Bugfixes

watchpack -

Published by sokra about 4 years ago

Bugfixes

  • remove unneeded files from package
watchpack -

Published by sokra about 4 years ago

Features

  • support chokidar 2 and 3 for node.js 6 - 14 support
watchpack -

Published by sokra about 4 years ago

broken publish

watchpack -

Published by sokra about 4 years ago

broken publish

watchpack -

Published by sokra over 4 years ago

  • force upgrade chokidar for security reasons
watchpack -

Published by sokra over 4 years ago

Bugfixes

  • fix handling of renames that only change the casing of files on a case-insensitive filesystem
watchpack -

Published by sokra almost 5 years ago

Bugfixes

  • don't fire change events when files are only read

Dependencies

  • remove neo-async dependency to be smaller
watchpack -

Published by sokra almost 5 years ago

Features

  • Support /RegExp/ for ignored option

Bugfixes

  • aggregateTimeout: 0 now works correctly
Package Rankings
Top 1.05% on Npmjs.org
Top 20.35% on Repo1.maven.org
Badges
Extracted from project README
Test Codecov Downloads