File tree Expand file tree Collapse file tree 2 files changed +73
-0
lines changed
packages/react-router-dom-v5-compat Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-router-dom-v5-compat " : patch
3
+ ---
4
+
5
+ Add missed data router API re-exports
Original file line number Diff line number Diff line change 47
47
* deprecate the deep require if we wanted to avoid the duplication here.
48
48
*/
49
49
export type {
50
+ BrowserRouterProps ,
50
51
Hash ,
52
+ HashRouterProps ,
53
+ HistoryRouterProps ,
54
+ LinkProps ,
51
55
Location ,
52
56
Path ,
53
57
To ,
@@ -56,6 +60,7 @@ export type {
56
60
NavigateOptions ,
57
61
NavigateProps ,
58
62
Navigator ,
63
+ NavLinkProps ,
59
64
OutletProps ,
60
65
Params ,
61
66
ParamParseKey ,
@@ -70,6 +75,36 @@ export type {
70
75
Pathname ,
71
76
Search ,
72
77
RoutesProps ,
78
+ ParamKeyValuePair ,
79
+ URLSearchParamsInit ,
80
+ // New stuff from RR 6.4
81
+ ActionFunction ,
82
+ ActionFunctionArgs ,
83
+ AwaitProps ,
84
+ unstable_Blocker ,
85
+ unstable_BlockerFunction ,
86
+ DataRouteMatch ,
87
+ DataRouteObject ,
88
+ Fetcher ,
89
+ FetcherWithComponents ,
90
+ FormEncType ,
91
+ FormMethod ,
92
+ FormProps ,
93
+ GetScrollRestorationKeyFunction ,
94
+ IndexRouteObject ,
95
+ JsonFunction ,
96
+ LoaderFunction ,
97
+ LoaderFunctionArgs ,
98
+ Navigation ,
99
+ NonIndexRouteObject ,
100
+ PathPattern ,
101
+ RedirectFunction ,
102
+ RelativeRoutingType ,
103
+ RouterProviderProps ,
104
+ ScrollRestorationProps ,
105
+ ShouldRevalidateFunction ,
106
+ SubmitFunction ,
107
+ SubmitOptions ,
73
108
} from "./react-router-dom" ;
74
109
export {
75
110
BrowserRouter ,
@@ -109,6 +144,39 @@ export {
109
144
useResolvedPath ,
110
145
useRoutes ,
111
146
useSearchParams ,
147
+ // New stuff from 6.4
148
+ AbortedDeferredError ,
149
+ Await ,
150
+ RouterProvider ,
151
+ ScrollRestoration ,
152
+ createBrowserRouter ,
153
+ createHashRouter ,
154
+ createMemoryRouter ,
155
+ createRoutesFromElements ,
156
+ defer ,
157
+ isRouteErrorResponse ,
158
+ Form ,
159
+ json ,
160
+ redirect ,
161
+ useActionData ,
162
+ useAsyncError ,
163
+ useAsyncValue ,
164
+ useBeforeUnload ,
165
+ unstable_useBlocker ,
166
+ useFetcher ,
167
+ useFetchers ,
168
+ useFormAction ,
169
+ useLoaderData ,
170
+ useMatches ,
171
+ useNavigation ,
172
+ unstable_usePrompt ,
173
+ useRevalidator ,
174
+ useRouteError ,
175
+ useRouteLoaderData ,
176
+ useSubmit ,
177
+ UNSAFE_DataRouterContext ,
178
+ UNSAFE_DataRouterStateContext ,
179
+ UNSAFE_useScrollRestoration ,
112
180
} from "./react-router-dom" ;
113
181
114
182
export type { StaticRouterProps } from "./lib/components" ;
You can’t perform that action at this time.
0 commit comments