@nx/angular 22.6.0-pr.34722.ef1fe91 → 22.6.0-pr.34746.a1e500d

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/migrations.json CHANGED
@@ -2399,6 +2399,20 @@
2399
2399
  "alwaysAddToPackageJson": false
2400
2400
  }
2401
2401
  }
2402
+ },
2403
+ "22.6.0": {
2404
+ "version": "22.6.0-beta.10",
2405
+ "x-prompt": "Bump @module-federation packages to v2.x to resolve koa CVE-2026-27959 (via dts-plugin)",
2406
+ "packages": {
2407
+ "@module-federation/enhanced": {
2408
+ "version": "^2.1.0",
2409
+ "alwaysAddToPackageJson": false
2410
+ },
2411
+ "@module-federation/node": {
2412
+ "version": "^2.7.21",
2413
+ "alwaysAddToPackageJson": false
2414
+ }
2415
+ }
2402
2416
  }
2403
2417
  }
2404
2418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "22.6.0-pr.34722.ef1fe91",
3
+ "version": "22.6.0-pr.34746.a1e500d",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -62,14 +62,14 @@
62
62
  "migrations": "./migrations.json"
63
63
  },
64
64
  "dependencies": {
65
- "@nx/devkit": "22.6.0-pr.34722.ef1fe91",
66
- "@nx/eslint": "22.6.0-pr.34722.ef1fe91",
67
- "@nx/js": "22.6.0-pr.34722.ef1fe91",
68
- "@nx/module-federation": "22.6.0-pr.34722.ef1fe91",
69
- "@nx/rspack": "22.6.0-pr.34722.ef1fe91",
70
- "@nx/web": "22.6.0-pr.34722.ef1fe91",
71
- "@nx/webpack": "22.6.0-pr.34722.ef1fe91",
72
- "@nx/workspace": "22.6.0-pr.34722.ef1fe91",
65
+ "@nx/devkit": "22.6.0-pr.34746.a1e500d",
66
+ "@nx/eslint": "22.6.0-pr.34746.a1e500d",
67
+ "@nx/js": "22.6.0-pr.34746.a1e500d",
68
+ "@nx/module-federation": "22.6.0-pr.34746.a1e500d",
69
+ "@nx/rspack": "22.6.0-pr.34746.a1e500d",
70
+ "@nx/web": "22.6.0-pr.34746.a1e500d",
71
+ "@nx/webpack": "22.6.0-pr.34746.a1e500d",
72
+ "@nx/workspace": "22.6.0-pr.34746.a1e500d",
73
73
  "@phenomnomnominal/tsquery": "~6.1.4",
74
74
  "@typescript-eslint/type-utils": "^8.0.0",
75
75
  "enquirer": "~2.3.6",
@@ -1 +1 @@
1
- {"version":3,"file":"update-tsconfig-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/update-tsconfig-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QA8ExE"}
1
+ {"version":3,"file":"update-tsconfig-files.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/update-tsconfig-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAS5D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAmFxE"}
@@ -47,7 +47,12 @@ function updateTsconfigFiles(tree, options) {
47
47
  ...json.compilerOptions,
48
48
  ...compilerOptions,
49
49
  };
50
- json.compilerOptions = (0, configuration_1.getNeededCompilerOptionOverrides)(tree, json.compilerOptions, rootTsConfigPath);
50
+ // For standalone projects, rootTsConfigPath and tsconfigPath are the same
51
+ // file. Calling getNeededCompilerOptionOverrides would compare the file
52
+ // against itself and strip options like skipLibCheck that are already set.
53
+ if (tsconfigPath !== rootTsConfigPath) {
54
+ json.compilerOptions = (0, configuration_1.getNeededCompilerOptionOverrides)(tree, json.compilerOptions, rootTsConfigPath);
55
+ }
51
56
  return json;
52
57
  });
53
58
  if (options.unitTestRunner === 'jest') {
@@ -1 +1 @@
1
- {"version":3,"file":"add-vitest.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/utils/add-vitest.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAUpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC,CA2Cf;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAoCf"}
1
+ {"version":3,"file":"add-vitest.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/utils/add-vitest.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAUpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,IAAI,CAAC,CA2Cf;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAmCf"}
@@ -98,8 +98,8 @@ async function addVitestAnalog(tree, options) {
98
98
  addPlugin: options.addPlugin ?? false,
99
99
  skipFormat: options.skipFormat,
100
100
  skipPackageJson: options.skipPackageJson,
101
+ zoneless: options.zoneless,
101
102
  });
102
- createAnalogSetupFile(tree, options, angularMajorVersion);
103
103
  }
104
104
  function validateVitestVersion(tree) {
105
105
  let installedVitestVersion = null;
@@ -179,44 +179,3 @@ function addVitestScreenshotsToGitIgnore(tree) {
179
179
  devkit_1.logger.warn(`Couldn't find .gitignore file to update`);
180
180
  }
181
181
  }
182
- function createAnalogSetupFile(tree, options, angularMajorVersion) {
183
- let setupFile;
184
- if (angularMajorVersion >= 21) {
185
- setupFile = `import '@angular/compiler';
186
- import '@analogjs/vitest-angular/setup-snapshots';
187
- import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
188
-
189
- setupTestBed(${options.zoneless ? '' : '{ zoneless: false }'});
190
- `;
191
- }
192
- else if (angularMajorVersion === 20) {
193
- setupFile = `import '@angular/compiler';
194
- import '@analogjs/vitest-angular/setup-zone';
195
- import {
196
- BrowserTestingModule,
197
- platformBrowserTesting,
198
- } from '@angular/platform-browser/testing';
199
- import { getTestBed } from '@angular/core/testing';
200
-
201
- getTestBed().initTestEnvironment(
202
- BrowserTestingModule,
203
- platformBrowserTesting(),
204
- );
205
- `;
206
- }
207
- else {
208
- setupFile = `import '@analogjs/vitest-angular/setup-zone';
209
- import {
210
- BrowserDynamicTestingModule,
211
- platformBrowserDynamicTesting,
212
- } from '@angular/platform-browser-dynamic/testing';
213
- import { getTestBed } from '@angular/core/testing';
214
-
215
- getTestBed().initTestEnvironment(
216
- BrowserDynamicTestingModule,
217
- platformBrowserDynamicTesting(),
218
- );
219
- `;
220
- }
221
- tree.write((0, devkit_1.joinPathFragments)(options.projectRoot, 'src/test-setup.ts'), setupFile);
222
- }
@@ -12,7 +12,7 @@ export declare const expressVersion = "^4.21.2";
12
12
  export declare const typesExpressVersion = "^4.17.21";
13
13
  export declare const browserSyncVersion = "^3.0.0";
14
14
  export declare const moduleFederationNodeVersion = "^2.7.21";
15
- export declare const moduleFederationEnhancedVersion = "^0.21.2";
15
+ export declare const moduleFederationEnhancedVersion = "^2.1.0";
16
16
  export declare const webpackMergeVersion = "^5.8.0";
17
17
  export declare const angularEslintVersion = "^21.2.0";
18
18
  export declare const typescriptEslintVersion = "^7.16.0";
@@ -1 +1 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,W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Y,CAAC;AACrC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,2BAA2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,WAAW,CAAC;AACxD,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC,eAAO,MAAM,wBAAwB,WAAW,CAAC"}
@@ -15,7 +15,7 @@ exports.expressVersion = '^4.21.2';
15
15
  exports.typesExpressVersion = '^4.17.21';
16
16
  exports.browserSyncVersion = '^3.0.0';
17
17
  exports.moduleFederationNodeVersion = '^2.7.21';
18
- exports.moduleFederationEnhancedVersion = '^0.21.2';
18
+ exports.moduleFederationEnhancedVersion = '^2.1.0';
19
19
  exports.webpackMergeVersion = '^5.8.0';
20
20
  exports.angularEslintVersion = '^21.2.0';
21
21
  exports.typescriptEslintVersion = '^7.16.0';