@nx/react 23.1.0 → 23.1.2

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 (51) hide show
  1. package/dist/internal.d.ts +1 -0
  2. package/dist/internal.js +3 -1
  3. package/dist/module-federation.d.ts +1 -2
  4. package/dist/module-federation.js +2 -3
  5. package/dist/plugins/component-testing/webpack-fallback.js +5 -0
  6. package/dist/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +11 -7
  7. package/dist/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +10 -6
  8. package/dist/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts +2 -2
  9. package/dist/src/executors/module-federation-static-server/module-federation-static-server.impl.js +14 -9
  10. package/dist/src/generators/application/application.js +7 -8
  11. package/dist/src/generators/application/files/react-router-ssr/common/app/entry.server.tsx__tmpl__ +1 -1
  12. package/dist/src/generators/application/files/react-router-ssr/common/tests/routes/_index.spec.tsx__tmpl__ +2 -2
  13. package/dist/src/generators/application/lib/add-e2e.js +3 -1
  14. package/dist/src/generators/application/lib/add-linting.js +3 -3
  15. package/dist/src/generators/application/lib/create-application-files.d.ts +1 -0
  16. package/dist/src/generators/application/lib/create-application-files.js +3 -3
  17. package/dist/src/generators/application/lib/find-free-port.d.ts +1 -1
  18. package/dist/src/generators/application/schema.d.ts +4 -0
  19. package/dist/src/generators/application/schema.json +8 -2
  20. package/dist/src/generators/cypress-component-configuration/lib/add-files.js +3 -3
  21. package/dist/src/generators/host/host.js +13 -4
  22. package/dist/src/generators/host/lib/setup-ssr-for-host.js +7 -8
  23. package/dist/src/generators/host/schema.d.ts +4 -0
  24. package/dist/src/generators/host/schema.json +8 -2
  25. package/dist/src/generators/library/lib/add-linting.d.ts +1 -2
  26. package/dist/src/generators/library/lib/add-linting.js +2 -3
  27. package/dist/src/generators/library/lib/add-rollup-build-target.d.ts +1 -2
  28. package/dist/src/generators/library/lib/determine-entry-fields.d.ts +1 -1
  29. package/dist/src/generators/library/lib/update-app-routes.js +1 -2
  30. package/dist/src/generators/library/schema.d.ts +4 -0
  31. package/dist/src/generators/library/schema.json +8 -2
  32. package/dist/src/generators/remote/lib/setup-ssr-for-remote.js +8 -9
  33. package/dist/src/generators/remote/lib/setup-tspath-for-remote.js +3 -2
  34. package/dist/src/generators/remote/remote.js +15 -6
  35. package/dist/src/generators/remote/schema.d.ts +4 -0
  36. package/dist/src/generators/remote/schema.json +8 -2
  37. package/dist/src/migrations/update-23-2-0/add-optional-module-federation-packages.d.ts +2 -0
  38. package/dist/src/migrations/update-23-2-0/add-optional-module-federation-packages.js +61 -0
  39. package/dist/src/migrations/update-23-2-0/add-optional-module-federation-packages.md +37 -0
  40. package/dist/src/migrations/update-23-2-0/add-svgr-webpack-if-used.d.ts +2 -0
  41. package/dist/src/migrations/update-23-2-0/add-svgr-webpack-if-used.js +55 -0
  42. package/dist/src/migrations/update-23-2-0/add-svgr-webpack-if-used.md +28 -0
  43. package/dist/src/plugins/router-plugin.js +2 -4
  44. package/dist/src/utils/assert-package.d.ts +1 -0
  45. package/dist/src/utils/assert-package.js +17 -0
  46. package/dist/src/utils/create-ts-config.d.ts +1 -1
  47. package/dist/src/utils/create-ts-config.js +5 -5
  48. package/dist/src/utils/versions.d.ts +2 -0
  49. package/dist/src/utils/versions.js +3 -1
  50. package/migrations.json +12 -0
  51. package/package.json +32 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react",
3
- "version": "23.1.0",
3
+ "version": "23.1.2",
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": {
@@ -93,40 +93,52 @@
93
93
  "peerDependencies": {
94
94
  "babel-plugin-react-compiler": "^1.0.0",
95
95
  "react": ">=18.0.0 <20.0.0",
96
- "react-dom": ">=18.0.0 <20.0.0"
96
+ "react-dom": ">=18.0.0 <20.0.0",
97
+ "express": "^4.21.2",
98
+ "http-proxy-middleware": "^3.0.7",
99
+ "@nx/module-federation": "23.1.2"
97
100
  },
98
101
  "peerDependenciesMeta": {
99
102
  "babel-plugin-react-compiler": {
100
103
  "optional": true
104
+ },
105
+ "@nx/module-federation": {
106
+ "optional": true
107
+ },
108
+ "express": {
109
+ "optional": true
110
+ },
111
+ "http-proxy-middleware": {
112
+ "optional": true
101
113
  }
102
114
  },
103
115
  "dependencies": {
116
+ "@babel/preset-react": "^7.22.5",
104
117
  "@phenomnomnominal/tsquery": "~6.2.0",
105
- "@svgr/webpack": "^8.0.1",
106
118
  "minimatch": "10.2.5",
107
119
  "tslib": "^2.3.0",
108
- "express": "^4.21.2",
109
- "http-proxy-middleware": "^3.0.5",
110
120
  "semver": "^7.6.3",
111
- "@nx/devkit": "23.1.0",
112
- "@nx/js": "23.1.0",
113
- "@nx/eslint": "23.1.0",
114
- "@nx/web": "23.1.0",
115
- "@nx/module-federation": "23.1.0",
116
- "@nx/rollup": "23.1.0"
121
+ "@nx/devkit": "23.1.2",
122
+ "@nx/js": "23.1.2",
123
+ "@nx/eslint": "23.1.2",
124
+ "@nx/web": "23.1.2"
117
125
  },
118
126
  "devDependencies": {
119
- "@nx/cypress": "23.1.0",
120
- "@nx/playwright": "23.1.0",
121
- "@nx/rsbuild": "23.1.0",
122
- "@nx/vite": "23.1.0",
123
- "@nx/vitest": "23.1.0",
124
- "@nx/webpack": "23.1.0",
125
- "@nx/storybook": "23.1.0",
126
- "nx": "23.1.0"
127
+ "express": "^4.21.2",
128
+ "http-proxy-middleware": "^3.0.7",
129
+ "@nx/cypress": "23.1.2",
130
+ "@nx/module-federation": "23.1.2",
131
+ "@nx/playwright": "23.1.2",
132
+ "@nx/rollup": "23.1.2",
133
+ "@nx/rsbuild": "23.1.2",
134
+ "@nx/vite": "23.1.2",
135
+ "@nx/vitest": "23.1.2",
136
+ "@nx/webpack": "23.1.2",
137
+ "@nx/storybook": "23.1.2",
138
+ "nx": "23.1.2"
127
139
  },
128
140
  "optionalDependencies": {
129
- "@nx/vite": "23.1.0"
141
+ "@nx/vite": "23.1.2"
130
142
  },
131
143
  "publishConfig": {
132
144
  "access": "public"