Skip to content

Commit a3e98dd

Browse files
committed
Require Node.js 16
1 parent 3f89140 commit a3e98dd

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
node-version:
1313
- 20
1414
- 18
15+
- 16
1516
steps:
1617
- uses: actions/checkout@v3
1718
- uses: actions/setup-node@v3

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default function plugin(pattern, options = {}) {
1111
throw new PluginError('gulp-filter', '`pattern` should be a string, array, or function');
1212
}
1313

14+
// TODO: Use `readableStream.filter()` when targeting Node.js 18.
1415
return streamfilter((file, encoding, callback) => {
1516
let match;
1617

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"type": "module",
14+
"exports": "./index.js",
1415
"engines": {
15-
"node": ">=18"
16+
"node": ">=16"
1617
},
1718
"scripts": {
1819
"test": "xo && mocha"

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Enables you to work on a subset of the original files by filtering them using gl
66

77
## Install
88

9-
```
10-
$ npm install --save-dev gulp-filter
9+
```sh
10+
npm install --save-dev gulp-filter
1111
```
1212

1313
## Usage

0 commit comments

Comments
 (0)