@angular-devkit/build-angular 18.2.11 → 18.2.13

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,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "18.2.11",
3
+ "version": "18.2.13",
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.1802.11",
11
- "@angular-devkit/build-webpack": "0.1802.11",
12
- "@angular-devkit/core": "18.2.11",
13
- "@angular/build": "18.2.11",
10
+ "@angular-devkit/architect": "0.1802.13",
11
+ "@angular-devkit/build-webpack": "0.1802.13",
12
+ "@angular-devkit/core": "18.2.13",
13
+ "@angular/build": "18.2.13",
14
14
  "@babel/core": "7.25.2",
15
15
  "@babel/generator": "7.25.0",
16
16
  "@babel/helper-annotate-as-pure": "7.24.7",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.25.3",
22
22
  "@babel/runtime": "7.25.0",
23
23
  "@discoveryjs/json-ext": "0.6.1",
24
- "@ngtools/webpack": "18.2.11",
24
+ "@ngtools/webpack": "18.2.13",
25
25
  "@vitejs/plugin-basic-ssl": "1.1.0",
26
26
  "ansi-colors": "4.1.3",
27
27
  "autoprefixer": "10.4.20",
@@ -72,6 +72,13 @@ function execute(options, context, transforms = {}, extensions) {
72
72
  if (options.disableHostCheck) {
73
73
  context.logger.warn(`The "disableHostCheck" option will not be used because it is not supported by the "${builderName}" builder.`);
74
74
  }
75
+ // New build system uses Vite's allowedHost option convention of true for disabling host checks
76
+ if (normalizedOptions.disableHostCheck) {
77
+ normalizedOptions.allowedHosts = true;
78
+ }
79
+ else {
80
+ normalizedOptions.allowedHosts ??= [];
81
+ }
75
82
  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) => {
76
83
  return builderName === '@angular-devkit/build-angular:browser-esbuild'
77
84
  ? // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -3,8 +3,7 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
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.
6
+ * List of hosts that are allowed to access the dev server.
8
7
  */
9
8
  allowedHosts?: string[];
10
9
  /**
@@ -21,8 +20,7 @@ export interface Schema {
21
20
  */
22
21
  buildTarget?: string;
23
22
  /**
24
- * Don't verify connected clients are part of allowed hosts. This option has no effect when
25
- * using the 'application' or other esbuild-based builders.
23
+ * Don't verify connected clients are part of allowed hosts.
26
24
  */
27
25
  disableHostCheck?: boolean;
28
26
  /**
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "allowedHosts": {
75
75
  "type": "array",
76
- "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.",
76
+ "description": "List of hosts that are allowed to access the dev server.",
77
77
  "default": [],
78
78
  "items": {
79
79
  "type": "string"
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "disableHostCheck": {
87
87
  "type": "boolean",
88
- "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.",
88
+ "description": "Don't verify connected clients are part of allowed hosts.",
89
89
  "default": false
90
90
  },
91
91
  "hmr": {
@@ -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.2.11';
13
+ const VERSION = '18.2.13';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&