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 support for Node 12 #497

Merged
merged 5 commits into from May 10, 2022
Merged

Drop support for Node 12 #497

merged 5 commits into from May 10, 2022

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented May 9, 2022

This drops support for Node 12 (breaking change) since it is not maintained anymore.
This also adds CI tests for Node 18, and upgrades some GitHub actions.

The also drops Node 14.13.1 - 14.17.0 and 16.0.0 - 16.3.0 in order to support unconditionally several features: cwd: URL, stdio: 'overlapped' and the signal option.

@@ -3,7 +3,6 @@ import process from 'node:process';
import {fileURLToPath} from 'node:url';
import test from 'ava';
// The helper module overrides Promise on import so has to be imported before `execa`.
// Can't use top-level await (TLA) + `import(…)` since Node.js 12 doesn't support TLA.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see how a top-level await could be used in this instance, so I just removed the comment.

@@ -167,9 +166,7 @@ if (process.platform !== 'win32') {
});

test('execa() rejects with correct error and doesn\'t throw if running non-executable with input', async t => {
// On Node <12.6.0, `EACCESS` is emitted on `childProcess`.
// On Node >=12.6.0, `EPIPE` is emitted on `childProcess.stdin`.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was invalid: EACCES is used on Node >=12.6.0, and EPIPE on <12.6.0.

@ehmicky ehmicky marked this pull request as draft May 9, 2022 18:10
@ehmicky ehmicky marked this pull request as ready for review May 9, 2022 18:18
- 12
- 18.0.0
- 16.4.0
- 14.18.0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer using non-specific minors so it upgrades when new minor versions are out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

package.json Outdated Show resolved Hide resolved
ehmicky and others added 2 commits May 10, 2022 16:24
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
@ehmicky ehmicky requested a review from sindresorhus May 10, 2022 14:25
@sindresorhus sindresorhus merged commit a09cbc0 into main May 10, 2022
@sindresorhus sindresorhus deleted the chore/drop-node-12 branch May 10, 2022 17:12
@BrycensRanch
Copy link

BrycensRanch commented Feb 11, 2023

How did you not publish a breaking change for months? I'm still learning Semantic Versioning but if I was to merge a breaking change it'd be immediately added to releases

Only now am I getting a dependency PR for this

@ehmicky
Copy link
Collaborator Author

ehmicky commented Feb 11, 2023

Hi @BrycensRanch, 7.0.0 was just released. 👍

@BrycensRanch
Copy link

oh

@MaksimMedvedev
Copy link

Hi! I see you mentioned dropping support for node < 16.3, but on 7.1.1 the package.json indicates 16.14.0 as a minimal version. I could consider asking our DevOps to update node but is there a reason you narrow 16.x version of node this tight? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants