Skip to content

Commit 8f3a657

Browse files
committed
feat: change nodejs default to 20
1 parent 81b5c9a commit 8f3a657

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/Core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Defaults to `["https://nodejs.org/dist/v{version}/{filename}"]`
133133

134134
The specific version of Node.js to install
135135

136-
Defaults to `"18.20.8"`
136+
Defaults to `"20.19.0"`
137137

138138
<h4 id="nodejs_repositories-node_version_from_nvmrc">node_version_from_nvmrc</h4>
139139

nodejs/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DEFAULT_NODE_VERSION = [
2020
# 16.18.1-windows_amd64 -> 16.18.1
2121
v.split("-")[0]
2222
for v in NODE_VERSIONS.keys()
23-
if v.startswith("18.")
23+
if v.startswith("20.")
2424
][-1] # Versions are sorted increasing, so last one is the latest version
2525

2626
LATEST_KNOWN_NODE_VERSION = [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"repository": "https://github.com/bazel-contrib/rules_nodejs.git",
1212
"license": "Apache-2.0",
1313
"engines": {
14-
"node": ">=12 <=18"
14+
"node": ">=12 <20"
1515
},
1616
"packageManager": "pnpm@8.11.0",
1717
"devDependencies": {

0 commit comments

Comments
 (0)