watchpack

Wrapper library for directory and file watching.

MIT License

Downloads
121.2M
Stars
373
Committers
30

Bot releases are hidden (Show)

watchpack -

Published by sokra almost 5 years ago

Changes

  • 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

Features

  • add watching of missing items

Bugfixes

  • removals and changes in the aggregated event no longer both contain a file
watchpack -

Published by sokra almost 5 years ago

Breaking Changes

  • increase minimum node.js version to 10

Bugfixes

  • use options identify instead of stringified options

Performance

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

Published by sokra almost 5 years ago

Features

  • allow all Iterables instead of only Array
watchpack -

Published by sokra over 5 years ago

Features

  • add followSymlinks option
watchpack -

Published by sokra over 5 years ago

Bugfixes

  • Normalize readdir result to NFC
  • Skip watching the root of the filesystem as file even when requested
watchpack -

Published by sokra over 5 years ago

Dependencies

  • move dependency to devDependency
watchpack -

Published by sokra over 5 years ago

Features

  • add ignored option

Bugfixes

  • Polling no longer uses fs.watchFile but polls the directory directly

Contributing

  • added prettier
watchpack -

Published by sokra over 5 years ago

Bugfixes

  • fix a bug where scanning got stuck
watchpack -

Published by sokra over 6 years ago

  • set polling interval for binary files too
  • update chokidar to v2
  • OSX: not existing directories can be watched
  • adding files now also causes change events
watchpack -

Published by sokra over 7 years ago

Bugfixes:

  • don't adjust fs accuracy on inital scan
watchpack -

Published by sokra over 7 years ago

Bugfixes:

  • track removal times
watchpack -

Published by sokra over 7 years ago

Bugfixes:

  • readd mtimes property
watchpack -

Published by sokra over 7 years ago

Bugfixes:

  • Fixed watch for directories containing special glob characters
  • Handle directory added event correctly
watchpack -

Published by SpaceK33z almost 8 years ago

  • Fix watch callback being called twice during initial build.
  • Fix remove event not being emitted.
  • Update async dependency.
  • Tests for macOS finally work again.
Package Rankings
Top 1.05% on Npmjs.org
Top 20.35% on Repo1.maven.org
Badges
Extracted from project README
Test Codecov Downloads