@nx/react 23.1.0-beta.1 → 23.1.0-beta.3
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.
|
@@ -11,6 +11,13 @@ npx types-react-codemod@latest preset-19 ./PROJECT_PATH
|
|
|
11
11
|
|
|
12
12
|
First handles API changes, second handles `@types/react` 19 types. Review the diffs.
|
|
13
13
|
|
|
14
|
+
`preset-19` is interactive (prompts per codemod). For a non-interactive run, the two that clear the most common type errors are:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx types-react-codemod@latest useRef-required-initial ./PROJECT_PATH # useRef() -> useRef(initialValue); 19 dropped the zero-arg overload
|
|
18
|
+
npx types-react-codemod@latest refobject-defaults ./PROJECT_PATH # RefObject<T> -> RefObject<T | null>; covers both ref sites and helper param signatures
|
|
19
|
+
```
|
|
20
|
+
|
|
14
21
|
## Step 2: Removed APIs (fix by hand if codemod misses)
|
|
15
22
|
|
|
16
23
|
- `ReactDOM.render` / `hydrate` -> `createRoot` / `hydrateRoot` from `react-dom/client`. Note `hydrateRoot(container, element)` swaps the arg order vs `hydrate`.
|
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "23.1.0-beta.
|
|
3
|
+
"version": "23.1.0-beta.3",
|
|
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": {
|
|
@@ -108,25 +108,25 @@
|
|
|
108
108
|
"express": "^4.21.2",
|
|
109
109
|
"http-proxy-middleware": "^3.0.5",
|
|
110
110
|
"semver": "^7.6.3",
|
|
111
|
-
"@nx/devkit": "23.1.0-beta.
|
|
112
|
-
"@nx/js": "23.1.0-beta.
|
|
113
|
-
"@nx/eslint": "23.1.0-beta.
|
|
114
|
-
"@nx/web": "23.1.0-beta.
|
|
115
|
-
"@nx/module-federation": "23.1.0-beta.
|
|
116
|
-
"@nx/rollup": "23.1.0-beta.
|
|
111
|
+
"@nx/devkit": "23.1.0-beta.3",
|
|
112
|
+
"@nx/js": "23.1.0-beta.3",
|
|
113
|
+
"@nx/eslint": "23.1.0-beta.3",
|
|
114
|
+
"@nx/web": "23.1.0-beta.3",
|
|
115
|
+
"@nx/module-federation": "23.1.0-beta.3",
|
|
116
|
+
"@nx/rollup": "23.1.0-beta.3"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@nx/cypress": "23.1.0-beta.
|
|
120
|
-
"@nx/playwright": "23.1.0-beta.
|
|
121
|
-
"@nx/rsbuild": "23.1.0-beta.
|
|
122
|
-
"@nx/vite": "23.1.0-beta.
|
|
123
|
-
"@nx/vitest": "23.1.0-beta.
|
|
124
|
-
"@nx/webpack": "23.1.0-beta.
|
|
125
|
-
"@nx/storybook": "23.1.0-beta.
|
|
126
|
-
"nx": "23.1.0-beta.
|
|
119
|
+
"@nx/cypress": "23.1.0-beta.3",
|
|
120
|
+
"@nx/playwright": "23.1.0-beta.3",
|
|
121
|
+
"@nx/rsbuild": "23.1.0-beta.3",
|
|
122
|
+
"@nx/vite": "23.1.0-beta.3",
|
|
123
|
+
"@nx/vitest": "23.1.0-beta.3",
|
|
124
|
+
"@nx/webpack": "23.1.0-beta.3",
|
|
125
|
+
"@nx/storybook": "23.1.0-beta.3",
|
|
126
|
+
"nx": "23.1.0-beta.3"
|
|
127
127
|
},
|
|
128
128
|
"optionalDependencies": {
|
|
129
|
-
"@nx/vite": "23.1.0-beta.
|
|
129
|
+
"@nx/vite": "23.1.0-beta.3"
|
|
130
130
|
},
|
|
131
131
|
"publishConfig": {
|
|
132
132
|
"access": "public"
|