@angular-devkit/build-angular 18.1.1 → 18.2.0-next.1
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,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.0-next.1",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
7
7
|
"builders": "builders.json",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@ampproject/remapping": "2.3.0",
|
|
10
|
-
"@angular-devkit/architect": "0.
|
|
11
|
-
"@angular-devkit/build-webpack": "0.
|
|
12
|
-
"@angular-devkit/core": "18.
|
|
13
|
-
"@angular/build": "18.
|
|
14
|
-
"@babel/core": "7.24.
|
|
15
|
-
"@babel/generator": "7.24.
|
|
10
|
+
"@angular-devkit/architect": "0.1802.0-next.1",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1802.0-next.1",
|
|
12
|
+
"@angular-devkit/core": "18.2.0-next.1",
|
|
13
|
+
"@angular/build": "18.2.0-next.1",
|
|
14
|
+
"@babel/core": "7.24.9",
|
|
15
|
+
"@babel/generator": "7.24.10",
|
|
16
16
|
"@babel/helper-annotate-as-pure": "7.24.7",
|
|
17
17
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
18
18
|
"@babel/plugin-transform-async-generator-functions": "7.24.7",
|
|
19
19
|
"@babel/plugin-transform-async-to-generator": "7.24.7",
|
|
20
20
|
"@babel/plugin-transform-runtime": "7.24.7",
|
|
21
|
-
"@babel/preset-env": "7.24.
|
|
22
|
-
"@babel/runtime": "7.24.
|
|
23
|
-
"@discoveryjs/json-ext": "0.
|
|
24
|
-
"@ngtools/webpack": "18.
|
|
21
|
+
"@babel/preset-env": "7.24.8",
|
|
22
|
+
"@babel/runtime": "7.24.8",
|
|
23
|
+
"@discoveryjs/json-ext": "0.6.0",
|
|
24
|
+
"@ngtools/webpack": "18.2.0-next.1",
|
|
25
25
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
26
26
|
"ansi-colors": "4.1.3",
|
|
27
27
|
"autoprefixer": "10.4.19",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"copy-webpack-plugin": "12.0.2",
|
|
31
31
|
"critters": "0.0.24",
|
|
32
32
|
"css-loader": "7.1.2",
|
|
33
|
-
"esbuild-wasm": "0.
|
|
33
|
+
"esbuild-wasm": "0.23.0",
|
|
34
34
|
"fast-glob": "3.3.2",
|
|
35
35
|
"http-proxy-middleware": "3.0.0",
|
|
36
36
|
"https-proxy-agent": "7.0.5",
|
|
37
|
-
"istanbul-lib-instrument": "6.0.
|
|
37
|
+
"istanbul-lib-instrument": "6.0.3",
|
|
38
38
|
"jsonc-parser": "3.3.1",
|
|
39
39
|
"karma-source-map-support": "1.4.0",
|
|
40
40
|
"less": "4.2.0",
|
|
@@ -49,41 +49,40 @@
|
|
|
49
49
|
"parse5-html-rewriting-stream": "7.0.0",
|
|
50
50
|
"picomatch": "4.0.2",
|
|
51
51
|
"piscina": "4.6.1",
|
|
52
|
-
"postcss": "8.4.
|
|
52
|
+
"postcss": "8.4.39",
|
|
53
53
|
"postcss-loader": "8.1.1",
|
|
54
54
|
"resolve-url-loader": "5.0.0",
|
|
55
55
|
"rxjs": "7.8.1",
|
|
56
|
-
"sass": "1.77.
|
|
56
|
+
"sass": "1.77.8",
|
|
57
57
|
"sass-loader": "14.2.1",
|
|
58
|
-
"semver": "7.6.
|
|
58
|
+
"semver": "7.6.3",
|
|
59
59
|
"source-map-loader": "5.0.0",
|
|
60
60
|
"source-map-support": "0.5.21",
|
|
61
|
-
"terser": "5.
|
|
61
|
+
"terser": "5.31.3",
|
|
62
62
|
"tree-kill": "1.2.2",
|
|
63
63
|
"tslib": "2.6.3",
|
|
64
|
-
"
|
|
65
|
-
"vite": "5.3.2",
|
|
64
|
+
"vite": "5.3.4",
|
|
66
65
|
"watchpack": "2.4.1",
|
|
67
|
-
"webpack": "5.
|
|
66
|
+
"webpack": "5.93.0",
|
|
68
67
|
"webpack-dev-middleware": "7.2.1",
|
|
69
68
|
"webpack-dev-server": "5.0.4",
|
|
70
|
-
"webpack-merge": "
|
|
69
|
+
"webpack-merge": "6.0.1",
|
|
71
70
|
"webpack-subresource-integrity": "5.1.0"
|
|
72
71
|
},
|
|
73
72
|
"optionalDependencies": {
|
|
74
|
-
"esbuild": "0.
|
|
73
|
+
"esbuild": "0.23.0"
|
|
75
74
|
},
|
|
76
75
|
"peerDependencies": {
|
|
77
|
-
"@angular/compiler-cli": "^18.0.0",
|
|
78
|
-
"@angular/localize": "^18.0.0",
|
|
79
|
-
"@angular/platform-server": "^18.0.0",
|
|
80
|
-
"@angular/service-worker": "^18.0.0",
|
|
76
|
+
"@angular/compiler-cli": "^18.0.0 || ^18.2.0-next.0",
|
|
77
|
+
"@angular/localize": "^18.0.0 || ^18.2.0-next.0",
|
|
78
|
+
"@angular/platform-server": "^18.0.0 || ^18.2.0-next.0",
|
|
79
|
+
"@angular/service-worker": "^18.0.0 || ^18.2.0-next.0",
|
|
81
80
|
"@web/test-runner": "^0.18.0",
|
|
82
81
|
"browser-sync": "^3.0.2",
|
|
83
82
|
"jest": "^29.5.0",
|
|
84
83
|
"jest-environment-jsdom": "^29.5.0",
|
|
85
84
|
"karma": "^6.3.0",
|
|
86
|
-
"ng-packagr": "^18.0.0",
|
|
85
|
+
"ng-packagr": "^18.0.0 || ^18.2.0-next.0",
|
|
87
86
|
"protractor": "^7.0.0",
|
|
88
87
|
"tailwindcss": "^2.0.0 || ^3.0.0",
|
|
89
88
|
"typescript": ">=5.4 <5.6"
|
|
@@ -139,12 +139,13 @@ async function createSerializer(localizeToolsModule, format, sourceLocale, baseP
|
|
|
139
139
|
case schema_1.Format.LegacyMigrate:
|
|
140
140
|
return new LegacyMessageIdMigrationSerializer(diagnostics);
|
|
141
141
|
case schema_1.Format.Arb:
|
|
142
|
-
|
|
142
|
+
return new ArbTranslationSerializer(sourceLocale,
|
|
143
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
144
|
+
basePath, {
|
|
143
145
|
relative(from, to) {
|
|
144
146
|
return node_path_1.default.relative(from, to);
|
|
145
147
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return new ArbTranslationSerializer(sourceLocale, basePath, fileSystem);
|
|
148
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
149
|
+
});
|
|
149
150
|
}
|
|
150
151
|
}
|
|
@@ -37,8 +37,8 @@ async function normalizeOptions(context, projectName, options) {
|
|
|
37
37
|
// Normalize xliff format extensions
|
|
38
38
|
let format = options.format;
|
|
39
39
|
switch (format) {
|
|
40
|
-
case undefined:
|
|
41
40
|
// Default format is xliff1
|
|
41
|
+
case undefined:
|
|
42
42
|
case schema_1.Format.Xlf:
|
|
43
43
|
case schema_1.Format.Xlif:
|
|
44
44
|
case schema_1.Format.Xliff:
|
|
@@ -153,8 +153,7 @@ exports.default = (0, babel_loader_1.custom)(() => {
|
|
|
153
153
|
case 'error':
|
|
154
154
|
this.emitError(message);
|
|
155
155
|
break;
|
|
156
|
-
case 'info':
|
|
157
|
-
// Webpack does not currently have an informational diagnostic
|
|
156
|
+
case 'info': // Webpack does not currently have an informational diagnostic
|
|
158
157
|
case 'warning':
|
|
159
158
|
this.emitWarning(message);
|
|
160
159
|
break;
|
|
@@ -31,8 +31,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.JsonStatsPlugin = void 0;
|
|
34
|
-
const
|
|
35
|
-
const
|
|
34
|
+
const node_fs_1 = require("node:fs");
|
|
35
|
+
const promises_1 = require("node:fs/promises");
|
|
36
|
+
const node_path_1 = require("node:path");
|
|
37
|
+
const promises_2 = require("node:stream/promises");
|
|
36
38
|
const error_1 = require("../../../utils/error");
|
|
37
39
|
const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
|
|
38
40
|
class JsonStatsPlugin {
|
|
@@ -42,14 +44,11 @@ class JsonStatsPlugin {
|
|
|
42
44
|
}
|
|
43
45
|
apply(compiler) {
|
|
44
46
|
compiler.hooks.done.tapPromise('angular-json-stats', async (stats) => {
|
|
45
|
-
const {
|
|
47
|
+
const { stringifyChunked } = await Promise.resolve().then(() => __importStar(require('@discoveryjs/json-ext')));
|
|
46
48
|
const data = stats.toJson('verbose');
|
|
47
49
|
try {
|
|
48
|
-
await
|
|
49
|
-
await
|
|
50
|
-
.pipe((0, fs_1.createWriteStream)(this.statsOutputPath))
|
|
51
|
-
.on('close', resolve)
|
|
52
|
-
.on('error', reject));
|
|
50
|
+
await (0, promises_1.mkdir)((0, node_path_1.dirname)(this.statsOutputPath), { recursive: true });
|
|
51
|
+
await (0, promises_2.pipeline)(stringifyChunked(data), (0, node_fs_1.createWriteStream)(this.statsOutputPath));
|
|
53
52
|
}
|
|
54
53
|
catch (error) {
|
|
55
54
|
(0, error_1.assertIsError)(error);
|
|
@@ -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 = '18.
|
|
13
|
+
const VERSION = '18.2.0-next.1';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|