@angular/build 20.3.13 → 20.3.15

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.13",
3
+ "version": "20.3.15",
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.13",
26
+ "@angular-devkit/architect": "0.2003.15",
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.13",
63
+ "@angular/ssr": "^20.3.15",
64
64
  "karma": "^6.4.0",
65
65
  "less": "^4.2.0",
66
66
  "ng-packagr": "^20.0.0",
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import type { OutputFile } from 'esbuild';
9
+ export declare const SERVER_APP_MANIFEST_FILENAME = "angular-app-manifest.mjs";
10
+ export declare const SERVER_APP_ENGINE_MANIFEST_FILENAME = "angular-app-engine-manifest.mjs";
11
+ export interface BuildOutputAsset {
12
+ source: string;
13
+ destination: string;
14
+ }
15
+ export interface InitialFileRecord {
16
+ entrypoint: boolean;
17
+ name?: string;
18
+ type: 'script' | 'style';
19
+ external?: boolean;
20
+ serverFile: boolean;
21
+ depth: number;
22
+ }
23
+ export declare enum BuildOutputFileType {
24
+ Browser = 0,
25
+ Media = 1,
26
+ ServerApplication = 2,
27
+ ServerRoot = 3,
28
+ Root = 4
29
+ }
30
+ export interface BuildOutputFile extends OutputFile {
31
+ type: BuildOutputFileType;
32
+ readonly size: number;
33
+ clone: () => BuildOutputFile;
34
+ }
35
+ export type PrerenderedRoutesRecord = Record<string, {
36
+ headers?: Record<string, string>;
37
+ }>;
38
+ /**
39
+ * A set of server-generated dependencies that are treated as external.
40
+ *
41
+ * These dependencies are marked as external because they are produced by a
42
+ * separate bundling process and are not included in the primary bundle. This
43
+ * ensures that these generated files are resolved from an external source rather
44
+ * than being part of the main bundle.
45
+ */
46
+ export declare const SERVER_GENERATED_EXTERNALS: Set<string>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SERVER_GENERATED_EXTERNALS = exports.BuildOutputFileType = exports.SERVER_APP_ENGINE_MANIFEST_FILENAME = exports.SERVER_APP_MANIFEST_FILENAME = void 0;
11
+ exports.SERVER_APP_MANIFEST_FILENAME = 'angular-app-manifest.mjs';
12
+ exports.SERVER_APP_ENGINE_MANIFEST_FILENAME = 'angular-app-engine-manifest.mjs';
13
+ var BuildOutputFileType;
14
+ (function (BuildOutputFileType) {
15
+ BuildOutputFileType[BuildOutputFileType["Browser"] = 0] = "Browser";
16
+ BuildOutputFileType[BuildOutputFileType["Media"] = 1] = "Media";
17
+ BuildOutputFileType[BuildOutputFileType["ServerApplication"] = 2] = "ServerApplication";
18
+ BuildOutputFileType[BuildOutputFileType["ServerRoot"] = 3] = "ServerRoot";
19
+ BuildOutputFileType[BuildOutputFileType["Root"] = 4] = "Root";
20
+ })(BuildOutputFileType || (exports.BuildOutputFileType = BuildOutputFileType = {}));
21
+ /**
22
+ * A set of server-generated dependencies that are treated as external.
23
+ *
24
+ * These dependencies are marked as external because they are produced by a
25
+ * separate bundling process and are not included in the primary bundle. This
26
+ * ensures that these generated files are resolved from an external source rather
27
+ * than being part of the main bundle.
28
+ */
29
+ exports.SERVER_GENERATED_EXTERNALS = new Set([
30
+ './polyfills.server.mjs',
31
+ './' + exports.SERVER_APP_MANIFEST_FILENAME,
32
+ './' + exports.SERVER_APP_ENGINE_MANIFEST_FILENAME,
33
+ ]);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import type { OutputFile } from 'esbuild';
9
+ import type { BuildOutputFile } from './esbuild-definitions';
10
+ import { BuildOutputFileType } from './esbuild-definitions';
11
+ export declare function createOutputFile(path: string, data: string | Uint8Array, type: BuildOutputFileType): BuildOutputFile;
12
+ export declare function convertOutputFile(file: OutputFile, type: BuildOutputFileType): BuildOutputFile;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.createOutputFile = createOutputFile;
11
+ exports.convertOutputFile = convertOutputFile;
12
+ const node_crypto_1 = require("node:crypto");
13
+ function createOutputFile(path, data, type) {
14
+ if (typeof data === 'string') {
15
+ let cachedContents = null;
16
+ let cachedText = data;
17
+ let cachedHash = null;
18
+ return {
19
+ path,
20
+ type,
21
+ get contents() {
22
+ cachedContents ??= new TextEncoder().encode(data);
23
+ return cachedContents;
24
+ },
25
+ set contents(value) {
26
+ cachedContents = value;
27
+ cachedText = null;
28
+ },
29
+ get text() {
30
+ cachedText ??= new TextDecoder('utf-8').decode(this.contents);
31
+ return cachedText;
32
+ },
33
+ get size() {
34
+ return this.contents.byteLength;
35
+ },
36
+ get hash() {
37
+ cachedHash ??= (0, node_crypto_1.createHash)('sha256')
38
+ .update(cachedText ?? this.contents)
39
+ .digest('hex');
40
+ return cachedHash;
41
+ },
42
+ clone() {
43
+ return createOutputFile(this.path, cachedText ?? this.contents, this.type);
44
+ },
45
+ };
46
+ }
47
+ else {
48
+ let cachedContents = data;
49
+ let cachedText = null;
50
+ let cachedHash = null;
51
+ return {
52
+ get contents() {
53
+ return cachedContents;
54
+ },
55
+ set contents(value) {
56
+ cachedContents = value;
57
+ cachedText = null;
58
+ },
59
+ path,
60
+ type,
61
+ get size() {
62
+ return this.contents.byteLength;
63
+ },
64
+ get text() {
65
+ cachedText ??= new TextDecoder('utf-8').decode(this.contents);
66
+ return cachedText;
67
+ },
68
+ get hash() {
69
+ cachedHash ??= (0, node_crypto_1.createHash)('sha256').update(this.contents).digest('hex');
70
+ return cachedHash;
71
+ },
72
+ clone() {
73
+ return createOutputFile(this.path, this.contents, this.type);
74
+ },
75
+ };
76
+ }
77
+ }
78
+ function convertOutputFile(file, type) {
79
+ let { contents: cachedContents } = file;
80
+ let cachedText = null;
81
+ return {
82
+ get contents() {
83
+ return cachedContents;
84
+ },
85
+ set contents(value) {
86
+ cachedContents = value;
87
+ cachedText = null;
88
+ },
89
+ hash: file.hash,
90
+ path: file.path,
91
+ type,
92
+ get size() {
93
+ return this.contents.byteLength;
94
+ },
95
+ get text() {
96
+ cachedText ??= new TextDecoder('utf-8').decode(this.contents);
97
+ return cachedText;
98
+ },
99
+ clone() {
100
+ return convertOutputFile(this, this.type);
101
+ },
102
+ };
103
+ }
@@ -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';
13
+ const VERSION = '20.3.15';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&