react-router 7.7.0-pre.0 → 7.7.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 +12 -0
- package/dist/development/{browser-BSrXyLft.d.mts → browser-CcxeZJcQ.d.mts} +3 -30
- package/dist/development/{chunk-X5ZUQHCD.js → chunk-3JI27NJZ.js} +2129 -3933
- package/dist/{production/chunk-KWWBKJDT.mjs → development/chunk-NMPYIXDO.mjs} +31 -26
- package/dist/development/{chunk-PUMRC5B5.mjs → chunk-XPO7SIPX.mjs} +68 -23
- package/dist/development/chunk-XUCF2MWW.js +1928 -0
- package/dist/development/components-DzqPLVI1.d.mts +464 -0
- package/dist/development/dom-export.d.mts +3 -3
- package/dist/development/dom-export.js +9 -2
- package/dist/development/dom-export.mjs +9 -3
- package/dist/{production/index-react-server-client-DOK8MfYF.d.mts → development/index-react-server-client-CUidsuu_.d.mts} +2 -2
- package/dist/development/{index-react-server-client-LrDNRnlX.d.ts → index-react-server-client-kY8DvDF3.d.ts} +177 -529
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -2
- package/dist/development/index-react-server-client.js +11 -4
- package/dist/development/index-react-server-client.mjs +9 -3
- package/dist/development/index-react-server.js +20 -6
- package/dist/development/index-react-server.mjs +21 -6
- package/dist/development/index.d.mts +396 -9
- package/dist/development/index.d.ts +372 -12
- package/dist/development/index.js +132 -120
- package/dist/development/index.mjs +9 -3
- package/dist/development/lib/types/internal.d.mts +1 -1
- package/dist/development/lib/types/internal.d.ts +1 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{production/route-data-DAw7Esur.d.mts → development/route-data-DjzmHYNR.d.mts} +1 -1
- package/dist/{production/route-data-7aXBQ4I3.d.ts → development/routeModules-g5PTiDfO.d.ts} +156 -156
- package/dist/production/{browser-BSrXyLft.d.mts → browser-CcxeZJcQ.d.mts} +3 -30
- package/dist/production/chunk-CLUOEFXR.js +1928 -0
- package/dist/production/{chunk-LKVDO7TU.js → chunk-LW7Q6L7E.js} +2129 -3933
- package/dist/{development/chunk-PY5DBM7W.mjs → production/chunk-RXNLZWLS.mjs} +31 -26
- package/dist/production/{chunk-5AMJKWMN.mjs → chunk-V7D4RPWA.mjs} +68 -23
- package/dist/production/components-DzqPLVI1.d.mts +464 -0
- package/dist/production/dom-export.d.mts +3 -3
- package/dist/production/dom-export.js +9 -2
- package/dist/production/dom-export.mjs +9 -3
- package/dist/{development/index-react-server-client-DOK8MfYF.d.mts → production/index-react-server-client-CUidsuu_.d.mts} +2 -2
- package/dist/production/{index-react-server-client-LrDNRnlX.d.ts → index-react-server-client-kY8DvDF3.d.ts} +177 -529
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -2
- package/dist/production/index-react-server-client.js +11 -4
- package/dist/production/index-react-server-client.mjs +9 -3
- package/dist/production/index-react-server.js +20 -6
- package/dist/production/index-react-server.mjs +21 -6
- package/dist/production/index.d.mts +396 -9
- package/dist/production/index.d.ts +372 -12
- package/dist/production/index.js +132 -120
- package/dist/production/index.mjs +9 -3
- package/dist/production/lib/types/internal.d.mts +1 -1
- package/dist/production/lib/types/internal.d.ts +1 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/route-data-DAw7Esur.d.mts → production/route-data-DjzmHYNR.d.mts} +1 -1
- package/dist/{development/route-data-7aXBQ4I3.d.ts → production/routeModules-g5PTiDfO.d.ts} +156 -156
- package/package.json +1 -1
- package/dist/development/chunk-P37AORTA.js +0 -21
- package/dist/development/components-IaVqGBuO.d.mts +0 -816
- package/dist/production/chunk-P37AORTA.js +0 -21
- package/dist/production/components-IaVqGBuO.d.mts +0 -816
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 7.7.0-pre.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [REMOVE] Inject client route component props during RSC render ([#14007](https://github.com/remix-run/react-router/pull/14007))
|
|
8
|
+
|
|
9
|
+
## 7.7.0-pre.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [REMOVE] (continuation of #13872) In Framework Mode, remove leftover critical CSS elements in development after initial render if there's a hydration mismatch ([#13995](https://github.com/remix-run/react-router/pull/13995))
|
|
14
|
+
|
|
3
15
|
## 7.7.0-pre.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { u as unstable_RouterContextProvider, p as ActionFunction, C as ClientActionFunction, q as ClientLoaderFunction, r as HeadersFunction, s as LinksFunction, t as LoaderFunction, M as MetaFunction, v as ShouldRevalidateFunction, L as Location, g as Params, h as Router, R as RouterInit } from './route-data-DAw7Esur.mjs';
|
|
3
1
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { u as unstable_RouterContextProvider, i as ActionFunction, C as ClientActionFunction, j as ClientLoaderFunction, k as HeadersFunction, l as LinksFunction, m as LoaderFunction, M as MetaFunction, S as ShouldRevalidateFunction, c as Location, h as Params } from './route-data-DjzmHYNR.mjs';
|
|
4
4
|
|
|
5
5
|
type ServerContext = {
|
|
6
6
|
redirect?: Response;
|
|
@@ -120,33 +120,6 @@ declare function matchRSCServerRequest({ createTemporaryReferenceSet, basename,
|
|
|
120
120
|
}) => Response;
|
|
121
121
|
}): Promise<Response>;
|
|
122
122
|
|
|
123
|
-
type BrowserCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>, { temporaryReferences, }: {
|
|
124
|
-
temporaryReferences: unknown;
|
|
125
|
-
}) => Promise<unknown>;
|
|
126
|
-
type EncodeReplyFunction = (args: unknown[], options: {
|
|
127
|
-
temporaryReferences: unknown;
|
|
128
|
-
}) => Promise<BodyInit>;
|
|
129
|
-
declare global {
|
|
130
|
-
interface Window {
|
|
131
|
-
__router: Router;
|
|
132
|
-
__routerInitialized: boolean;
|
|
133
|
-
__routerActionID: number;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
declare function createCallServer({ createFromReadableStream, createTemporaryReferenceSet, encodeReply, fetch: fetchImplementation, }: {
|
|
137
|
-
createFromReadableStream: BrowserCreateFromReadableStreamFunction;
|
|
138
|
-
createTemporaryReferenceSet: () => unknown;
|
|
139
|
-
encodeReply: EncodeReplyFunction;
|
|
140
|
-
fetch?: (request: Request) => Promise<Response>;
|
|
141
|
-
}): (id: string, args: unknown[]) => Promise<unknown>;
|
|
142
|
-
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, unstable_getContext, }: {
|
|
143
|
-
createFromReadableStream: BrowserCreateFromReadableStreamFunction;
|
|
144
|
-
fetch?: (request: Request) => Promise<Response>;
|
|
145
|
-
payload: RSCPayload;
|
|
146
|
-
routeDiscovery?: "eager" | "lazy";
|
|
147
|
-
unstable_getContext?: RouterInit["unstable_getContext"];
|
|
148
|
-
}): React.JSX.Element;
|
|
149
|
-
|
|
150
123
|
declare global {
|
|
151
124
|
interface Window {
|
|
152
125
|
__FLIGHT_DATA: any[];
|
|
@@ -154,4 +127,4 @@ declare global {
|
|
|
154
127
|
}
|
|
155
128
|
declare function getRSCStream(): ReadableStream<any>;
|
|
156
129
|
|
|
157
|
-
export { type
|
|
130
|
+
export { type DecodeActionFunction as D, type LoadServerActionFunction as L, type RSCPayload as R, type DecodeFormStateFunction as a, type DecodeReplyFunction as b, type RSCManifestPayload as c, type RSCMatch as d, type RSCRenderPayload as e, type RSCRouteManifest as f, getRSCStream as g, type RSCRouteMatch as h, type RSCRouteConfigEntry as i, type RSCRouteConfig as j, matchRSCServerRequest as m };
|