Skip to content

Commit ccda2c6

Browse files
author
Angular Builds
committed
787e510 fix(@angular/cli): update min Node.js support to 20.19, 22.12, and 24.0
1 parent d872300 commit ccda2c6

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "20.0.0-rc.2+sha-aec9504",
3+
"version": "20.0.0-rc.2+sha-787e510",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
@@ -138,7 +138,7 @@
138138
},
139139
"packageManager": "[email protected]",
140140
"engines": {
141-
"node": "^20.11.1 || ^22.11.0 || >=24.0.0",
141+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
142142
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
143143
"yarn": ">= 1.13.0"
144144
},

src/tools/webpack/configs/dev-server.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async function addProxyConfig(root, proxyConfig) {
192192
// Load the ESM configuration file using the TypeScript dynamic import workaround.
193193
// Once TypeScript provides support for keeping the dynamic import this workaround can be
194194
// changed to a direct dynamic import.
195-
proxyConfiguration = (await (0, load_esm_1.loadEsmModule)((0, node_url_1.pathToFileURL)(proxyPath))).default;
195+
proxyConfiguration = await (0, load_esm_1.loadEsmModule)((0, node_url_1.pathToFileURL)(proxyPath));
196196
break;
197197
case '.cjs':
198198
proxyConfiguration = require(proxyPath);
@@ -211,9 +211,12 @@ async function addProxyConfig(root, proxyConfig) {
211211
// Load the ESM configuration file using the TypeScript dynamic import workaround.
212212
// Once TypeScript provides support for keeping the dynamic import this workaround can be
213213
// changed to a direct dynamic import.
214-
proxyConfiguration = (await (0, load_esm_1.loadEsmModule)((0, node_url_1.pathToFileURL)(proxyPath))).default;
214+
proxyConfiguration = await (0, load_esm_1.loadEsmModule)((0, node_url_1.pathToFileURL)(proxyPath));
215215
}
216216
}
217+
if ('default' in proxyConfiguration) {
218+
proxyConfiguration = proxyConfiguration.default;
219+
}
217220
return normalizeProxyConfiguration(proxyConfiguration);
218221
}
219222
/**

src/utils/normalize-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1010
exports.normalizeCacheOptions = normalizeCacheOptions;
1111
const node_path_1 = require("node:path");
1212
/** Version placeholder is replaced during the build process with actual package version */
13-
const VERSION = '20.0.0-rc.2+sha-aec9504';
13+
const VERSION = '20.0.0-rc.2+sha-787e510';
1414
function hasCacheMetadata(value) {
1515
return (!!value &&
1616
typeof value === 'object' &&

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Mon May 19 2025 17:25:04 GMT+0000 (Coordinated Universal Time)
1+
Tue May 20 2025 12:38:58 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)