react-router 0.0.0-experimental-7c6c0664d → 0.0.0-experimental-16086cbff
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 +47 -5
- package/dist/development/chunk-QNZWGNGC.mjs +9618 -0
- package/dist/development/dom-export.d.mts +13 -0
- package/dist/development/dom-export.d.ts +13 -0
- package/dist/development/dom-export.js +5502 -0
- package/dist/development/dom-export.mjs +199 -0
- package/dist/development/fog-of-war-B_9-dVIj.d.mts +1595 -0
- package/dist/{lib/dom/lib.d.ts → development/fog-of-war-IYvSvFN8.d.ts} +700 -46
- package/dist/development/index.d.mts +839 -0
- package/dist/development/index.d.ts +839 -0
- package/dist/development/index.js +9764 -0
- package/dist/development/index.mjs +235 -0
- package/dist/development/lib/types.d.mts +2 -0
- package/dist/development/lib/types.d.ts +2 -0
- package/dist/development/lib/types.js +28 -0
- package/dist/{lib → development/lib}/types.mjs +1 -1
- package/dist/development/types-Dc4mFopM.d.mts +1617 -0
- package/dist/development/types-Dc4mFopM.d.ts +1617 -0
- package/dist/production/chunk-TDDKLVYD.mjs +9618 -0
- package/dist/production/dom-export.d.mts +13 -0
- package/dist/production/dom-export.d.ts +13 -0
- package/dist/production/dom-export.js +5502 -0
- package/dist/production/dom-export.mjs +199 -0
- package/dist/production/fog-of-war-B_9-dVIj.d.mts +1595 -0
- package/dist/production/fog-of-war-IYvSvFN8.d.ts +1595 -0
- package/dist/production/index.d.mts +839 -0
- package/dist/production/index.d.ts +839 -0
- package/dist/production/index.js +9764 -0
- package/dist/production/index.mjs +235 -0
- package/dist/production/lib/types.d.mts +2 -0
- package/dist/production/lib/types.d.ts +2 -0
- package/dist/production/lib/types.js +28 -0
- package/dist/production/lib/types.mjs +10 -0
- package/dist/production/types-Dc4mFopM.d.mts +1617 -0
- package/dist/production/types-Dc4mFopM.d.ts +1617 -0
- package/package.json +66 -15
- package/dist/dom-export.d.ts +0 -3
- package/dist/dom-export.mjs +0 -213
- package/dist/dom-export.mjs.map +0 -1
- package/dist/index.d.ts +0 -73
- package/dist/index.mjs +0 -12699
- package/dist/index.mjs.map +0 -1
- package/dist/lib/components.d.ts +0 -372
- package/dist/lib/context.d.ts +0 -115
- package/dist/lib/dom/dom.d.ts +0 -123
- package/dist/lib/dom/global.d.ts +0 -40
- package/dist/lib/dom/server.d.ts +0 -41
- package/dist/lib/dom/ssr/components.d.ts +0 -122
- package/dist/lib/dom/ssr/data.d.ts +0 -2
- package/dist/lib/dom/ssr/entry.d.ts +0 -48
- package/dist/lib/dom/ssr/errorBoundaries.d.ts +0 -36
- package/dist/lib/dom/ssr/errors.d.ts +0 -2
- package/dist/lib/dom/ssr/fallback.d.ts +0 -2
- package/dist/lib/dom/ssr/fog-of-war.d.ts +0 -28
- package/dist/lib/dom/ssr/invariant.d.ts +0 -2
- package/dist/lib/dom/ssr/links.d.ts +0 -25
- package/dist/lib/dom/ssr/markup.d.ts +0 -5
- package/dist/lib/dom/ssr/routeModules.d.ts +0 -183
- package/dist/lib/dom/ssr/routes-test-stub.d.ts +0 -59
- package/dist/lib/dom/ssr/routes.d.ts +0 -29
- package/dist/lib/dom/ssr/server.d.ts +0 -16
- package/dist/lib/dom/ssr/single-fetch.d.ts +0 -37
- package/dist/lib/dom-export/dom-router-provider.d.ts +0 -5
- package/dist/lib/dom-export/hydrated-router.d.ts +0 -5
- package/dist/lib/dom-export.d.ts +0 -3
- package/dist/lib/hooks.d.ts +0 -411
- package/dist/lib/router/history.d.ts +0 -253
- package/dist/lib/router/links.d.ts +0 -104
- package/dist/lib/router/router.d.ts +0 -544
- package/dist/lib/router/utils.d.ts +0 -497
- package/dist/lib/server-runtime/build.d.ts +0 -38
- package/dist/lib/server-runtime/cookies.d.ts +0 -62
- package/dist/lib/server-runtime/crypto.d.ts +0 -2
- package/dist/lib/server-runtime/data.d.ts +0 -11
- package/dist/lib/server-runtime/dev.d.ts +0 -8
- package/dist/lib/server-runtime/entry.d.ts +0 -3
- package/dist/lib/server-runtime/errors.d.ts +0 -51
- package/dist/lib/server-runtime/headers.d.ts +0 -3
- package/dist/lib/server-runtime/invariant.d.ts +0 -2
- package/dist/lib/server-runtime/markup.d.ts +0 -1
- package/dist/lib/server-runtime/mode.d.ts +0 -9
- package/dist/lib/server-runtime/routeMatching.d.ts +0 -8
- package/dist/lib/server-runtime/routeModules.d.ts +0 -40
- package/dist/lib/server-runtime/routes.d.ts +0 -11
- package/dist/lib/server-runtime/server.d.ts +0 -5
- package/dist/lib/server-runtime/serverHandoff.d.ts +0 -11
- package/dist/lib/server-runtime/sessions/cookieStorage.d.ts +0 -19
- package/dist/lib/server-runtime/sessions/memoryStorage.d.ts +0 -17
- package/dist/lib/server-runtime/sessions.d.ts +0 -140
- package/dist/lib/server-runtime/single-fetch.d.ts +0 -30
- package/dist/lib/server-runtime/typecheck.d.ts +0 -4
- package/dist/lib/server-runtime/warnings.d.ts +0 -1
- package/dist/lib/types.d.ts +0 -83
- package/dist/main-dom-export.js +0 -19
- package/dist/main.js +0 -19
- package/dist/react-router-dom.development.js +0 -199
- package/dist/react-router-dom.development.js.map +0 -1
- package/dist/react-router-dom.production.min.js +0 -12
- package/dist/react-router-dom.production.min.js.map +0 -1
- package/dist/react-router.development.js +0 -12528
- package/dist/react-router.development.js.map +0 -1
- package/dist/react-router.production.min.js +0 -12
- package/dist/react-router.production.min.js.map +0 -1
- package/dist/umd/react-router-dom.development.js +0 -241
- package/dist/umd/react-router-dom.development.js.map +0 -1
- package/dist/umd/react-router-dom.production.min.js +0 -12
- package/dist/umd/react-router-dom.production.min.js.map +0 -1
- package/dist/umd/react-router.development.js +0 -12834
- package/dist/umd/react-router.development.js.map +0 -1
- package/dist/umd/react-router.production.min.js +0 -12
- package/dist/umd/react-router.production.min.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 6.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- - Log deprecation warnings for v7 flags ([#11750](https://github.com/remix-run/react-router/pull/11750))
|
|
8
|
+
- Add deprecation warnings to `json`/`defer` in favor of returning raw objects
|
|
9
|
+
- These methods will be removed in React Router v7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Update JSDoc URLs for new website structure (add /v6/ segment) ([#12141](https://github.com/remix-run/react-router/pull/12141))
|
|
14
|
+
- Updated dependencies:
|
|
15
|
+
- `@remix-run/router@1.21.0`
|
|
16
|
+
|
|
17
|
+
## 6.27.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973))
|
|
22
|
+
- Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience ([#11967](https://github.com/remix-run/react-router/pull/11967))
|
|
23
|
+
- Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974))
|
|
24
|
+
- Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989))
|
|
25
|
+
- Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989))
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003))
|
|
30
|
+
|
|
31
|
+
- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003))
|
|
32
|
+
|
|
33
|
+
- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967))
|
|
34
|
+
|
|
35
|
+
- Updated dependencies:
|
|
36
|
+
- `@remix-run/router@1.20.0`
|
|
37
|
+
|
|
38
|
+
## 6.26.2
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies:
|
|
43
|
+
- `@remix-run/router@1.19.2`
|
|
44
|
+
|
|
3
45
|
## 6.26.1
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
|
@@ -54,7 +96,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
54
96
|
|
|
55
97
|
- Add support for Lazy Route Discovery (a.k.a. Fog of War) ([#11626](https://github.com/remix-run/react-router/pull/11626))
|
|
56
98
|
- RFC: <https://github.com/remix-run/react-router/discussions/11113>
|
|
57
|
-
- `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/
|
|
99
|
+
- `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/v6/routers/create-browser-router>
|
|
58
100
|
|
|
59
101
|
### Patch Changes
|
|
60
102
|
|
|
@@ -300,7 +342,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
300
342
|
### Minor Changes
|
|
301
343
|
|
|
302
344
|
- Add `unstable_flushSync` option to `useNavigate`/`useSumbit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005))
|
|
303
|
-
- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/
|
|
345
|
+
- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/v6/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. ([#10991](https://github.com/remix-run/react-router/pull/10991))
|
|
304
346
|
|
|
305
347
|
### Patch Changes
|
|
306
348
|
|
|
@@ -390,7 +432,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
390
432
|
|
|
391
433
|
### Minor Changes
|
|
392
434
|
|
|
393
|
-
- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/
|
|
435
|
+
- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/v6/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))
|
|
394
436
|
|
|
395
437
|
Existing behavior will no longer include `React.startTransition`:
|
|
396
438
|
|
|
@@ -473,7 +515,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
473
515
|
|
|
474
516
|
### Minor Changes
|
|
475
517
|
|
|
476
|
-
- Added support for [**Future Flags**](https://reactrouter.com/
|
|
518
|
+
- Added support for [**Future Flags**](https://reactrouter.com/v6/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](https://github.com/remix-run/react-router/pull/10207))
|
|
477
519
|
|
|
478
520
|
- When `future.v7_normalizeFormMethod === false` (default v6 behavior),
|
|
479
521
|
- `useNavigation().formMethod` is lowercase
|
|
@@ -750,7 +792,7 @@ function Comp() {
|
|
|
750
792
|
|
|
751
793
|
## 6.4.0
|
|
752
794
|
|
|
753
|
-
Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs](https://reactrouter.com), especially the [feature overview](https://reactrouter.com/start/overview) and the [tutorial](https://reactrouter.com/start/tutorial).
|
|
795
|
+
Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs](https://reactrouter.com), especially the [feature overview](https://reactrouter.com/en/6.4.0/start/overview) and the [tutorial](https://reactrouter.com/en/6.4.0/start/tutorial).
|
|
754
796
|
|
|
755
797
|
**New APIs**
|
|
756
798
|
|