@nx/react 20.0.5 → 20.0.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.
Files changed (23) hide show
  1. package/migrations.json +13 -0
  2. package/package.json +6 -6
  3. package/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ +0 -2
  4. package/src/generators/application/lib/create-application-files.js +1 -0
  5. package/src/generators/host/files/rspack-module-federation/module-federation.config.js__tmpl__ +4 -1
  6. package/src/generators/host/files/rspack-module-federation-ssr/module-federation.server.config.js__tmpl__ +3 -0
  7. package/src/generators/host/files/rspack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +3 -0
  8. package/src/generators/host/files/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +3 -0
  9. package/src/generators/host/files/webpack-module-federation/module-federation.config.js__tmpl__ +4 -1
  10. package/src/generators/host/files/webpack-module-federation-ssr/module-federation.server.config.js__tmpl__ +3 -0
  11. package/src/generators/host/files/webpack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +3 -0
  12. package/src/generators/host/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +3 -0
  13. package/src/generators/remote/files/rspack-module-federation/module-federation.config.js__tmpl__ +3 -0
  14. package/src/generators/remote/files/rspack-module-federation-ssr/module-federation.server.config.js__tmpl__ +3 -0
  15. package/src/generators/remote/files/rspack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +3 -0
  16. package/src/generators/remote/files/rspack-module-federation-ts/module-federation.config.ts__tmpl__ +3 -0
  17. package/src/generators/remote/files/webpack-module-federation/module-federation.config.js__tmpl__ +3 -0
  18. package/src/generators/remote/files/webpack-module-federation-ssr/module-federation.server.config.js__tmpl__ +3 -0
  19. package/src/generators/remote/files/webpack-module-federation-ssr-ts/module-federation.server.config.ts__tmpl__ +3 -0
  20. package/src/generators/remote/files/webpack-module-federation-ts/module-federation.config.ts__tmpl__ +3 -0
  21. package/src/generators/remote/schema.json +1 -1
  22. package/src/utils/versions.d.ts +2 -2
  23. package/src/utils/versions.js +2 -2
package/migrations.json CHANGED
@@ -139,6 +139,19 @@
139
139
  "alwaysAddToPackageJson": false
140
140
  }
141
141
  }
142
+ },
143
+ "20.1.0": {
144
+ "version": "20.1.0-beta.0",
145
+ "packages": {
146
+ "eslint-plugin-react-hooks": {
147
+ "version": "5.0.0",
148
+ "alwaysAddToPackageJson": false
149
+ },
150
+ "eslint-plugin-jsx-a11y": {
151
+ "version": "6.10.1",
152
+ "alwaysAddToPackageJson": false
153
+ }
154
+ }
142
155
  }
143
156
  }
144
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react",
3
- "version": "20.0.5",
3
+ "version": "20.0.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,12 +39,12 @@
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.5",
43
- "@nx/js": "20.0.5",
44
- "@nx/eslint": "20.0.5",
45
- "@nx/web": "20.0.5",
42
+ "@nx/devkit": "20.0.7",
43
+ "@nx/js": "20.0.7",
44
+ "@nx/eslint": "20.0.7",
45
+ "@nx/web": "20.0.7",
46
46
  "express": "^4.19.2",
47
- "http-proxy-middleware": "^3.0.0"
47
+ "http-proxy-middleware": "^3.0.3"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -2,8 +2,6 @@
2
2
  import { Component } from 'react';
3
3
  <% } if (!minimal) { %>
4
4
  import NxWelcome from "./nx-welcome";
5
- <% } if (bundler === "rspack") { %>
6
- import '../styles.css';
7
5
  <% } %>
8
6
 
9
7
  <% if (classComponent) { %>
@@ -43,6 +43,7 @@ async function createApplicationFiles(host, options) {
43
43
  offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.appProjectRoot),
44
44
  appTests,
45
45
  inSourceVitestTests: (0, get_in_source_vitest_tests_template_1.getInSourceVitestTestsTemplate)(appTests),
46
+ style: options.style === 'tailwind' ? 'css' : options.style,
46
47
  };
47
48
  if (options.bundler === 'vite') {
48
49
  (0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../files/base-vite'), options.appProjectRoot, templateVariables);
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
3
+ **/
1
4
  module.exports = {
2
5
  name: '<%= projectName %>',
3
6
  /**
@@ -18,4 +21,4 @@ module.exports = {
18
21
  }
19
22
  %>
20
23
  ],
21
- };
24
+ };
@@ -13,4 +13,7 @@ const moduleFederationConfig = {
13
13
  ],
14
14
  };
15
15
 
16
+ /**
17
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
18
+ **/
16
19
  module.exports = moduleFederationConfig;
@@ -10,4 +10,7 @@ const config: ModuleFederationConfig = {
10
10
  ],
11
11
  };
12
12
 
13
+ /**
14
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
15
+ **/
13
16
  export default config;
@@ -22,4 +22,7 @@ const config: ModuleFederationConfig = {
22
22
  ],
23
23
  };
24
24
 
25
+ /**
26
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
27
+ **/
25
28
  export default config;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
3
+ **/
1
4
  module.exports = {
2
5
  name: '<%= projectName %>',
3
6
  /**
@@ -18,4 +21,4 @@ module.exports = {
18
21
  }
19
22
  %>
20
23
  ],
21
- };
24
+ };
@@ -13,4 +13,7 @@ const moduleFederationConfig = {
13
13
  ],
14
14
  };
15
15
 
16
+ /**
17
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
18
+ **/
16
19
  module.exports = moduleFederationConfig;
@@ -10,4 +10,7 @@ const config: ModuleFederationConfig = {
10
10
  ],
11
11
  };
12
12
 
13
+ /**
14
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
15
+ **/
13
16
  export default config;
@@ -22,4 +22,7 @@ const config: ModuleFederationConfig = {
22
22
  ],
23
23
  };
24
24
 
25
+ /**
26
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
27
+ **/
25
28
  export default config;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
3
+ **/
1
4
  module.exports = {
2
5
  name: '<%= projectName %>',
3
6
  <% if (dynamic) { %>
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
3
+ **/
1
4
  module.exports = {
2
5
  name: '<%= projectName %>',
3
6
  exposes: {
@@ -7,4 +7,7 @@ const config: ModuleFederationConfig = {
7
7
  },
8
8
  };
9
9
 
10
+ /**
11
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
12
+ **/
10
13
  export default config;
@@ -10,4 +10,7 @@ const config: ModuleFederationConfig = {
10
10
  },
11
11
  };
12
12
 
13
+ /**
14
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
15
+ **/
13
16
  export default config;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
3
+ **/
1
4
  module.exports = {
2
5
  name: '<%= projectName %>',
3
6
  <% if (dynamic) { %>
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
3
+ **/
1
4
  module.exports = {
2
5
  name: '<%= projectName %>',
3
6
  exposes: {
@@ -7,4 +7,7 @@ const config: ModuleFederationConfig = {
7
7
  },
8
8
  };
9
9
 
10
+ /**
11
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
12
+ **/
10
13
  export default config;
@@ -10,4 +10,7 @@ const config: ModuleFederationConfig = {
10
10
  },
11
11
  };
12
12
 
13
+ /**
14
+ * Nx requires a default export of the config to allow correct resolution of the module federation graph.
15
+ **/
13
16
  export default config;
@@ -19,7 +19,7 @@
19
19
  "name": {
20
20
  "type": "string",
21
21
  "description": "The name of the remote application to generate the Module Federation configuration",
22
- "pattern": "^[a-zA-Z][^:]*$",
22
+ "pattern": "^[a-zA-Z_$][a-zA-Z_$0-9]*$",
23
23
  "x-priority": "important"
24
24
  },
25
25
  "dynamic": {
@@ -23,9 +23,9 @@ export declare const testingLibraryReactVersion = "15.0.6";
23
23
  export declare const reduxjsToolkitVersion = "1.9.3";
24
24
  export declare const reactReduxVersion = "8.0.5";
25
25
  export declare const eslintPluginImportVersion = "2.31.0";
26
- export declare const eslintPluginJsxA11yVersion = "6.7.1";
26
+ export declare const eslintPluginJsxA11yVersion = "6.10.1";
27
27
  export declare const eslintPluginReactVersion = "7.35.0";
28
- export declare const eslintPluginReactHooksVersion = "4.6.0";
28
+ export declare const eslintPluginReactHooksVersion = "5.0.0";
29
29
  export declare const babelPluginStyledComponentsVersion = "1.10.7";
30
30
  export declare const tsLibVersion = "^2.3.0";
31
31
  export declare const postcssVersion = "8.4.38";
@@ -28,9 +28,9 @@ exports.testingLibraryReactVersion = '15.0.6';
28
28
  exports.reduxjsToolkitVersion = '1.9.3';
29
29
  exports.reactReduxVersion = '8.0.5';
30
30
  exports.eslintPluginImportVersion = '2.31.0';
31
- exports.eslintPluginJsxA11yVersion = '6.7.1';
31
+ exports.eslintPluginJsxA11yVersion = '6.10.1';
32
32
  exports.eslintPluginReactVersion = '7.35.0';
33
- exports.eslintPluginReactHooksVersion = '4.6.0';
33
+ exports.eslintPluginReactHooksVersion = '5.0.0';
34
34
  exports.babelPluginStyledComponentsVersion = '1.10.7';
35
35
  exports.tsLibVersion = '^2.3.0';
36
36
  exports.postcssVersion = '8.4.38';