Skip to content

Commit cba637a

Browse files
chore(release): new release
1 parent 022b223 commit cba637a

7 files changed

Lines changed: 17 additions & 28 deletions

‎.changeset/case-insensitive-time-info.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/directory-fs-accuracy.md‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎.changeset/macos-lost-events.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/missing-under-file.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/watcher-limit-polling.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# watchpack
22

3+
## 2.6.2
4+
5+
### Patch Changes
6+
7+
- On case-insensitive file systems, give a file watched with other casing (e.g. imported as `./B` while the file is `b.js`) the time info of the file instead of `null`, so webpack rebuilds it on every change, not only the first (fixes #228). (by [@alexander-akait](https://github.com/alexander-akait) in [#358](https://github.com/webpack/watchpack/pull/358))
8+
9+
- fix: do not report directories created shortly before `startTime` as changed when the initial scan sees only directories (#295). (by [@alexander-akait](https://github.com/alexander-akait) in [#350](https://github.com/webpack/watchpack/pull/350))
10+
11+
Timestamp accuracy was learned only from file mtimes, so a scan that found only directories kept the 2000ms default and flagged anything created in the 2s before `startTime`. Directory mtimes now lower it the same way.
12+
13+
- Report changes and removals macOS loses when a directory watcher starts or stops, by rescanning the watched directories once its event stream restarts. (by [@alexander-akait](https://github.com/alexander-akait) in [#354](https://github.com/webpack/watchpack/pull/354))
14+
15+
- Watch a missing file whose parent path is a file (e.g. `src/foo/index.js`, tried by a resolver alias, while `src/foo` is a file) like one whose parent is missing: no more `ENOTDIR` "Watchpack Error (initial scan)" log, and the file is reported once the parent becomes a directory (fixes #226's case). (by [@alexander-akait](https://github.com/alexander-akait) in [#360](https://github.com/webpack/watchpack/pull/360))
16+
17+
- When the system runs out of file watchers (`ENOSPC`/`EMFILE`, e.g. `fs.inotify.max_user_watches` on Linux), poll the directories it cannot watch instead of reporting their files as removed and retrying in a loop, and log the error once with a hint (fixes #46). (by [@alexander-akait](https://github.com/alexander-akait) in [#359](https://github.com/webpack/watchpack/pull/359))
18+
319
## 2.6.1
420

521
### Patch Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "watchpack",
3-
"version": "2.6.1",
3+
"version": "2.6.2",
44
"description": "",
55
"homepage": "https://github.com/webpack/watchpack",
66
"bugs": {

0 commit comments

Comments
 (0)