From c66aa5c31f0c68507f1c69e2e4412261a0f4c39e Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Tue, 13 Jan 2026 09:55:26 -0800 Subject: [PATCH] feat: change nodejs default to 22 --- nodejs/repositories.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodejs/repositories.bzl b/nodejs/repositories.bzl index 2b890aaba7..3bf45bdbb4 100644 --- a/nodejs/repositories.bzl +++ b/nodejs/repositories.bzl @@ -11,7 +11,7 @@ DEFAULT_NODE_REPOSITORY = "nodejs" # Default Node.js URL used as the default for node_urls DEFAULT_NODE_URL = "https://nodejs.org/dist/v{version}/{filename}" -# Currently v18 is the "active" LTS release: +# Currently v22 is the "active" LTS release: # https://nodejs.dev/en/about/releases/ # We can only change that in a major release of rules_nodejs, # as it's a semver-breaking change for our users who rely on it. @@ -19,7 +19,7 @@ DEFAULT_NODE_VERSION = [ # 16.18.1-windows_amd64 -> 16.18.1 v.split("-")[0] for v in NODE_VERSIONS.keys() - if v.startswith("20.") + if v.startswith("22.") ][-1] # Versions are sorted increasing, so last one is the latest version LATEST_KNOWN_NODE_VERSION = [