@angular/build 20.0.5 → 20.0.6
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.0.
|
|
3
|
+
"version": "20.0.6",
|
|
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.2000.
|
|
26
|
+
"@angular-devkit/architect": "0.2000.6",
|
|
27
27
|
"@babel/core": "7.27.1",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "7.27.1",
|
|
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.0.
|
|
63
|
+
"@angular/ssr": "^20.0.6",
|
|
64
64
|
"karma": "^6.4.0",
|
|
65
65
|
"less": "^4.2.0",
|
|
66
66
|
"ng-packagr": "^20.0.0",
|
|
@@ -86,13 +86,16 @@ class AngularAssetsMiddleware {
|
|
|
86
86
|
next();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
+
// Implementation of serverFile can be found here:
|
|
90
|
+
// https://github.com/karma-runner/karma/blob/84f85e7016efc2266fa6b3465f494a3fa151c85c/lib/middleware/common.js#L10
|
|
89
91
|
switch (file.origin) {
|
|
90
92
|
case 'disk':
|
|
91
93
|
this.serveFile(file.inputPath, undefined, res, undefined, undefined, /* doNotCache */ true);
|
|
92
94
|
break;
|
|
93
95
|
case 'memory':
|
|
94
96
|
// Include pathname to help with Content-Type headers.
|
|
95
|
-
this.serveFile(`/unused/${url.pathname}`, undefined, res, undefined, file.contents,
|
|
97
|
+
this.serveFile(`/unused/${url.pathname}`, undefined, res, undefined, file.contents,
|
|
98
|
+
/* doNotCache */ false);
|
|
96
99
|
break;
|
|
97
100
|
}
|
|
98
101
|
}
|
|
@@ -410,6 +413,7 @@ async function initializeApplication(options, context, karmaOptions, transforms
|
|
|
410
413
|
scriptsFiles.push({
|
|
411
414
|
pattern: `${outputPath}/${outputName}`,
|
|
412
415
|
watched: false,
|
|
416
|
+
included: typeof scriptEntry === 'string' ? true : scriptEntry.inject !== false,
|
|
413
417
|
type: 'js',
|
|
414
418
|
});
|
|
415
419
|
}
|
|
@@ -107,9 +107,6 @@ function getBuiltInKarmaConfig(workspaceRoot, projectName) {
|
|
|
107
107
|
'karma-jasmine-html-reporter',
|
|
108
108
|
'karma-coverage',
|
|
109
109
|
].map((p) => workspaceRootRequire(p)),
|
|
110
|
-
proxies: {
|
|
111
|
-
'/': '/base/',
|
|
112
|
-
},
|
|
113
110
|
jasmineHtmlReporter: {
|
|
114
111
|
suppressAll: true, // removes the duplicated traces
|
|
115
112
|
},
|
|
@@ -96,7 +96,11 @@ async function* execute(options, context, extensions = {}) {
|
|
|
96
96
|
optimization: false,
|
|
97
97
|
tsConfig: normalizedOptions.tsConfig,
|
|
98
98
|
entryPoints,
|
|
99
|
-
externalDependencies: [
|
|
99
|
+
externalDependencies: [
|
|
100
|
+
'vitest',
|
|
101
|
+
'@vitest/browser/context',
|
|
102
|
+
...(buildTargetOptions.externalDependencies ?? []),
|
|
103
|
+
],
|
|
100
104
|
};
|
|
101
105
|
extensions ??= {};
|
|
102
106
|
extensions.codePlugins ??= [];
|
|
@@ -55,9 +55,12 @@ function convertTypeScriptDiagnosticInfo(typescript, info, textPrefix) {
|
|
|
55
55
|
function convertTypeScriptDiagnostic(typescript, diagnostic) {
|
|
56
56
|
let codePrefix = 'TS';
|
|
57
57
|
let code = `${diagnostic.code}`;
|
|
58
|
-
|
|
58
|
+
// Custom ngtsc diagnostics are prefixed with -99 which isn't a valid TypeScript diagnostic code.
|
|
59
|
+
// Strip it and mark the diagnostic as coming from Angular. Note that we can't rely on
|
|
60
|
+
// `diagnostic.source`, because it isn't always produced. This is identical to:
|
|
61
|
+
// https://github.com/angular/angular/blob/main/packages/compiler-cli/src/ngtsc/diagnostics/src/util.ts
|
|
62
|
+
if (code.startsWith('-99')) {
|
|
59
63
|
codePrefix = 'NG';
|
|
60
|
-
// Remove `-99` Angular prefix from diagnostic code
|
|
61
64
|
code = code.slice(3);
|
|
62
65
|
}
|
|
63
66
|
const message = convertTypeScriptDiagnosticInfo(typescript, diagnostic, `${codePrefix}${code}: `);
|
|
@@ -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.0.
|
|
13
|
+
const VERSION = '20.0.6';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|