react-router 6.21.0-pre.0 → 6.21.0-pre.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.
- package/CHANGELOG.md +11 -3
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/lib/components.d.ts +1 -3
- package/dist/lib/context.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +6 -6
- package/dist/react-router.development.js.map +1 -1
- package/dist/react-router.production.min.js +2 -2
- package/dist/react-router.production.min.js.map +1 -1
- package/dist/umd/react-router.development.js +6 -6
- package/dist/umd/react-router.development.js.map +1 -1
- package/dist/umd/react-router.production.min.js +2 -2
- package/dist/umd/react-router.production.min.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/components.d.ts
CHANGED
|
@@ -107,9 +107,7 @@ export interface RouterProps {
|
|
|
107
107
|
navigationType?: NavigationType;
|
|
108
108
|
navigator: Navigator;
|
|
109
109
|
static?: boolean;
|
|
110
|
-
future?:
|
|
111
|
-
v7_relativeSplatPath?: boolean;
|
|
112
|
-
};
|
|
110
|
+
future?: Partial<Pick<FutureConfig, "v7_relativeSplatPath">>;
|
|
113
111
|
}
|
|
114
112
|
/**
|
|
115
113
|
* Provides location context for the rest of the app.
|
package/dist/lib/context.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface RouteMatch<ParamKey extends string = string, RouteObjectType ex
|
|
|
47
47
|
}
|
|
48
48
|
export interface DataRouteMatch extends RouteMatch<string, DataRouteObject> {
|
|
49
49
|
}
|
|
50
|
-
export interface DataRouterContextObject extends NavigationContextObject {
|
|
50
|
+
export interface DataRouterContextObject extends Omit<NavigationContextObject, "future"> {
|
|
51
51
|
router: Router;
|
|
52
52
|
staticContext?: StaticHandlerContext;
|
|
53
53
|
}
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router v6.21.0-pre.
|
|
2
|
+
* React Router v6.21.0-pre.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -876,10 +876,7 @@ function RouterProvider({
|
|
|
876
876
|
router,
|
|
877
877
|
navigator,
|
|
878
878
|
static: false,
|
|
879
|
-
basename
|
|
880
|
-
future: {
|
|
881
|
-
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
882
|
-
}
|
|
879
|
+
basename
|
|
883
880
|
}), [router, navigator, basename]);
|
|
884
881
|
// The fragment and {null} here are important! We need them to keep React 18's
|
|
885
882
|
// useId happy when we are server-rendering since we may have a <script> here
|
|
@@ -895,7 +892,10 @@ function RouterProvider({
|
|
|
895
892
|
basename: basename,
|
|
896
893
|
location: state.location,
|
|
897
894
|
navigationType: state.historyAction,
|
|
898
|
-
navigator: navigator
|
|
895
|
+
navigator: navigator,
|
|
896
|
+
future: {
|
|
897
|
+
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
898
|
+
}
|
|
899
899
|
}, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
900
900
|
routes: router.routes,
|
|
901
901
|
future: router.future,
|