@nx/react 20.0.0-beta.6 → 20.0.0-beta.7

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/index.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setupTailwindGenerator = exports.componentTestGenerator = exports.cypressComponentConfigGenerator = exports.remoteGenerator = exports.hostGenerator = exports.storybookConfigurationGenerator = exports.storiesGenerator = exports.reduxGenerator = exports.reactInitGenerator = exports.libraryGenerator = exports.componentStoryGenerator = exports.hookGenerator = exports.componentGenerator = exports.applicationGenerator = exports.reactVersion = exports.reactDomVersion = exports.assertValidStyle = exports.cssInJsDependenciesBabel = exports.extendReactEslintJson = exports.extraEslintDependencies = exports.NxReactWebpackPlugin = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const nx_react_webpack_plugin_1 = require("./plugins/nx-react-webpack-plugin/nx-react-webpack-plugin");
6
- // TODO(v20): Remove this in favor of deep imports in order to load configs faster (150-200ms faster).
6
+ // TODO(v21): Remove this in favor of deep imports in order to load configs faster (150-200ms faster).
7
7
  /** @deprecated Use '@nx/react/webpack-plugin' instead. */
8
8
  exports.NxReactWebpackPlugin = nx_react_webpack_plugin_1.NxReactWebpackPlugin;
9
9
  var lint_1 = require("./src/utils/lint");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react",
3
- "version": "20.0.0-beta.6",
3
+ "version": "20.0.0-beta.7",
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": {
@@ -39,10 +39,10 @@
39
39
  "picocolors": "^1.1.0",
40
40
  "tslib": "^2.3.0",
41
41
  "@module-federation/enhanced": "0.6.6",
42
- "@nx/devkit": "20.0.0-beta.6",
43
- "@nx/js": "20.0.0-beta.6",
44
- "@nx/eslint": "20.0.0-beta.6",
45
- "@nx/web": "20.0.0-beta.6",
42
+ "@nx/devkit": "20.0.0-beta.7",
43
+ "@nx/js": "20.0.0-beta.7",
44
+ "@nx/eslint": "20.0.0-beta.7",
45
+ "@nx/web": "20.0.0-beta.7",
46
46
  "express": "^4.19.2",
47
47
  "http-proxy-middleware": "^3.0.0"
48
48
  },
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // TODO(v20): This should be deprecated and removed in v22.
3
+ // TODO(v22): Remove this in Nx 22 and migrate to explicit rollup.config.js files.
4
+ /**
5
+ * @deprecated Use `withNx` function from `@nx/rollup/with-nx` in your rollup.config.js file instead. Use `nx g @nx/rollup:convert-to-inferred` to generate the rollup.config.js file if it does not exist.
6
+ */
4
7
  function getRollupOptions(options) {
5
8
  const extraGlobals = {
6
9
  react: 'React',
@@ -167,7 +167,7 @@ function buildTargetWebpack(ctx, buildTarget, componentTestingProjectName) {
167
167
  }
168
168
  return async () => {
169
169
  customWebpack = await customWebpack;
170
- // TODO(v20): Component testing need to be agnostic of the underlying executor. With Crystal, we're not using `@nx/webpack:webpack` by default.
170
+ // TODO(v21): Component testing need to be agnostic of the underlying executor. With Crystal, we're not using `@nx/webpack:webpack` by default.
171
171
  // We need to decouple CT from the build target of the app, we just care about bundler config (e.g. webpack.config.js).
172
172
  // The generated setup should support both Webpack and Vite as documented here: https://docs.cypress.io/guides/component-testing/react/overview
173
173
  // Related issue: https://github.com/nrwl/nx/issues/21546
@@ -13,7 +13,7 @@ function applyReactConfig(options, config = {}) {
13
13
  ref: true,
14
14
  };
15
15
  const svgrOptions = typeof options.svgr === 'object' ? options.svgr : defaultSvgrOptions;
16
- // TODO(v20): Remove file-loader and use `?react` querystring to differentiate between asset and SVGR.
16
+ // TODO(v21): Remove file-loader and use `?react` querystring to differentiate between asset and SVGR.
17
17
  // It should be:
18
18
  // use: [{
19
19
  // test: /\.svg$/i,