react-router 6.13.0-pre.1 → 6.13.0
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/CHANGELOG.md +6 -5
- package/dist/index.js +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +1 -1
- package/dist/react-router.production.min.js +1 -1
- package/dist/umd/react-router.development.js +1 -1
- package/dist/umd/react-router.production.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
-
## 6.13.0
|
|
3
|
+
## 6.13.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596))
|
|
7
|
+
- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596))
|
|
8
8
|
|
|
9
9
|
Existing behavior will no longer include `React.startTransition`:
|
|
10
10
|
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
<RouterProvider router={router} future={{ v7_startTransition: true }}/>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
## 6.12.2-pre.0
|
|
30
|
-
|
|
31
29
|
### Patch Changes
|
|
32
30
|
|
|
33
|
-
- Work around webpack/terser `React.startTransition` minification bug in production mode ([
|
|
31
|
+
- Work around webpack/terser `React.startTransition` minification bug in production mode ([#10588](https://github.com/remix-run/react-router/pull/10588))
|
|
34
32
|
|
|
35
33
|
## 6.12.1
|
|
36
34
|
|
|
35
|
+
> **Warning**
|
|
36
|
+
> Please use version `6.13.0` or later instead of `6.12.1`. This version suffers from a `webpack`/`terser` minification issue resulting in invalid minified code in your resulting production bundles which can cause issues in your application. See [#10579](https://github.com/remix-run/react-router/issues/10579) for more details.
|
|
37
|
+
|
|
37
38
|
### Patch Changes
|
|
38
39
|
|
|
39
40
|
- Adjust feature detection of `React.startTransition` to fix webpack + react 17 compilation error ([#10569](https://github.com/remix-run/react-router/pull/10569))
|
package/dist/index.js
CHANGED
package/dist/main.js
CHANGED