@angular-devkit/build-angular 19.1.6 → 19.2.0-next.0
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 +17 -17
- package/src/builders/browser/index.d.ts +1 -1
- package/src/builders/browser-esbuild/index.d.ts +1 -1
- package/src/builders/dev-server/builder.js +0 -7
- package/src/builders/dev-server/index.d.ts +1 -1
- package/src/builders/dev-server/schema.d.ts +4 -2
- package/src/builders/dev-server/schema.json +2 -2
- package/src/builders/extract-i18n/index.d.ts +1 -1
- package/src/builders/jest/index.d.ts +1 -1
- package/src/builders/ng-packagr/index.d.ts +1 -1
- package/src/builders/prerender/index.d.ts +1 -1
- package/src/builders/protractor-error/index.d.ts +1 -1
- package/src/builders/server/index.d.ts +1 -1
- package/src/builders/web-test-runner/index.d.ts +1 -1
- package/src/tools/webpack/plugins/typescript.js +0 -3
- package/src/utils/normalize-cache.js +1 -1
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0-next.0",
|
|
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": "19.
|
|
13
|
-
"@angular/build": "19.
|
|
10
|
+
"@angular-devkit/architect": "0.1902.0-next.0",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1902.0-next.0",
|
|
12
|
+
"@angular-devkit/core": "19.2.0-next.0",
|
|
13
|
+
"@angular/build": "19.2.0-next.0",
|
|
14
14
|
"@babel/core": "7.26.0",
|
|
15
|
-
"@babel/generator": "7.26.
|
|
15
|
+
"@babel/generator": "7.26.5",
|
|
16
16
|
"@babel/helper-annotate-as-pure": "7.25.9",
|
|
17
17
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
18
18
|
"@babel/plugin-transform-async-generator-functions": "7.25.9",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@babel/preset-env": "7.26.0",
|
|
22
22
|
"@babel/runtime": "7.26.0",
|
|
23
23
|
"@discoveryjs/json-ext": "0.6.3",
|
|
24
|
-
"@ngtools/webpack": "19.
|
|
24
|
+
"@ngtools/webpack": "19.2.0-next.0",
|
|
25
25
|
"@vitejs/plugin-basic-ssl": "1.2.0",
|
|
26
26
|
"ansi-colors": "4.1.3",
|
|
27
27
|
"autoprefixer": "10.4.20",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"istanbul-lib-instrument": "6.0.3",
|
|
36
36
|
"jsonc-parser": "3.3.1",
|
|
37
37
|
"karma-source-map-support": "1.4.0",
|
|
38
|
-
"less": "4.2.
|
|
38
|
+
"less": "4.2.2",
|
|
39
39
|
"less-loader": "12.2.0",
|
|
40
40
|
"license-webpack-plugin": "4.0.2",
|
|
41
41
|
"loader-utils": "3.3.1",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"ora": "5.4.1",
|
|
45
45
|
"picomatch": "4.0.2",
|
|
46
46
|
"piscina": "4.8.0",
|
|
47
|
-
"postcss": "8.
|
|
47
|
+
"postcss": "8.5.1",
|
|
48
48
|
"postcss-loader": "8.1.1",
|
|
49
49
|
"resolve-url-loader": "5.0.0",
|
|
50
50
|
"rxjs": "7.8.1",
|
|
51
|
-
"sass": "1.83.
|
|
51
|
+
"sass": "1.83.4",
|
|
52
52
|
"sass-loader": "16.0.4",
|
|
53
53
|
"semver": "7.6.3",
|
|
54
54
|
"source-map-loader": "5.0.0",
|
|
@@ -66,19 +66,19 @@
|
|
|
66
66
|
"esbuild": "0.24.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@angular/compiler-cli": "^19.0.0",
|
|
70
|
-
"@angular/localize": "^19.0.0",
|
|
71
|
-
"@angular/platform-server": "^19.0.0",
|
|
72
|
-
"@angular/service-worker": "^19.0.0",
|
|
73
|
-
"@angular/ssr": "^19.
|
|
69
|
+
"@angular/compiler-cli": "^19.0.0 || ^19.2.0-next.0",
|
|
70
|
+
"@angular/localize": "^19.0.0 || ^19.2.0-next.0",
|
|
71
|
+
"@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
|
|
72
|
+
"@angular/service-worker": "^19.0.0 || ^19.2.0-next.0",
|
|
73
|
+
"@angular/ssr": "^19.2.0-next.0",
|
|
74
74
|
"@web/test-runner": "^0.19.0",
|
|
75
75
|
"browser-sync": "^3.0.2",
|
|
76
76
|
"jest": "^29.5.0",
|
|
77
77
|
"jest-environment-jsdom": "^29.5.0",
|
|
78
78
|
"karma": "^6.3.0",
|
|
79
|
-
"ng-packagr": "^19.0.0",
|
|
79
|
+
"ng-packagr": "^19.0.0 || ^19.2.0-next.0",
|
|
80
80
|
"protractor": "^7.0.0",
|
|
81
|
-
"tailwindcss": "^2.0.0 || ^3.0.0
|
|
81
|
+
"tailwindcss": "^2.0.0 || ^3.0.0",
|
|
82
82
|
"typescript": ">=5.5 <5.8"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
@@ -38,5 +38,5 @@ export declare function buildWebpackBrowser(options: BrowserBuilderSchema, conte
|
|
|
38
38
|
logging?: WebpackLoggingCallback;
|
|
39
39
|
indexHtml?: IndexHtmlTransform;
|
|
40
40
|
}): Observable<BrowserBuilderOutput>;
|
|
41
|
-
declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderSchema & import("
|
|
41
|
+
declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderSchema & import("../../../../core").JsonObject>;
|
|
42
42
|
export default _default;
|
|
@@ -24,5 +24,5 @@ export declare function buildEsbuildBrowser(userOptions: BrowserBuilderOptions,
|
|
|
24
24
|
export declare function convertBrowserOptions(options: BrowserBuilderOptions): Omit<ApplicationBuilderOptions, 'outputPath'> & {
|
|
25
25
|
outputPath: OutputPathClass;
|
|
26
26
|
};
|
|
27
|
-
declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderOptions & import("
|
|
27
|
+
declare const _default: import("@angular-devkit/architect").Builder<BrowserBuilderOptions & import("../../../../core").JsonObject>;
|
|
28
28
|
export default _default;
|
|
@@ -84,13 +84,6 @@ function execute(options, context, transforms = {}, extensions) {
|
|
|
84
84
|
}
|
|
85
85
|
// New build system defaults hmr option to the value of liveReload
|
|
86
86
|
normalizedOptions.hmr ??= normalizedOptions.liveReload;
|
|
87
|
-
// New build system uses Vite's allowedHost option convention of true for disabling host checks
|
|
88
|
-
if (normalizedOptions.disableHostCheck) {
|
|
89
|
-
normalizedOptions.allowedHosts = true;
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
normalizedOptions.allowedHosts ??= [];
|
|
93
|
-
}
|
|
94
87
|
return (0, rxjs_1.defer)(() => Promise.all([Promise.resolve().then(() => __importStar(require('@angular/build/private'))), Promise.resolve().then(() => __importStar(require('../browser-esbuild')))])).pipe((0, rxjs_1.switchMap)(([{ serveWithVite, buildApplicationInternal }, { convertBrowserOptions }]) => serveWithVite(normalizedOptions, builderName, (options, context, codePlugins) => {
|
|
95
88
|
return builderName === '@angular-devkit/build-angular:browser-esbuild'
|
|
96
89
|
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -9,6 +9,6 @@ import { DevServerBuilderOutput } from '@angular/build';
|
|
|
9
9
|
import { execute } from './builder';
|
|
10
10
|
import { Schema as DevServerBuilderOptions } from './schema';
|
|
11
11
|
export { type DevServerBuilderOptions, type DevServerBuilderOutput, execute as executeDevServerBuilder, };
|
|
12
|
-
declare const _default: import("@angular-devkit/architect").Builder<DevServerBuilderOptions & import("
|
|
12
|
+
declare const _default: import("@angular-devkit/architect").Builder<DevServerBuilderOptions & import("../../../../core").JsonObject>;
|
|
13
13
|
export default _default;
|
|
14
14
|
export { execute as executeDevServer };
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type Schema = {
|
|
5
5
|
/**
|
|
6
|
-
* List of hosts that are allowed to access the dev server.
|
|
6
|
+
* List of hosts that are allowed to access the dev server. This option has no effect when
|
|
7
|
+
* using the 'application' or other esbuild-based builders.
|
|
7
8
|
*/
|
|
8
9
|
allowedHosts?: string[];
|
|
9
10
|
/**
|
|
@@ -13,7 +14,8 @@ export type Schema = {
|
|
|
13
14
|
*/
|
|
14
15
|
buildTarget: string;
|
|
15
16
|
/**
|
|
16
|
-
* Don't verify connected clients are part of allowed hosts.
|
|
17
|
+
* Don't verify connected clients are part of allowed hosts. This option has no effect when
|
|
18
|
+
* using the 'application' or other esbuild-based builders.
|
|
17
19
|
*/
|
|
18
20
|
disableHostCheck?: boolean;
|
|
19
21
|
/**
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"allowedHosts": {
|
|
69
69
|
"type": "array",
|
|
70
|
-
"description": "List of hosts that are allowed to access the dev server.",
|
|
70
|
+
"description": "List of hosts that are allowed to access the dev server. This option has no effect when using the 'application' or other esbuild-based builders.",
|
|
71
71
|
"default": [],
|
|
72
72
|
"items": {
|
|
73
73
|
"type": "string"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"disableHostCheck": {
|
|
81
81
|
"type": "boolean",
|
|
82
|
-
"description": "Don't verify connected clients are part of allowed hosts.",
|
|
82
|
+
"description": "Don't verify connected clients are part of allowed hosts. This option has no effect when using the 'application' or other esbuild-based builders.",
|
|
83
83
|
"default": false
|
|
84
84
|
},
|
|
85
85
|
"hmr": {
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
import { execute } from './builder';
|
|
9
9
|
import type { Schema as ExtractI18nBuilderOptions } from './schema';
|
|
10
10
|
export { ExtractI18nBuilderOptions, execute };
|
|
11
|
-
declare const _default: import("@angular-devkit/architect").Builder<ExtractI18nBuilderOptions & import("
|
|
11
|
+
declare const _default: import("@angular-devkit/architect").Builder<ExtractI18nBuilderOptions & import("../../../../core").JsonObject>;
|
|
12
12
|
export default _default;
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Schema as JestBuilderSchema } from './schema';
|
|
9
9
|
/** Main execution function for the Jest builder. */
|
|
10
|
-
declare const _default: import("@angular-devkit/architect").Builder<JestBuilderSchema & import("
|
|
10
|
+
declare const _default: import("@angular-devkit/architect").Builder<JestBuilderSchema & import("../../../../core").JsonObject>;
|
|
11
11
|
export default _default;
|
|
@@ -13,5 +13,5 @@ import { Schema as NgPackagrBuilderOptions } from './schema';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function execute(options: NgPackagrBuilderOptions, context: BuilderContext): Observable<BuilderOutput>;
|
|
15
15
|
export type { NgPackagrBuilderOptions };
|
|
16
|
-
declare const _default: import("@angular-devkit/architect").Builder<Record<string, string> & NgPackagrBuilderOptions & import("
|
|
16
|
+
declare const _default: import("@angular-devkit/architect").Builder<Record<string, string> & NgPackagrBuilderOptions & import("../../../../core").JsonObject>;
|
|
17
17
|
export default _default;
|
|
@@ -15,5 +15,5 @@ type PrerenderBuilderOutput = BuilderOutput;
|
|
|
15
15
|
* the browser result.
|
|
16
16
|
*/
|
|
17
17
|
export declare function execute(options: PrerenderBuilderOptions, context: BuilderContext): Promise<PrerenderBuilderOutput>;
|
|
18
|
-
declare const _default: import("@angular-devkit/architect").Builder<Schema & import("
|
|
18
|
+
declare const _default: import("@angular-devkit/architect").Builder<Schema & import("../../../../core").JsonObject>;
|
|
19
19
|
export default _default;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Schema as ProtractorBuilderOptions } from '../protractor/schema';
|
|
9
|
-
declare const _default: import("@angular-devkit/architect").Builder<ProtractorBuilderOptions & import("
|
|
9
|
+
declare const _default: import("@angular-devkit/architect").Builder<ProtractorBuilderOptions & import("../../../../core").JsonObject>;
|
|
10
10
|
export default _default;
|
|
@@ -28,5 +28,5 @@ export type { ServerBuilderOptions };
|
|
|
28
28
|
export declare function execute(options: ServerBuilderOptions, context: BuilderContext, transforms?: {
|
|
29
29
|
webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
|
|
30
30
|
}): Observable<ServerBuilderOutput>;
|
|
31
|
-
declare const _default: import("@angular-devkit/architect").Builder<ServerBuilderOptions & import("
|
|
31
|
+
declare const _default: import("@angular-devkit/architect").Builder<ServerBuilderOptions & import("../../../../core").JsonObject>;
|
|
32
32
|
export default _default;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Schema } from './schema';
|
|
9
|
-
declare const _default: import("@angular-devkit/architect").Builder<Schema & import("
|
|
9
|
+
declare const _default: import("@angular-devkit/architect").Builder<Schema & import("../../../../core").JsonObject>;
|
|
10
10
|
export default _default;
|
|
@@ -17,9 +17,6 @@ function createIvyPlugin(wco, aot, tsconfig) {
|
|
|
17
17
|
sourceMap: buildOptions.sourceMap.scripts,
|
|
18
18
|
declaration: false,
|
|
19
19
|
declarationMap: false,
|
|
20
|
-
// Disable removing of comments as TS is quite aggressive with these and can
|
|
21
|
-
// remove important annotations, such as /* @__PURE__ */.
|
|
22
|
-
removeComments: false,
|
|
23
20
|
};
|
|
24
21
|
if (tsConfig.options.target === undefined || tsConfig.options.target < typescript_1.ScriptTarget.ES2022) {
|
|
25
22
|
compilerOptions.target = typescript_1.ScriptTarget.ES2022;
|
|
@@ -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 = '19.
|
|
13
|
+
const VERSION = '19.2.0-next.0';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|