Skip to content

Commit 30242dd

Browse files
committed
build: update minimum supported Node.js versions
This commit updates the minimum supported Node.js versions. Node.js v20 support is dropped, and the minimum version for Node.js v22 is bumped to v22.22.0, and for v24 it is bumped to v24.13.1. The 'undici' dependency has been removed from '@angular/build' as we can now rely on native Node.js APIs for SSL certificate handling in newer Node versions. BREAKING CHANGE: Node.js v20 is no longer supported. The minimum supported Node.js versions are now v22.22.0 and v24.13.1.
1 parent a1d51c7 commit 30242dd

File tree

12 files changed

+32
-204
lines changed

12 files changed

+32
-204
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
strategy:
7979
fail-fast: false
8080
matrix:
81-
node: [20, 22, 24]
81+
node: [22, 24]
8282
subset: [esbuild, webpack]
8383
shard: [0, 1, 2, 3, 4, 5]
8484
runs-on: ubuntu-latest

MODULE.bazel

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,19 @@ use_repo(
6868

6969
node_dev = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
7070

71-
# Node.js 20
72-
node_dev.toolchain(
73-
name = "node20",
74-
node_version = "20.19.0",
75-
)
76-
7771
# Node.js 22
7872
node_dev.toolchain(
7973
name = "node22",
80-
node_version = "22.12.0",
74+
node_version = "22.22.0",
8175
)
8276

8377
# Node.js 24
8478
node_dev.toolchain(
8579
name = "node24",
86-
node_version = "24.0.0",
80+
node_version = "24.13.1",
8781
)
8882
use_repo(
8983
node_dev,
90-
"node20_darwin_amd64",
91-
"node20_darwin_arm64",
92-
"node20_linux_amd64",
93-
"node20_linux_arm64",
94-
"node20_toolchains",
95-
"node20_windows_amd64",
9684
"node22_darwin_amd64",
9785
"node22_darwin_arm64",
9886
"node22_linux_amd64",

MODULE.bazel.lock

Lines changed: 17 additions & 139 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constants.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Engine versions to stamp in a release package.json
2-
RELEASE_ENGINES_NODE = "^20.19.0 || ^22.12.0 || >=24.0.0"
2+
RELEASE_ENGINES_NODE = "^22.22.0 || >=24.13.1"
33
RELEASE_ENGINES_NPM = "^6.11.0 || ^7.5.6 || >=8.0.0"
44
RELEASE_ENGINES_YARN = ">= 1.13.0"
55

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"packageManager": "pnpm@10.30.0",
3232
"engines": {
33-
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
33+
"node": "^22.22.0 || >=24.13.1",
3434
"npm": "Please use pnpm instead of NPM to install dependencies",
3535
"yarn": "Please use pnpm instead of Yarn to install dependencies",
3636
"pnpm": "10.30.0"

packages/angular/build/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ ts_project(
105105
":node_modules/sass",
106106
":node_modules/source-map-support",
107107
":node_modules/tinyglobby",
108-
":node_modules/undici",
109108
":node_modules/vite",
110109
":node_modules/vitest",
111110
":node_modules/watchpack",

packages/angular/build/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"semver": "7.7.4",
4343
"source-map-support": "0.5.21",
4444
"tinyglobby": "0.2.15",
45-
"undici": "7.22.0",
4645
"vite": "7.3.1",
4746
"watchpack": "2.5.1"
4847
},

0 commit comments

Comments
 (0)