Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nodejs/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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.
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 = [
Expand Down
Loading