@angular/build 18.1.0 → 18.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/build",
3
- "version": "18.1.0",
3
+ "version": "18.2.0-next.0",
4
4
  "description": "Official build system for Angular",
5
5
  "keywords": [
6
6
  "Angular CLI",
@@ -23,17 +23,17 @@
23
23
  "builders": "builders.json",
24
24
  "dependencies": {
25
25
  "@ampproject/remapping": "2.3.0",
26
- "@angular-devkit/architect": "0.1801.0",
26
+ "@angular-devkit/architect": "0.1802.0-next.0",
27
27
  "@babel/core": "7.24.7",
28
28
  "@babel/helper-annotate-as-pure": "7.24.7",
29
29
  "@babel/helper-split-export-declaration": "7.24.7",
30
30
  "@babel/plugin-syntax-import-attributes": "7.24.7",
31
- "@inquirer/confirm": "3.1.11",
31
+ "@inquirer/confirm": "3.1.14",
32
32
  "@vitejs/plugin-basic-ssl": "1.1.0",
33
33
  "ansi-colors": "4.1.3",
34
34
  "browserslist": "^4.23.0",
35
35
  "critters": "0.0.24",
36
- "esbuild": "0.21.5",
36
+ "esbuild": "0.23.0",
37
37
  "fast-glob": "3.3.2",
38
38
  "https-proxy-agent": "7.0.5",
39
39
  "lmdb": "3.0.12",
@@ -43,18 +43,17 @@
43
43
  "parse5-html-rewriting-stream": "7.0.0",
44
44
  "picomatch": "4.0.2",
45
45
  "piscina": "4.6.1",
46
- "rollup": "4.18.0",
47
- "sass": "1.77.6",
46
+ "rollup": "4.18.1",
47
+ "sass": "1.77.7",
48
48
  "semver": "7.6.2",
49
- "undici": "6.19.2",
50
- "vite": "5.3.2",
49
+ "vite": "5.3.3",
51
50
  "watchpack": "2.4.1"
52
51
  },
53
52
  "peerDependencies": {
54
- "@angular/compiler-cli": "^18.0.0",
55
- "@angular/localize": "^18.0.0",
56
- "@angular/platform-server": "^18.0.0",
57
- "@angular/service-worker": "^18.0.0",
53
+ "@angular/compiler-cli": "^18.0.0 || ^18.2.0-next.0",
54
+ "@angular/localize": "^18.0.0 || ^18.2.0-next.0",
55
+ "@angular/platform-server": "^18.0.0 || ^18.2.0-next.0",
56
+ "@angular/service-worker": "^18.0.0 || ^18.2.0-next.0",
58
57
  "less": "^4.2.0",
59
58
  "postcss": "^8.4.0",
60
59
  "tailwindcss": "^2.0.0 || ^3.0.0",
@@ -249,8 +249,9 @@ function getEsBuildCommonOptions(options) {
249
249
  }
250
250
  return {
251
251
  absWorkingDir: workspaceRoot,
252
- bundle: true,
253
252
  format: 'esm',
253
+ bundle: true,
254
+ packages: 'bundle',
254
255
  assetNames: outputNames.media,
255
256
  conditions: ['es2020', 'es2015', 'module'],
256
257
  resolveExtensions: ['.ts', '.tsx', '.mjs', '.js', '.cjs'],
@@ -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.1.0';
13
+ const VERSION = '18.2.0-next.0';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&
@@ -12,7 +12,6 @@ const mrmime_1 = require("mrmime");
12
12
  const promises_1 = require("node:fs/promises");
13
13
  const node_path_1 = require("node:path");
14
14
  const node_worker_threads_1 = require("node:worker_threads");
15
- const undici_1 = require("undici");
16
15
  /**
17
16
  * This is passed as workerData when setting up the worker via the `piscina` package.
18
17
  */
@@ -20,8 +19,7 @@ const { assetFiles } = node_worker_threads_1.workerData;
20
19
  const assetsCache = new Map();
21
20
  const RESOLVE_PROTOCOL = 'resolve:';
22
21
  function patchFetchToLoadInMemoryAssets() {
23
- const global = globalThis;
24
- const originalFetch = global.fetch;
22
+ const originalFetch = globalThis.fetch;
25
23
  const patchedFetch = async (input, init) => {
26
24
  let url;
27
25
  if (input instanceof URL) {
@@ -45,7 +43,7 @@ function patchFetchToLoadInMemoryAssets() {
45
43
  const cachedAsset = assetsCache.get(pathname);
46
44
  if (cachedAsset) {
47
45
  const { content, headers } = cachedAsset;
48
- return new undici_1.Response(content, {
46
+ return new Response(content, {
49
47
  headers,
50
48
  });
51
49
  }
@@ -58,9 +56,9 @@ function patchFetchToLoadInMemoryAssets() {
58
56
  }
59
57
  : undefined;
60
58
  assetsCache.set(pathname, { headers, content });
61
- return new undici_1.Response(content, {
59
+ return new Response(content, {
62
60
  headers,
63
61
  });
64
62
  };
65
- global.fetch = patchedFetch;
63
+ globalThis.fetch = patchedFetch;
66
64
  }