Skip to content

Commit 90229c8

Browse files
JeanMechedevversion
authored andcommitted
build: update to Node20
Node18 is EOL on April 30th 2025
1 parent aaaca8d commit 90229c8

File tree

5 files changed

+21
-22
lines changed

5 files changed

+21
-22
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.20.0
1+
20.11.1

WORKSPACE

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ workspace(
44

55
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
66

7-
NODE_VERSION = "18.20.0"
7+
NODE_VERSION = "20.11.1"
88

99
# The PKG rules are needed to build tar packages for integration tests. The builtin
1010
# rule in `@bazel_tools` is not Windows compatible and outdated.
@@ -42,15 +42,14 @@ load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
4242
nodejs_register_toolchains(
4343
name = "nodejs",
4444
node_repositories = {
45-
"18.20.0-darwin_arm64": ("node-v18.20.0-darwin-arm64.tar.gz", "node-v18.20.0-darwin-arm64", "10066ad4dd9e03ea5c4c45ef8775420ff37b860de09bbdf87b97e0c07b1ea036"),
46-
"18.20.0-darwin_amd64": ("node-v18.20.0-darwin-x64.tar.gz", "node-v18.20.0-darwin-x64", "062ba71618e88e06321de5caa038843c350aababa2d315f3ca7b8551f8e66c1c"),
47-
"18.20.0-linux_arm64": ("node-v18.20.0-linux-arm64.tar.xz", "node-v18.20.0-linux-arm64", "afe51da9ffb38ac1e3a20d9a06efd403ced4bf8831ab554a02a088dd8392fd79"),
48-
"18.20.0-linux_ppc64le": ("node-v18.20.0-linux-ppc64le.tar.xz", "node-v18.20.0-linux-ppc64le", "9e652bbf53a3e37285b11dfb9d6a9bb8b02010c3b50e5c8229d4cc10e72681da"),
49-
"18.20.0-linux_s390x": ("node-v18.20.0-linux-s390x.tar.xz", "node-v18.20.0-linux-s390x", "a6c2a5796b9d9e9bf21da62ec89ff30b41a8108880b9eaa3c912f1ce795a7743"),
50-
"18.20.0-linux_amd64": ("node-v18.20.0-linux-x64.tar.xz", "node-v18.20.0-linux-x64", "03eea148e56785babb27930b05ed6bf311aaa3bc573c0399dd63cad2fe5713c7"),
51-
"18.20.0-windows_amd64": ("node-v18.20.0-win-x64.zip", "node-v18.20.0-win-x64", "1c0aab05cc6836a8f5148cca345b92ebc948a4a2013f18d117b7ade6ff05aca6"),
45+
"20.11.1-darwin_arm64": ("node-v20.11.1-darwin-arm64.tar.gz", "node-v20.11.1-darwin-arm64", "e0065c61f340e85106a99c4b54746c5cee09d59b08c5712f67f99e92aa44995d"),
46+
"20.11.1-darwin_amd64": ("node-v20.11.1-darwin-x64.tar.gz", "node-v20.11.1-darwin-x64", "c52e7fb0709dbe63a4cbe08ac8af3479188692937a7bd8e776e0eedfa33bb848"),
47+
"20.11.1-linux_arm64": ("node-v20.11.1-linux-arm64.tar.xz", "node-v20.11.1-linux-arm64", "c957f29eb4e341903520caf362534f0acd1db7be79c502ae8e283994eed07fe1"),
48+
"20.11.1-linux_ppc64le": ("node-v20.11.1-linux-ppc64le.tar.xz", "node-v20.11.1-linux-ppc64le", "51343cacf5cdf5c4b5e93e919d19dd373d6ef43d5f2c666eae299f26e31d08b5"),
49+
"20.11.1-linux_s390x": ("node-v20.11.1-linux-s390x.tar.xz", "node-v20.11.1-linux-s390x", "b32616b705cd0ddbb230b95c693e3d7a37becc2ced9bcadea8dc824cceed6be0"),
50+
"20.11.1-linux_amd64": ("node-v20.11.1-linux-x64.tar.xz", "node-v20.11.1-linux-x64", "d8dab549b09672b03356aa2257699f3de3b58c96e74eb26a8b495fbdc9cf6fbe"),
51+
"20.11.1-windows_amd64": ("node-v20.11.1-win-x64.zip", "node-v20.11.1-win-x64", "bc032628d77d206ffa7f133518a6225a9c5d6d9210ead30d67e294ff37044bda"),
5252
},
53-
# We need at least Node 18.17 due to some transitive dependencies.
5453
node_version = NODE_VERSION,
5554
)
5655

ng-dev/utils/yargs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function runParserWithCompletedFunctions(applyConfiguration: (argv:
2323
.parse();
2424
} catch (e) {
2525
err = e as Error;
26-
if ([undefined, 0].includes(process.exitCode)) {
26+
if ([undefined, 0].includes(process.exitCode as any)) {
2727
process.exitCode = 1;
2828
}
2929
} finally {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@microsoft/api-extractor": "7.51.0",
3232
"@types/browser-sync": "^2.26.3",
3333
"@types/minimatch": "^5.1.2",
34-
"@types/node": "^18.19.21",
34+
"@types/node": "^20.14.8",
3535
"@types/selenium-webdriver": "^4.1.21",
3636
"@types/send": "^0.17.1",
3737
"@types/tmp": "^0.2.1",

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ __metadata:
286286
"@types/jasmine": "npm:5.1.7"
287287
"@types/jsdom": "npm:^21.0.0"
288288
"@types/minimatch": "npm:^5.1.2"
289-
"@types/node": "npm:^18.19.21"
289+
"@types/node": "npm:^20.14.8"
290290
"@types/opener": "npm:^1.4.0"
291291
"@types/selenium-webdriver": "npm:^4.1.21"
292292
"@types/semver": "npm:^7.3.6"
@@ -4587,12 +4587,12 @@ __metadata:
45874587
languageName: node
45884588
linkType: hard
45894589

4590-
"@types/node@npm:^18.19.21":
4591-
version: 18.19.76
4592-
resolution: "@types/node@npm:18.19.76"
4590+
"@types/node@npm:^20.14.8":
4591+
version: 20.17.23
4592+
resolution: "@types/node@npm:20.17.23"
45934593
dependencies:
4594-
undici-types: "npm:~5.26.4"
4595-
checksum: 10c0/211250b264ca3967d4cce41921b8a4cd704d920152f723f95c18dc7b70771c43472c69a6adc1be1a8364007cfa6ae17408424b3b0bc1d55b5f29bab4a6741336
4594+
undici-types: "npm:~6.19.2"
4595+
checksum: 10c0/4f7da7383ee8516b2e580d772a196fd76487670bd9d32a296621c5df63b077cc7d06c2a0040885b3e4a28c1751f9ad3d5ed55cff15d50b707e3d454993bfe33a
45964596
languageName: node
45974597
linkType: hard
45984598

@@ -14621,10 +14621,10 @@ __metadata:
1462114621
languageName: node
1462214622
linkType: hard
1462314623

14624-
"undici-types@npm:~5.26.4":
14625-
version: 5.26.5
14626-
resolution: "undici-types@npm:5.26.5"
14627-
checksum: 10c0/bb673d7876c2d411b6eb6c560e0c571eef4a01c1c19925175d16e3a30c4c428181fb8d7ae802a261f283e4166a0ac435e2f505743aa9e45d893f9a3df017b501
14624+
"undici-types@npm:~6.19.2":
14625+
version: 6.19.8
14626+
resolution: "undici-types@npm:6.19.8"
14627+
checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344
1462814628
languageName: node
1462914629
linkType: hard
1463014630

0 commit comments

Comments
 (0)