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

Remove support for Node 16 #7780

Merged
merged 6 commits into from
Jul 24, 2023
Merged

Remove support for Node 16 #7780

merged 6 commits into from
Jul 24, 2023

Conversation

Princesseuh
Copy link
Member

@Princesseuh Princesseuh commented Jul 24, 2023

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

@changeset-bot
Copy link

changeset-bot bot commented Jul 24, 2023

🦋 Changeset detected

Latest 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

@Princesseuh Princesseuh changed the title Feat/deprecate 16 Remove support for Node 16 Jul 24, 2023
@github-actions github-actions bot added pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope) pkg: example Related to an example package (scope) 🚨 action Modifies GitHub Actions pkg: react Related to React (scope) pkg: preact Related to Preact (scope) pkg: solid Related to Solid (scope) pkg: integration Related to any renderer integration (scope) pkg: create-astro Related to the `create-astro` package (scope) pkg: astro Related to the core `astro` package (scope) labels Jul 24, 2023
@Princesseuh Princesseuh changed the base branch from next to main July 24, 2023 12:08
@Princesseuh Princesseuh changed the base branch from main to next July 24, 2023 12:08
@github-actions github-actions bot added pkg: lit Related to Lit (scope) and removed pkg: example Related to an example package (scope) 🚨 action Modifies GitHub Actions labels Jul 24, 2023
@github-actions github-actions bot added the 🚨 action Modifies GitHub Actions label Jul 24, 2023
@Princesseuh Princesseuh marked this pull request as ready for review July 24, 2023 13:57
@lilnasy
Copy link
Contributor

lilnasy commented Jul 24, 2023

Should we address this?
https://github.com/withastro/astro/blob/astro@2.9.2/packages/webapi/src/ponyfill.ts#L18

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.

@Princesseuh
Copy link
Member Author

Should we address this? https://github.com/withastro/astro/blob/astro@2.9.2/packages/webapi/src/ponyfill.ts#L18

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 webapi changes separately

packages/telemetry/package.json Outdated Show resolved Hide resolved
tsconfig.base.json Show resolved Hide resolved
@Princesseuh Princesseuh requested a review from a team as a code owner July 24, 2023 17:37
@github-actions github-actions bot added the feat: markdown Related to Markdown (scope) label Jul 24, 2023
@github-actions github-actions bot removed the feat: markdown Related to Markdown (scope) label Jul 24, 2023
@Princesseuh Princesseuh merged commit cb973ee into next Jul 24, 2023
@Princesseuh Princesseuh deleted the feat/deprecate-16 branch July 24, 2023 18:47
ematipico pushed a commit that referenced this pull request Jul 25, 2023
ematipico pushed a commit that referenced this pull request Jul 26, 2023
ematipico pushed a commit that referenced this pull request Jul 26, 2023
ematipico added a commit that referenced this pull request Jul 26, 2023
ematipico pushed a commit that referenced this pull request Jul 27, 2023
ematipico added a commit that referenced this pull request Jul 27, 2023
ematipico pushed a commit that referenced this pull request Jul 31, 2023
ematipico added a commit that referenced this pull request Jul 31, 2023
ematipico pushed a commit that referenced this pull request Aug 1, 2023
ematipico added a commit that referenced this pull request Aug 1, 2023
ematipico pushed a commit that referenced this pull request Aug 1, 2023
ematipico added a commit that referenced this pull request Aug 1, 2023
ematipico pushed a commit that referenced this pull request Aug 3, 2023
ematipico added a commit that referenced this pull request Aug 3, 2023
ematipico pushed a commit that referenced this pull request Aug 8, 2023
ematipico added a commit that referenced this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 action Modifies GitHub Actions pkg: astro Related to the core `astro` package (scope) pkg: create-astro Related to the `create-astro` package (scope) pkg: integration Related to any renderer integration (scope) pkg: lit Related to Lit (scope) pkg: preact Related to Preact (scope) pkg: react Related to React (scope) pkg: solid Related to Solid (scope) pkg: svelte Related to Svelte (scope) pkg: vue Related to Vue (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants