chore(vercel): change the default node version to 22.#14077
chore(vercel): change the default node version to 22.#14077ascorbic merged 4 commits intowithastro:mainfrom jat001:patch-1
Conversation
🦋 Changeset detectedLatest commit: efea6e0 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 |
There was a problem hiding this comment.
Pull Request Overview
This PR updates the default Node.js runtime for Vercel Serverless Functions from version 18 to 22, and adjusts the deprecation schedule for Node.js 18.
- Update the removal date for Node.js 18 to September 1, 2025
- Change all fallback and deprecation messages and return values from
nodejs18.xtonodejs22.x
Comments suppressed due to low confidence (2)
packages/integrations/vercel/src/index.ts:709
- Add unit tests for
getRuntimeto cover the unsupported version fallback, verifying that it returnsnodejs22.xand logs the updated warning message when the local Node.js version is not supported.
return 'nodejs22.x';
packages/integrations/vercel/src/index.ts:73
- The
removalfield for Node.js 18 is now a Date object, whereas other entries use string literals. Consider using a string for consistency or converting all removal dates to Date objects for uniformity.
18: { status: 'retiring', removal: new Date('September 1 2025'), warnDate: new Date('October 1 2024') },
florian-lefebvre
left a comment
There was a problem hiding this comment.
This is a breaking change. I think this is a change we may need to do as part of Astro 6? (and set it to node 20). cc @ascorbic
|
I think this is a breaking change on Vercel's side, and we're just reporting on it. I think it's fine to go in a patch. |
|
Node 22 is the default version on vercel functions. https://vercel.com/docs/functions/runtimes/node-js/node-js-versions#default-and-available-versions |
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Change the default node version to 22. https://vercel.com/changelog/node-js-18-is-being-deprecated * add changeset * Update .changeset/brave-wombats-jam.md * Update .changeset/brave-wombats-jam.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Changes
Change the default node version of vercel functions to 22. Node.js 18 will be disabled on September 1, 2025.
See https://vercel.com/changelog/node-js-18-is-being-deprecated
Testing
No need
Docs
No need