Skip to content

Commit

Permalink
Require Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 22, 2023
1 parent 3f89140 commit a3e98dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function plugin(pattern, options = {}) {
throw new PluginError('gulp-filter', '`pattern` should be a string, array, or function');
}

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

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=18"
"node": ">=16"
},
"scripts": {
"test": "xo && mocha"
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Enables you to work on a subset of the original files by filtering them using gl

## Install

```
$ npm install --save-dev gulp-filter
```sh
npm install --save-dev gulp-filter
```

## Usage
Expand Down

0 comments on commit a3e98dd

Please sign in to comment.