react-router 0.0.0-experimental-a6d1d1d4e → 0.0.0-experimental-1d760f6a6

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/development/{chunk-OEAMHMGQ.mjs → chunk-QBMD7MNB.mjs} +293 -1025
  3. package/dist/development/dom-export.d.mts +2 -2
  4. package/dist/development/dom-export.d.ts +2 -2
  5. package/dist/development/dom-export.js +69 -103
  6. package/dist/development/dom-export.mjs +2 -2
  7. package/dist/development/{fog-of-war-DrUCUQQ-.d.ts → fog-of-war-BLArG-qZ.d.ts} +81 -168
  8. package/dist/{production/fog-of-war-C5L_Yd5M.d.mts → development/fog-of-war-D2zsXvum.d.mts} +81 -168
  9. package/dist/development/index.d.mts +8 -15
  10. package/dist/development/index.d.ts +8 -15
  11. package/dist/development/index.js +291 -1032
  12. package/dist/development/index.mjs +2 -19
  13. package/dist/development/lib/types/route-module.d.mts +1 -1
  14. package/dist/development/lib/types/route-module.d.ts +1 -1
  15. package/dist/development/lib/types/route-module.js +1 -1
  16. package/dist/development/lib/types/route-module.mjs +1 -1
  17. package/dist/development/{route-data-BIYebJr3.d.ts → route-data-C12CLHiN.d.mts} +1 -11
  18. package/dist/{production/route-data-BIYebJr3.d.mts → development/route-data-C12CLHiN.d.ts} +1 -11
  19. package/dist/production/{chunk-I2N4LFMP.mjs → chunk-DSJGM2GU.mjs} +293 -1025
  20. package/dist/production/dom-export.d.mts +2 -2
  21. package/dist/production/dom-export.d.ts +2 -2
  22. package/dist/production/dom-export.js +69 -103
  23. package/dist/production/dom-export.mjs +2 -2
  24. package/dist/production/{fog-of-war-DrUCUQQ-.d.ts → fog-of-war-BLArG-qZ.d.ts} +81 -168
  25. package/dist/{development/fog-of-war-C5L_Yd5M.d.mts → production/fog-of-war-D2zsXvum.d.mts} +81 -168
  26. package/dist/production/index.d.mts +8 -15
  27. package/dist/production/index.d.ts +8 -15
  28. package/dist/production/index.js +291 -1032
  29. package/dist/production/index.mjs +2 -19
  30. package/dist/production/lib/types/route-module.d.mts +1 -1
  31. package/dist/production/lib/types/route-module.d.ts +1 -1
  32. package/dist/production/lib/types/route-module.js +1 -1
  33. package/dist/production/lib/types/route-module.mjs +1 -1
  34. package/dist/production/{route-data-BIYebJr3.d.ts → route-data-C12CLHiN.d.mts} +1 -11
  35. package/dist/{development/route-data-BIYebJr3.d.mts → production/route-data-C12CLHiN.d.ts} +1 -11
  36. package/package.json +2 -33
  37. package/dist/development/rsc-export.d.mts +0 -1553
  38. package/dist/development/rsc-export.d.ts +0 -1553
  39. package/dist/development/rsc-export.js +0 -2413
  40. package/dist/development/rsc-export.mjs +0 -2385
  41. package/dist/production/rsc-export.d.mts +0 -1553
  42. package/dist/production/rsc-export.d.ts +0 -1553
  43. package/dist/production/rsc-export.js +0 -2413
  44. package/dist/production/rsc-export.mjs +0 -2385
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-a6d1d1d4e
2
+ * react-router v0.0.0-experimental-1d760f6a6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,7 +8,6 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- "use client";
12
11
  import {
13
12
  Action,
14
13
  Await,
@@ -34,8 +33,6 @@ import {
34
33
  NavigationContext,
35
34
  Outlet,
36
35
  PrefetchPageLinks,
37
- RSCHydratedRouter,
38
- RSCStaticRouter,
39
36
  RemixErrorBoundary,
40
37
  Route,
41
38
  RouteContext,
@@ -50,12 +47,8 @@ import {
50
47
  StaticRouter,
51
48
  StaticRouterProvider,
52
49
  ViewTransitionContext,
53
- WithErrorBoundaryProps,
54
- WithHydrateFallbackProps,
55
- WithRouteComponentProps,
56
50
  createBrowserHistory,
57
51
  createBrowserRouter,
58
- createCallServer,
59
52
  createClientRoutes,
60
53
  createClientRoutesWithHMRRevalidationOptOut,
61
54
  createCookie,
@@ -80,7 +73,6 @@ import {
80
73
  generatePath,
81
74
  getHydrationData,
82
75
  getPatchRoutesOnNavigationFunction,
83
- getServerStream,
84
76
  getTurboStreamSingleFetchDataStrategy,
85
77
  href,
86
78
  hydrationRouteProperties,
@@ -97,7 +89,6 @@ import {
97
89
  renderMatches,
98
90
  replace,
99
91
  resolvePath,
100
- routeRSCServerRequest,
101
92
  setDevServerHooks,
102
93
  shouldHydrateRouteLoader,
103
94
  unstable_RouterContextProvider,
@@ -134,7 +125,7 @@ import {
134
125
  useSearchParams,
135
126
  useSubmit,
136
127
  useViewTransitionState
137
- } from "./chunk-I2N4LFMP.mjs";
128
+ } from "./chunk-DSJGM2GU.mjs";
138
129
  export {
139
130
  Await,
140
131
  BrowserRouter,
@@ -152,8 +143,6 @@ export {
152
143
  Action as NavigationType,
153
144
  Outlet,
154
145
  PrefetchPageLinks,
155
- RSCHydratedRouter,
156
- RSCStaticRouter,
157
146
  Route,
158
147
  Router,
159
148
  RouterProvider,
@@ -175,9 +164,6 @@ export {
175
164
  ServerMode as UNSAFE_ServerMode,
176
165
  SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol,
177
166
  ViewTransitionContext as UNSAFE_ViewTransitionContext,
178
- WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps,
179
- WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps,
180
- WithRouteComponentProps as UNSAFE_WithRouteComponentProps,
181
167
  createBrowserHistory as UNSAFE_createBrowserHistory,
182
168
  createClientRoutes as UNSAFE_createClientRoutes,
183
169
  createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
@@ -194,7 +180,6 @@ export {
194
180
  useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery,
195
181
  useScrollRestoration as UNSAFE_useScrollRestoration,
196
182
  createBrowserRouter,
197
- createCallServer,
198
183
  createCookie,
199
184
  createCookieSessionStorage,
200
185
  createHashRouter,
@@ -212,7 +197,6 @@ export {
212
197
  createStaticRouter,
213
198
  data,
214
199
  generatePath,
215
- getServerStream,
216
200
  href,
217
201
  isCookie,
218
202
  isRouteErrorResponse,
@@ -225,7 +209,6 @@ export {
225
209
  renderMatches,
226
210
  replace,
227
211
  resolvePath,
228
- routeRSCServerRequest,
229
212
  HistoryRouter as unstable_HistoryRouter,
230
213
  unstable_RouterContextProvider,
231
214
  unstable_createContext,
@@ -1,4 +1,4 @@
1
- import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-BIYebJr3.mjs';
1
+ import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-C12CLHiN.mjs';
2
2
  import { A as AppLoadContext } from '../../data-CQbyyGzl.mjs';
3
3
  import 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-BIYebJr3.js';
1
+ import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-C12CLHiN.js';
2
2
  import { A as AppLoadContext } from '../../data-CQbyyGzl.js';
3
3
  import 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-a6d1d1d4e
2
+ * react-router v0.0.0-experimental-1d760f6a6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-a6d1d1d4e
2
+ * react-router v0.0.0-experimental-1d760f6a6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -912,11 +912,8 @@ interface Router {
912
912
  * @param routeId The parent route id or a callback function accepting `patch`
913
913
  * to perform batch patching
914
914
  * @param children The additional children routes
915
- * @param unstable_allowElementMutations Allow mutation or route elements on
916
- * existing routes. Intended for RSC-usage
917
- * only.
918
915
  */
919
- patchRoutes(routeId: string | null, children: AgnosticRouteObject[], unstable_allowElementMutations?: boolean): void;
916
+ patchRoutes(routeId: string | null, children: AgnosticRouteObject[]): void;
920
917
  /**
921
918
  * @private
922
919
  * PRIVATE - DO NOT USE
@@ -925,13 +922,6 @@ interface Router {
925
922
  * TODO: Replace this with granular route update APIs (addRoute, updateRoute, deleteRoute)
926
923
  */
927
924
  _internalSetRoutes(routes: AgnosticRouteObject[]): void;
928
- /**
929
- * @private
930
- * PRIVATE - DO NOT USE
931
- *
932
- * Cause subscribers to re-render. This is used to force a re-render.
933
- */
934
- _internalSetStateDoNotUseOrYouWillBreakYourApp(state: Partial<RouterState>): void;
935
925
  /**
936
926
  * @private
937
927
  * PRIVATE - DO NOT USE
@@ -912,11 +912,8 @@ interface Router {
912
912
  * @param routeId The parent route id or a callback function accepting `patch`
913
913
  * to perform batch patching
914
914
  * @param children The additional children routes
915
- * @param unstable_allowElementMutations Allow mutation or route elements on
916
- * existing routes. Intended for RSC-usage
917
- * only.
918
915
  */
919
- patchRoutes(routeId: string | null, children: AgnosticRouteObject[], unstable_allowElementMutations?: boolean): void;
916
+ patchRoutes(routeId: string | null, children: AgnosticRouteObject[]): void;
920
917
  /**
921
918
  * @private
922
919
  * PRIVATE - DO NOT USE
@@ -925,13 +922,6 @@ interface Router {
925
922
  * TODO: Replace this with granular route update APIs (addRoute, updateRoute, deleteRoute)
926
923
  */
927
924
  _internalSetRoutes(routes: AgnosticRouteObject[]): void;
928
- /**
929
- * @private
930
- * PRIVATE - DO NOT USE
931
- *
932
- * Cause subscribers to re-render. This is used to force a re-render.
933
- */
934
- _internalSetStateDoNotUseOrYouWillBreakYourApp(state: Partial<RouterState>): void;
935
925
  /**
936
926
  * @private
937
927
  * PRIVATE - DO NOT USE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "0.0.0-experimental-a6d1d1d4e",
3
+ "version": "0.0.0-experimental-1d760f6a6",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",
@@ -25,14 +25,9 @@
25
25
  ".": {
26
26
  "node": {
27
27
  "types": "./dist/development/index.d.ts",
28
- "module": "./dist/development/index.mjs",
29
28
  "module-sync": "./dist/development/index.mjs",
30
29
  "default": "./dist/development/index.js"
31
30
  },
32
- "module": {
33
- "types": "./dist/development/index.d.mts",
34
- "default": "./dist/development/index.mjs"
35
- },
36
31
  "import": {
37
32
  "types": "./dist/development/index.d.mts",
38
33
  "default": "./dist/development/index.mjs"
@@ -53,14 +48,9 @@
53
48
  "./dom": {
54
49
  "node": {
55
50
  "types": "./dist/development/dom-export.d.ts",
56
- "module": "./dist/development/dom-export.mjs",
57
51
  "module-sync": "./dist/development/dom-export.mjs",
58
52
  "default": "./dist/development/dom-export.js"
59
53
  },
60
- "module": {
61
- "types": "./dist/development/dom-export.d.mts",
62
- "default": "./dist/development/dom-export.mjs"
63
- },
64
54
  "import": {
65
55
  "types": "./dist/development/dom-export.d.mts",
66
56
  "default": "./dist/development/dom-export.mjs"
@@ -70,31 +60,11 @@
70
60
  "default": "./dist/development/dom-export.js"
71
61
  }
72
62
  },
73
- "./rsc": {
74
- "node": {
75
- "types": "./dist/development/rsc-export.d.ts",
76
- "module": "./dist/development/rsc-export.mjs",
77
- "module-sync": "./dist/development/rsc-export.mjs",
78
- "default": "./dist/development/rsc-export.js"
79
- },
80
- "module": {
81
- "types": "./dist/development/rsc-export.d.mts",
82
- "default": "./dist/development/rsc-export.mjs"
83
- },
84
- "import": {
85
- "types": "./dist/development/rsc-export.d.mts",
86
- "default": "./dist/development/rsc-export.mjs"
87
- },
88
- "default": {
89
- "types": "./dist/development/rsc-export.d.ts",
90
- "default": "./dist/development/rsc-export.js"
91
- }
92
- },
93
63
  "./package.json": "./package.json"
94
64
  },
95
65
  "wireit": {
96
66
  "build": {
97
- "command": "rimraf dist && tsup && tsup --config tsup.config.rsc.ts",
67
+ "command": "rimraf dist && tsup",
98
68
  "files": [
99
69
  "lib/**",
100
70
  "*.ts",
@@ -140,7 +110,6 @@
140
110
  },
141
111
  "scripts": {
142
112
  "build": "wireit",
143
- "watch": "tsup --watch & tsup --config tsup.config.rsc.ts --watch",
144
113
  "typecheck": "tsc"
145
114
  }
146
115
  }