@@ -7,12 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ Nothing yet.
11+
12+ ## [ 1.6.0] - 2022-10-13
13+
1014This version of fsnotify needs Go 1.16 (this was already the case since 1.5.1,
1115but not documented). It also increases the minimum Linux version to 2.6.32.
1216
1317### Additions
1418
15- - all: add ` Event.Has() ` and ` Op.Has() ` (#477 )
19+ - all: add ` Event.Has() ` and ` Op.Has() ` ([ #477 ] )
1620
1721 This makes checking events a lot easier; for example:
1822
@@ -24,13 +28,13 @@ but not documented). It also increases the minimum Linux version to 2.6.32.
2428 if event.Has(Write) && !event.Has(Remove) {
2529 }
2630
27- - all: add cmd/fsnotify (#463 )
31+ - all: add cmd/fsnotify ([ #463 ] )
2832
29- A command-line utility for testing and as an example .
33+ A command-line utility for testing and some examples .
3034
3135### Changes and fixes
3236
33- - inotify: don't ignore events for files that don't exist (#260 , #470 )
37+ - inotify: don't ignore events for files that don't exist ([ #260 ] , [ #470 ] )
3438
3539 Previously the inotify watcher would call ` os.Lstat() ` to check if a file
3640 still exists before emitting events.
@@ -41,41 +45,57 @@ but not documented). It also increases the minimum Linux version to 2.6.32.
4145 longer exists.
4246
4347- all: return ` ErrNonExistentWatch ` when ` Remove() ` is called on a path that's
44- not watched (#460 )
48+ not watched ([ #460 ] )
4549
46- - inotify: replace epoll() with non-blocking inotify #434
50+ - inotify: replace epoll() with non-blocking inotify ( [ #434 ] )
4751
4852 Non-blocking inotify was not generally available at the time this library was
4953 written in 2014, but now it is. As a result, the minimum Linux version is
5054 bumped from 2.6.27 to 2.6.32. This hugely simplifies the code and is faster.
5155
52- - kqueue: don't check for events every 100ms (#480 )
56+ - kqueue: don't check for events every 100ms ([ #480 ] )
5357
5458 The watcher would wake up every 100ms, even when there was nothing to do. Now
5559 it waits until there is something to do.
5660
57- - macos: retry opening files on EINTR (#475 )
61+ - macos: retry opening files on EINTR ([ #475 ] )
5862
59- - kqueue: skip unreadable files (#479 )
63+ - kqueue: skip unreadable files ([ #479 ] )
6064
6165 kqueue requires a file descriptor for every file in a directory; this would
6266 fail if a file was unreadable by the current user. Now these files are simply
6367 skipped.
6468
65- - windows: fix renaming a watched directory if the parent is also watched (#370 )
69+ - windows: fix renaming a watched directory if the parent is also watched ([ #370 ] )
6670
67- - windows: increase buffer size from 4K to 64K (#485 )
71+ - windows: increase buffer size from 4K to 64K ([ #485 ] )
6872
69- - windows: close file handle on Remove() (#288 )
73+ - windows: close file handle on Remove() ([ #288 ] )
7074
71- - kqueue: put pathname in the error if watching a file fails (#471 )
75+ - kqueue: put pathname in the error if watching a file fails ([ #471 ] )
7276
73- - inotify, windows: calling Close() more than once could race (#465 )
77+ - inotify, windows: calling Close() more than once could race ([ #465 ] )
7478
75- - kqueue: improve Close() performance (#233 )
79+ - kqueue: improve Close() performance ([ #233 ] )
7680
7781- all: various documentation additions and clarifications.
7882
83+ [ #233 ] : https://github.com/fsnotify/fsnotify/pull/233
84+ [ #260 ] : https://github.com/fsnotify/fsnotify/pull/260
85+ [ #288 ] : https://github.com/fsnotify/fsnotify/pull/288
86+ [ #370 ] : https://github.com/fsnotify/fsnotify/pull/370
87+ [ #434 ] : https://github.com/fsnotify/fsnotify/pull/434
88+ [ #460 ] : https://github.com/fsnotify/fsnotify/pull/460
89+ [ #463 ] : https://github.com/fsnotify/fsnotify/pull/463
90+ [ #465 ] : https://github.com/fsnotify/fsnotify/pull/465
91+ [ #470 ] : https://github.com/fsnotify/fsnotify/pull/470
92+ [ #471 ] : https://github.com/fsnotify/fsnotify/pull/471
93+ [ #475 ] : https://github.com/fsnotify/fsnotify/pull/475
94+ [ #477 ] : https://github.com/fsnotify/fsnotify/pull/477
95+ [ #479 ] : https://github.com/fsnotify/fsnotify/pull/479
96+ [ #480 ] : https://github.com/fsnotify/fsnotify/pull/480
97+ [ #485 ] : https://github.com/fsnotify/fsnotify/pull/485
98+
7999## [ 1.5.4] - 2022-04-25
80100
81101* Windows: add missing defer to ` Watcher.WatchList ` [ #447 ] ( https://github.com/fsnotify/fsnotify/pull/447 )
0 commit comments