Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Node.js 12 support #124

Merged
merged 2 commits into from
May 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
node-version:
- 16
- 14
- 12
os:
- ubuntu-latest
- macos-latest
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"optipng": "cli.js"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": "^14.13.1 || >=16.0.0"
},
"scripts": {
"postinstall": "node lib/install.js",
Expand All @@ -36,11 +36,11 @@
"bin-wrapper": "^4.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"ava": "^4.1.0",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"execa": "^5.1.1",
"execa": "^6.1.0",
"tempy": "^2.0.0",
"xo": "^0.45.0"
"xo": "^0.48.0"
}
}
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path';
import process from 'node:process';
import {fileURLToPath} from 'node:url';
import test from 'ava';
import execa from 'execa';
import {execa} from 'execa';
import tempy from 'tempy';
import binCheck from 'bin-check';
import binBuild from 'bin-build';
Expand Down Expand Up @@ -34,7 +34,7 @@ test('return path to binary and verify that it is working', async t => {

test('minify a PNG', async t => {
const temporary = tempy.directory();
const sourcePath = fileURLToPath(new URL('./fixtures/test.png', import.meta.url));
const sourcePath = fileURLToPath(new URL('fixtures/test.png', import.meta.url));
const destinationPath = path.join(temporary, 'test.png');
const arguments_ = [
'-strip',
Expand Down