@nx/react 23.0.0-beta.7 → 23.0.0-beta.9

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": "@nx/react",
3
- "version": "23.0.0-beta.7",
3
+ "version": "23.0.0-beta.9",
4
4
  "private": false,
5
5
  "description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -35,30 +35,30 @@
35
35
  "dependencies": {
36
36
  "@phenomnomnominal/tsquery": "~6.2.0",
37
37
  "@svgr/webpack": "^8.0.1",
38
- "minimatch": "10.2.4",
38
+ "minimatch": "10.2.5",
39
39
  "tslib": "^2.3.0",
40
- "@nx/devkit": "23.0.0-beta.7",
41
- "@nx/js": "23.0.0-beta.7",
42
- "@nx/eslint": "23.0.0-beta.7",
43
- "@nx/web": "23.0.0-beta.7",
44
- "@nx/module-federation": "23.0.0-beta.7",
45
- "@nx/rollup": "23.0.0-beta.7",
40
+ "@nx/devkit": "23.0.0-beta.9",
41
+ "@nx/js": "23.0.0-beta.9",
42
+ "@nx/eslint": "23.0.0-beta.9",
43
+ "@nx/web": "23.0.0-beta.9",
44
+ "@nx/module-federation": "23.0.0-beta.9",
45
+ "@nx/rollup": "23.0.0-beta.9",
46
46
  "express": "^4.21.2",
47
47
  "http-proxy-middleware": "^3.0.5",
48
48
  "semver": "^7.6.3"
49
49
  },
50
50
  "devDependencies": {
51
- "@nx/cypress": "23.0.0-beta.7",
52
- "@nx/playwright": "23.0.0-beta.7",
53
- "@nx/rsbuild": "23.0.0-beta.7",
54
- "@nx/vite": "23.0.0-beta.7",
55
- "@nx/vitest": "23.0.0-beta.7",
56
- "@nx/webpack": "23.0.0-beta.7",
57
- "@nx/storybook": "23.0.0-beta.7",
58
- "nx": "23.0.0-beta.7"
51
+ "@nx/cypress": "23.0.0-beta.9",
52
+ "@nx/playwright": "23.0.0-beta.9",
53
+ "@nx/rsbuild": "23.0.0-beta.9",
54
+ "@nx/vite": "23.0.0-beta.9",
55
+ "@nx/vitest": "23.0.0-beta.9",
56
+ "@nx/webpack": "23.0.0-beta.9",
57
+ "@nx/storybook": "23.0.0-beta.9",
58
+ "nx": "23.0.0-beta.9"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@nx/vite": "23.0.0-beta.7"
61
+ "@nx/vite": "23.0.0-beta.9"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAKL,IAAI,EAGL,MAAM,YAAY,CAAC;AAMpB,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QA2E/D"}
1
+ {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAML,IAAI,EAGL,MAAM,YAAY,CAAC;AAMpB,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAyF/D"}
@@ -15,6 +15,12 @@ function addProject(host, options) {
15
15
  };
16
16
  if (options.bundler === 'webpack') {
17
17
  if (!(0, has_webpack_plugin_1.hasWebpackPlugin)(host) || !options.addPlugin) {
18
+ // Mirrors warnWebpackExecutorGenerating from @nx/webpack/src/utils/deprecation.
19
+ // Inlined to avoid a cross-package deep import; @nx/webpack's package
20
+ // exports field doesn't expose internal `src/...` paths, so the import
21
+ // works at compile time (via tsconfig project refs) but fails at runtime
22
+ // in published packages.
23
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/webpack:webpack` and `@nx/webpack:dev-server` executors. These executors will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` next to migrate these targets to the `@nx/webpack/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
18
24
  project.targets = {
19
25
  build: createBuildTarget(options),
20
26
  serve: createServeTarget(options),
@@ -23,6 +29,10 @@ function addProject(host, options) {
23
29
  }
24
30
  else if (options.bundler === 'rspack' &&
25
31
  (!(0, has_rspack_plugin_1.hasRspackPlugin)(host) || !options.addPlugin)) {
32
+ // Mirrors warnRspackExecutorGenerating from @nx/rspack/src/utils/deprecation.
33
+ // Inlined to avoid a cross-package import where react does not declare a
34
+ // TypeScript project reference to rspack.
35
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/rspack:rspack` and `@nx/rspack:dev-server` executors. These executors will be removed in Nx v24. Run `nx g @nx/rspack:convert-to-inferred` next to migrate these targets to the `@nx/rspack/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
26
36
  project.targets = {
27
37
  build: createRspackBuildTarget(options),
28
38
  serve: createRspackServeTarget(options),
@@ -1 +1 @@
1
- {"version":3,"file":"add-rollup-build-target.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/add-rollup-build-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EAOlB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GAAG;IAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAA;CAAE,EAC7D,QAAQ,GAAE,GAAG,CAAC,MAAM,CAAmC,8BAiHxD"}
1
+ {"version":3,"file":"add-rollup-build-target.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/add-rollup-build-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAGL,iBAAiB,EAQlB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GAAG;IAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAA;CAAE,EAC7D,QAAQ,GAAE,GAAG,CAAC,MAAM,CAAmC,8BAyHxD"}
@@ -59,6 +59,12 @@ module.exports = withNx(
59
59
  }
60
60
  else {
61
61
  // Legacy behavior, there is a target in project.json using rollup executor.
62
+ // Mirrors warnRollupExecutorGenerating from @nx/rollup/src/utils/deprecation.
63
+ // Inlined to avoid a cross-package deep import; @nx/rollup's package
64
+ // exports field doesn't expose internal `src/...` paths, so the import
65
+ // works at compile time (via tsconfig project refs) but fails at runtime
66
+ // in published packages.
67
+ devkit_1.logger.warn('The `@nx/rollup:rollup` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/rollup:convert-to-inferred` to migrate to the `@nx/rollup/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
62
68
  const { targets } = (0, devkit_1.readProjectConfiguration)(host, options.name);
63
69
  targets.build = {
64
70
  executor: '@nx/rollup:rollup',
@@ -13,7 +13,7 @@ export declare const typesReactDomVersion = "^19.0.0";
13
13
  export declare const typesReactIsV18Version = "18.3.0";
14
14
  export declare const typesReactIsVersion = "^19.0.0";
15
15
  export declare const reactViteVersion = "^4.2.0";
16
- export declare const typesNodeVersion = "^20.0.0";
16
+ export declare const typesNodeVersion = "^22.0.0";
17
17
  export declare const babelPresetReactVersion = "^7.14.5";
18
18
  export declare const babelCoreVersion = "^7.14.5";
19
19
  export declare const reactRouterDomVersion = "6.30.3";
@@ -17,7 +17,7 @@ exports.typesReactIsV18Version = '18.3.0';
17
17
  exports.typesReactIsVersion = '^19.0.0';
18
18
  exports.reactViteVersion = '^4.2.0';
19
19
  // Needed for React-Router
20
- exports.typesNodeVersion = '^20.0.0';
20
+ exports.typesNodeVersion = '^22.0.0';
21
21
  exports.babelPresetReactVersion = '^7.14.5';
22
22
  exports.babelCoreVersion = '^7.14.5';
23
23
  exports.reactRouterDomVersion = '6.30.3';