-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support Node v14.15+ #2202
Support Node v14.15+ #2202
Conversation
🦋 Changeset detectedLatest commit: f500899 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✔️ Deploy Preview for astro-www ready! 🔨 Explore the source changes: 07bef8b 🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-www/deploys/61bbc99146c7f80007fb9d3a 😎 Browse the preview: https://deploy-preview-2202--astro-www.netlify.app |
✔️ Deploy Preview for astro-docs-2 ready! 🔨 Explore the source changes: 07bef8b 🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-docs-2/deploys/61bbc99140a9e20008d189ab 😎 Browse the preview: https://deploy-preview-2202--astro-docs-2.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I'd want to wait to ship this other pending minor changes, maybe?
// There's an issue with 'node12.20' compiling ESM to CJS | ||
// so use 'node13.2' instead. V8 support should be similar. | ||
target: 'node13.2', | ||
target: 'node14', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me happy!
@natemoo-re, because dependency updates can go stale pretty quickly (as I experienced last round), I would suggest separate PRs for dependencies, but this is not a strong opinion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! FYI I just merged the regen lockfile PR so you may want to rebase off of main and re-regenerate your lockfile based off of that (or remove the svelte plugin update entirely from this PR, as discussed in Discord). Up to you!
ab57088
to
e36e2c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -46,7 +46,7 @@ async function main() { | |||
// it's okay to hard-code the valid Node versions here since they will not change over time. | |||
if (typeof require === 'undefined') { | |||
console.error(`\nNode.js v${version} is not supported by Astro! | |||
Please upgrade to a version of Node.js with complete ESM support: "^12.20.0 || ^14.13.1 || >=16.0.0"\n`); | |||
Please upgrade to a version of Node.js with complete ESM support: "^14.15.0 || >=16.0.0"\n`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required in this PR, but we may now be able to remove supports-esm
and most of the logic in this file and just check that process.versions.node > '14.15'
instead of each ESM feature individually.
The context is that most of these checks were needed because Node v12 changed from version-to-version, and Node v14 was still actively supported and undergoing changes from version-to-version. Now it should be safe to do the more general > '14.15'
check and leave it at that.
e36e2c8
to
054ee70
Compare
054ee70
to
07bef8b
Compare
Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
07bef8b
to
f500899
Compare
* Support Node v14.15+ * changeset * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * ES2020 * update yarn.lock Co-authored-by: Nate Moore <[email protected]>
* Support Node v14.15+ * changeset * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * ES2020 * update yarn.lock Co-authored-by: Nate Moore <[email protected]>
* Support Node v14.15+ * changeset * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * Update .changeset/new-hats-design.md Co-authored-by: Nate Moore <[email protected]> * ES2020 * update yarn.lock Co-authored-by: Nate Moore <[email protected]>
Changes
tsconfig.json
files to reference Node v14.15+. 1Testing
Docs
bump only