Repository navigation
fix: support Node.js 26 in adapter-vercel (2.x) - #17580
Merged
elliott-with-the-longest-name-on-github merged 1 commit intoOct 30, 2026
Merged
elliott-with-the-longest-name-on-github merged 1 commit into
elliott-with-the-longest-name-on-github merged 1 commit into
Conversation
Backport of sveltejs#17570 to version-2. Accept any even Node.js major >= 20 (`/^nodejs[2-9][02468]\.x$/`) instead of a hard-coded list, so Node 26 builds resolve to `nodejs26.x` instead of throwing `Unsupported Node.js version`. (cherry picked from commit 1120bd6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/aacd836957463498cdd4f8ab7fa11d61bb71664aOpen in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
🦋 Changeset detectedLatest commit: aacd836 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
elliott-with-the-longest-name-on-github
approved these changes
Oct 30, 2026
elliott-with-the-longest-name-on-github
marked this pull request as ready for review
October 30, 2026 19:14
elliott-with-the-longest-name-on-github
merged commit Oct 30, 2026
77e4fce
into
sveltejs:version-2
22 of 23 checks passed
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport #17570 to
version-2so@sveltejs/adapter-vercel6.x builds on Node.js 26 and on future even Node.js versions.Context
#17570 shipped in
@sveltejs/adapter-vercel7.0.2, which requires SvelteKit 3. SvelteKit 2 apps stay on adapter 6.x, and 6.3.4 still hard-codesvalid_node_versions = [20, 22, 24]. Vercel made Node.js 26 generally available on 2026-10-29. New projects default to26.x, and projects with an openengines.noderange such as>=22move to 26 on their next build. So SvelteKit 2 builds now throwUnsupported Node.js version: v26.x, andruntime: 'nodejs26.x'is rejected too. Their only workaround is pinning Node.js 24 withengines.nodeorruntime: 'nodejs24.x'.This uses the same regex, error wording,
RuntimeKeytypedef and changeset as #17570. The version-2 differences are kept:nodejs20.xis still accepted, andedgeandbun1.xare unchanged. The tests live intest/utils.spec.json this branch.release.ymlonly runs on pushes tomain, so a maintainer would need to cut the 6.x patch release.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits
🤖 Generated with Claude Code