Repository navigation
feat: add Node.js 26 runtime support with beta status - #11397
Open
IzaakGough wants to merge 4 commits into
Open
IzaakGough wants to merge 4 commits into
IzaakGough wants to merge 4 commits into
Conversation
Keeps init scaffolding the newest GA runtime instead of a Preview one.
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds support for the Node.js 26 runtime (Preview) for Cloud Functions, updating the configuration schema, changelog, and runtime definitions. It also modifies the runtime selection logic to prefer GA runtimes over preview/beta runtimes to prevent scaffolding new projects on preview runtimes, falling back to the newest runtime if no GA runtime exists. Feedback on the changes suggests defensively guarding the runtime status check with optional chaining (RUNTIMES[r]?.status) to handle potentially undefined runtimes safely and align with the repository's strict null check guidelines.
IzaakGough
marked this pull request as ready for review
October 30, 2026 15:51
MadeinFrance
approved these changes
Nov 2, 2026
This branch has not been deployed
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.
Fixes #11393.
Deploying with Node.js 26 failed with "not a supported version", even though Cloud Run functions supports it in Preview.
This adds
nodejs26as a beta runtime, the same way Node.js 22 and 24 were added.firebase init functionsstays on Node.js 24. It picks the newest GA runtime, so new projects are not put on a Preview one. Dart has no GA runtime, so it still gets the newest.Tested with unit tests and a real 2nd gen deploy using both
engines.nodeandruntime. 1st gen not tested.