Skip to content

Commit 3f8ed01

Browse files
committed
Version 1.1.0
PR-URL: #45
1 parent 9c02fd4 commit 3f8ed01

5 files changed

Lines changed: 129 additions & 129 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased][unreleased]
44

5+
## [1.1.0][] - 2023-06-03
6+
7+
- Add events `before` and `after` receiving `changes[]`
8+
- Clone queue iteration to avoid infinite loop
9+
- Improve tests
10+
511
## [1.0.8][] - 2023-03-29
612

713
- Drop node.js 14 support, add node.js 20
@@ -49,7 +55,8 @@
4955
- New 'delete' event ('rename' event if ENOENT)
5056
- Prevent duplicate path concatination
5157

52-
[unreleased]: https://github.com/metarhia/metawatch/compare/v1.0.8...HEAD
58+
[unreleased]: https://github.com/metarhia/metawatch/compare/v1.1.0...HEAD
59+
[1.1.0]: https://github.com/metarhia/metawatch/compare/v1.0.8...v1.1.0
5360
[1.0.8]: https://github.com/metarhia/metawatch/compare/v1.0.7...v1.0.8
5461
[1.0.7]: https://github.com/metarhia/metawatch/compare/v1.0.6...v1.0.7
5562
[1.0.6]: https://github.com/metarhia/metawatch/compare/v1.0.5...v1.0.6

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ watcher.on('change', (fileName) => {
2727
watcher.on('delete', (fileName) => {
2828
console.log({ deleted: fileName });
2929
});
30+
31+
watcher.on('before', (changes) => {
32+
console.log({ changes });
33+
});
34+
35+
watcher.on('after', (changes) => {
36+
console.log({ changes });
37+
});
3038
```
3139

3240
## Contributors

SECURITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
| Version | Supported |
66
| ------- | ------------------ |
77
| 0.0.x | :x: |
8-
| 1.0.x | :white_check_mark: |
8+
| 1.0.x | :x: |
9+
| 1.1.x | :white_check_mark: |
910

1011
## Reporting a Vulnerability
1112

0 commit comments

Comments
 (0)