@depup/angular-devkit__build-angular 22.2.0-depup.0 → 22.2.1-depup.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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/angular-devkit__build-angular
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@angular-devkit/build-angular](https://www.npmjs.com/package/@angular-devkit/build-angular) @ 22.2.0 |
17
- | Processed | 2026-09-24 |
16
+ | Original | [@angular-devkit/build-angular](https://www.npmjs.com/package/@angular-devkit/build-angular) @ 22.2.1 |
17
+ | Processed | 2026-10-01 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 9 |
20
20
 
@@ -28,7 +28,7 @@ npm install @depup/angular-devkit__build-angular
28
28
  | @babel/plugin-transform-runtime | 8.0.1 | ^8.0.6 |
29
29
  | @babel/preset-env | 8.0.5 | ^8.0.6 |
30
30
  | autoprefixer | 10.6.0 | ^10.6.1 |
31
- | browserslist | ^4.26.0 | ^4.29.0 |
31
+ | browserslist | ^4.26.0 | ^4.29.3 |
32
32
  | webpack | 5.111.0 | ^5.111.1 |
33
33
  | webpack-subresource-integrity | 5.1.0 | ^5.2.0-rc.1 |
34
34
 
package/changes.json CHANGED
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "browserslist": {
28
28
  "from": "^4.26.0",
29
- "to": "^4.29.0"
29
+ "to": "^4.29.3"
30
30
  },
31
31
  "webpack": {
32
32
  "from": "5.111.0",
@@ -37,6 +37,6 @@
37
37
  "to": "^5.2.0-rc.1"
38
38
  }
39
39
  },
40
- "timestamp": "2026-09-24T00:31:02.437Z",
40
+ "timestamp": "2026-10-01T16:09:45.566Z",
41
41
  "totalUpdated": 9
42
42
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@depup/angular-devkit__build-angular",
3
- "version": "22.2.0-depup.0",
3
+ "version": "22.2.1-depup.0",
4
4
  "description": "Angular Webpack Build Facade (with updated dependencies)",
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.2202.0",
11
- "@angular-devkit/build-webpack": "0.2202.0",
12
- "@angular-devkit/core": "22.2.0",
13
- "@angular/build": "22.2.0",
10
+ "@angular-devkit/architect": "0.2202.1",
11
+ "@angular-devkit/build-webpack": "0.2202.1",
12
+ "@angular-devkit/core": "22.2.1",
13
+ "@angular/build": "22.2.1",
14
14
  "@babel/core": "^8.0.6",
15
15
  "@babel/generator": "^8.0.6",
16
16
  "@babel/helper-annotate-as-pure": "8.0.0",
@@ -21,12 +21,12 @@
21
21
  "@babel/preset-env": "^8.0.6",
22
22
  "@babel/runtime": "8.0.5",
23
23
  "@discoveryjs/json-ext": "1.1.0",
24
- "@ngtools/webpack": "22.2.0",
24
+ "@ngtools/webpack": "22.2.1",
25
25
  "ansi-colors": "4.1.3",
26
26
  "autoprefixer": "^10.6.1",
27
27
  "babel-loader": "10.1.1",
28
28
  "beasties": "0.5.4",
29
- "browserslist": "^4.29.0",
29
+ "browserslist": "^4.29.3",
30
30
  "copy-webpack-plugin": "14.0.0",
31
31
  "css-loader": "7.1.5",
32
32
  "esbuild-wasm": "0.28.2",
@@ -70,7 +70,7 @@
70
70
  "@angular/platform-browser": "^22.0.0",
71
71
  "@angular/platform-server": "^22.0.0",
72
72
  "@angular/service-worker": "^22.0.0",
73
- "@angular/ssr": "^22.2.0",
73
+ "@angular/ssr": "^22.2.1",
74
74
  "browser-sync": "^3.0.2",
75
75
  "karma": "^6.3.0",
76
76
  "ng-packagr": "^22.0.0",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  "browserslist": {
167
167
  "from": "^4.26.0",
168
- "to": "^4.29.0"
168
+ "to": "^4.29.3"
169
169
  },
170
170
  "webpack": {
171
171
  "from": "5.111.0",
@@ -178,8 +178,8 @@
178
178
  },
179
179
  "depsUpdated": 9,
180
180
  "originalPackage": "@angular-devkit/build-angular",
181
- "originalVersion": "22.2.0",
182
- "processedAt": "2026-09-24T00:31:28.003Z",
181
+ "originalVersion": "22.2.1",
182
+ "processedAt": "2026-10-01T16:10:14.814Z",
183
183
  "smokeTest": "passed"
184
184
  }
185
185
  }
@@ -28,7 +28,7 @@ export type Schema = {
28
28
  */
29
29
  codeCoverageExclude?: string[];
30
30
  /**
31
- * Globs of files to exclude, relative to the project root.
31
+ * Globs of files to exclude, relative to the project source root.
32
32
  */
33
33
  exclude?: string[];
34
34
  /**
@@ -36,11 +36,11 @@ export type Schema = {
36
36
  */
37
37
  fileReplacements?: FileReplacement[];
38
38
  /**
39
- * Globs of files to include, relative to project root.
39
+ * Globs of files to include, relative to the project source root.
40
40
  * There are 2 special cases:
41
- * - when a path to directory is provided, all spec files ending ".spec.@(ts|tsx)" will be
41
+ * - when a path to a directory is provided, all spec files ending ".spec.@(ts|tsx)" will be
42
42
  * included
43
- * - when a path to a file is provided, and a matching spec file exists it will be included
43
+ * - when a path to a file is provided, and a matching spec file exists, it will be included
44
44
  * instead.
45
45
  */
46
46
  include?: string[];
@@ -141,7 +141,7 @@
141
141
  "type": "string"
142
142
  },
143
143
  "default": ["**/*.spec.ts"],
144
- "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
144
+ "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists, it will be included instead."
145
145
  },
146
146
  "exclude": {
147
147
  "type": "array",
@@ -149,7 +149,7 @@
149
149
  "type": "string"
150
150
  },
151
151
  "default": [],
152
- "description": "Globs of files to exclude, relative to the project root."
152
+ "description": "Globs of files to exclude, relative to the project source root."
153
153
  },
154
154
  "sourceMap": {
155
155
  "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
@@ -94,6 +94,12 @@ function default_1() {
94
94
  if (path.getFunctionParent()) {
95
95
  return;
96
96
  }
97
+ // Do not annotate standalone expression statements.
98
+ // Standalone expression statements are executed solely for their side effects;
99
+ // marking them pure causes minifiers to drop them as dead code.
100
+ if (path.parentPath.isExpressionStatement()) {
101
+ return;
102
+ }
97
103
  const callee = path.get('callee');
98
104
  if ((callee.isFunctionExpression() || callee.isArrowFunctionExpression()) &&
99
105
  path.node.arguments.length !== 0) {
@@ -112,6 +118,12 @@ function default_1() {
112
118
  if (path.getFunctionParent()) {
113
119
  return;
114
120
  }
121
+ // Do not annotate standalone expression statements.
122
+ // Standalone expression statements are executed solely for their side effects;
123
+ // marking them pure causes minifiers to drop them as dead code.
124
+ if (path.parentPath.isExpressionStatement()) {
125
+ return;
126
+ }
115
127
  const { topLevelSafeMode = false } = state.opts;
116
128
  if (!topLevelSafeMode) {
117
129
  (0, helper_annotate_as_pure_1.default)(path);
@@ -1 +1 @@
1
- {"version":3,"file":"pure-toplevel-functions.js","sourceRoot":"","sources":["pure-toplevel-functions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH,4BAsDC;AAxGD,6FAA4D;AAC5D,6CAA+B;AAE/B;;GAEG;AACH,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAS,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAE3F;;;;;GAKG;AACH,SAAS,iBAAiB,CAAC,IAAY;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,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AM,KAAK,CAAC,EAChC,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,0FAA0F;gBAC1F,2CAA2C;gBAC3C,IACE,MAAM,CAAC,YAAY,EAAE;oBACrB,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAC5E,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,IAAA,iCAAc,EAAC,IAAI,CAAC,CAAC;YACvB,CAAC;YACD,aAAa,CAAC,IAAmC,EAAE,KAAyB;gBAC1E,+DAA+D;gBAC/D,IAAI,IAAI,CAAC,iBAAiB,EAAE,EAAE,CAAC;oBAC7B,OAAO;gBACT,CAAC;gBAED,oDAAoD;gBACpD,+EAA+E;gBAC/E,gEAAgE;gBAChE,IAAI,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,EAAE,CAAC;oBAC5C,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,gBAAgB,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC;gBAEhD,IAAI,CAAC,gBAAgB,EAAE,CAAC;oBACtB,IAAA,iCAAc,EAAC,IAAI,CAAC,CAAC;oBAErB,OAAO;gBACT,CAAC;gBAED,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAClC,IAAI,MAAM,CAAC,YAAY,EAAE,IAAI,0BAA0B,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC9E,IAAA,iCAAc,EAAC,IAAI,CAAC,CAAC;gBACvB,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -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 = '22.2.0';
13
+ const VERSION = '22.2.1';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&