@angular/build 20.3.10 → 20.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/build",
|
|
3
|
-
"version": "20.3.
|
|
3
|
+
"version": "20.3.11",
|
|
4
4
|
"description": "Official build system for Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular CLI",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"builders": "builders.json",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ampproject/remapping": "2.3.0",
|
|
26
|
-
"@angular-devkit/architect": "0.2003.
|
|
26
|
+
"@angular-devkit/architect": "0.2003.11",
|
|
27
27
|
"@babel/core": "7.28.3",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "7.27.3",
|
|
29
29
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@angular/platform-browser": "^20.0.0",
|
|
61
61
|
"@angular/platform-server": "^20.0.0",
|
|
62
62
|
"@angular/service-worker": "^20.0.0",
|
|
63
|
-
"@angular/ssr": "^20.3.
|
|
63
|
+
"@angular/ssr": "^20.3.11",
|
|
64
64
|
"karma": "^6.4.0",
|
|
65
65
|
"less": "^4.2.0",
|
|
66
66
|
"ng-packagr": "^20.0.0",
|
|
@@ -423,9 +423,10 @@ async function invalidateUpdatedFiles(normalizePath, generatedFiles, assetFiles,
|
|
|
423
423
|
updatedModules?.forEach((m) => server.moduleGraph.invalidateModule(m));
|
|
424
424
|
}
|
|
425
425
|
if (serverApplicationChanged) {
|
|
426
|
-
// Clear the server app cache and
|
|
427
|
-
//
|
|
428
|
-
|
|
426
|
+
// Clear the server app cache and trigger module evaluation before reload to initiate dependency optimization.
|
|
427
|
+
// The querystring is needed as a workaround for:
|
|
428
|
+
// `ɵgetOrCreateAngularServerApp` can be undefined right after an error.
|
|
429
|
+
const { ɵdestroyAngularServerApp } = (await server.ssrLoadModule(`/main.server.mjs?timestamp=${Date.now()}`));
|
|
429
430
|
ɵdestroyAngularServerApp();
|
|
430
431
|
}
|
|
431
432
|
return updatedFiles;
|
|
@@ -23,11 +23,6 @@ function createAngularSsrInternalMiddleware(server, indexHtmlTransformer) {
|
|
|
23
23
|
await (0, load_esm_1.loadEsmModule)('@angular/compiler');
|
|
24
24
|
const { writeResponseToNodeResponse, createWebRequestFromNodeRequest } = await (0, load_esm_1.loadEsmModule)('@angular/ssr/node');
|
|
25
25
|
const { ɵgetOrCreateAngularServerApp } = (await server.ssrLoadModule('/main.server.mjs'));
|
|
26
|
-
// `ɵgetOrCreateAngularServerApp` can be undefined right after an error.
|
|
27
|
-
// See: https://github.com/angular/angular-cli/issues/29907
|
|
28
|
-
if (!ɵgetOrCreateAngularServerApp) {
|
|
29
|
-
return next();
|
|
30
|
-
}
|
|
31
26
|
const angularServerApp = ɵgetOrCreateAngularServerApp({
|
|
32
27
|
allowStaticRouteRender: true,
|
|
33
28
|
});
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.normalizeCacheOptions = normalizeCacheOptions;
|
|
11
11
|
const node_path_1 = require("node:path");
|
|
12
12
|
/** Version placeholder is replaced during the build process with actual package version */
|
|
13
|
-
const VERSION = '20.3.
|
|
13
|
+
const VERSION = '20.3.11';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|