Skip to content

Commit f1344d6

Browse files
authored
feat: change nodejs default to 22 (#3891)
## PR Checklist Please check if your PR fulfills the following requirements: - [x] Tests for the changes have been added (for bug fixes / features) - [x] Docs have been added / updated (for bug fixes / features) ## PR Type What kind of change does this PR introduce? <!-- Please check the one that applies to this PR using "x". --> - [ ] Bugfix - [x] Feature (please, look at the "Scope of the project" section in the README.md file) - [ ] Code style update (formatting, local variables) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] CI related changes - [ ] Documentation content changes - [ ] Other... Please describe: ## What is the current behavior? <!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> Issue Number: N/A ## What is the new behavior? ## Does this PR introduce a breaking change? - [ ] Yes - [x] No <!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information
1 parent a962585 commit f1344d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nodejs/repositories.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ DEFAULT_NODE_REPOSITORY = "nodejs"
1111
# Default Node.js URL used as the default for node_urls
1212
DEFAULT_NODE_URL = "https://nodejs.org/dist/v{version}/{filename}"
1313

14-
# Currently v18 is the "active" LTS release:
14+
# Currently v22 is the "active" LTS release:
1515
# https://nodejs.dev/en/about/releases/
1616
# We can only change that in a major release of rules_nodejs,
1717
# as it's a semver-breaking change for our users who rely on it.
1818
DEFAULT_NODE_VERSION = [
1919
# 16.18.1-windows_amd64 -> 16.18.1
2020
v.split("-")[0]
2121
for v in NODE_VERSIONS.keys()
22-
if v.startswith("20.")
22+
if v.startswith("22.")
2323
][-1] # Versions are sorted increasing, so last one is the latest version
2424

2525
LATEST_KNOWN_NODE_VERSION = [

0 commit comments

Comments
 (0)