-
-
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
Remove support for Node 16 #7780
Conversation
🦋 Changeset detectedLatest commit: 56ebee2 The changes in this PR will be included in the next version bump. 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 |
Should we address this? import { File, FormData, Headers, Request, Response, fetch } from 'undici' // Remove when Node 16 is dropped for Node 18. It would help deno and bun if they could use their own implementation and slightly reduce how long users have to wait when installing astro. |
Intentionally skipped in this PR, I plan to tackle the |
5aec250
to
d6505c3
Compare
Changes
Move our lowest supported version to v18.14.1. That specific version of Node 18 was chosen as previous versions had issues in their fetch implementation. While those issues don't necessarily affect the majority of users, it's safer for us to recommend a version we know work in every situation.
Moving up a Node version also allow us to uses TypeScript's newest features, as such this also migrates us to
moduleResolution: 'bundler'
.Changes to
@astrojs/webapi
were skipped in this PR, I'll tackle those separately to make sure I don't remove needed polyfills and stuff.Testing
Tests should all pass!
Docs
Will do a PR to docs to update the installation page