react-router 7.9.2-pre.3 → 7.9.3-pre.0
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 +15 -8
- package/dist/{production/chunk-W5PNW5ME.mjs → development/chunk-HHJJZWWP.mjs} +6 -10
- package/dist/{production/chunk-NQKLZ2ZX.js → development/chunk-MREZ7GBS.js} +134 -134
- package/dist/development/{chunk-665FWGER.js → chunk-OUSD3CXG.js} +7 -4
- package/dist/development/{chunk-2WPYM2VW.mjs → chunk-TZREDCP7.mjs} +8 -5
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.js +5 -2
- package/dist/development/index-react-server.mjs +5 -2
- package/dist/development/index.js +100 -104
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{chunk-ADN7TWEK.js → chunk-AR4BV4G2.js} +7 -4
- package/dist/production/{chunk-R53WSUO7.mjs → chunk-RX77WZIY.mjs} +8 -5
- package/dist/{development/chunk-QWBW4WZW.js → production/chunk-YE2RU2Y2.js} +134 -134
- package/dist/{development/chunk-AQYUIXYF.mjs → production/chunk-ZS4K3BVQ.mjs} +6 -10
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.js +5 -2
- package/dist/production/index-react-server.mjs +5 -2
- package/dist/production/index.js +100 -104
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.3-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isSession,
|
|
32
32
|
routeRSCServerRequest,
|
|
33
33
|
setDevServerHooks
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HHJJZWWP.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Action,
|
|
37
37
|
Await,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
withComponentProps,
|
|
142
142
|
withErrorBoundaryProps,
|
|
143
143
|
withHydrateFallbackProps
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-TZREDCP7.mjs";
|
|
145
145
|
export {
|
|
146
146
|
Await,
|
|
147
147
|
BrowserRouter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.3-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -4148,7 +4148,10 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, match, lazy
|
|
|
4148
4148
|
return shouldRevalidateLoader(match, unstable_shouldRevalidateArgs);
|
|
4149
4149
|
},
|
|
4150
4150
|
resolve(handlerOverride) {
|
|
4151
|
-
|
|
4151
|
+
let { lazy, loader, middleware } = match.route;
|
|
4152
|
+
let callHandler = isUsingNewApi || shouldLoad || handlerOverride && !isMutationMethod(request.method) && (lazy || loader);
|
|
4153
|
+
let isMiddlewareOnlyRoute = middleware && middleware.length > 0 && !loader && !lazy;
|
|
4154
|
+
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
4152
4155
|
return callLoaderOrAction({
|
|
4153
4156
|
request,
|
|
4154
4157
|
match,
|
|
@@ -5954,8 +5957,8 @@ async function fetchAndDecodeViaTurboStream(args, basename, targetRoutes) {
|
|
|
5954
5957
|
}
|
|
5955
5958
|
}
|
|
5956
5959
|
let res = await fetch(url, await createRequestInit(request));
|
|
5957
|
-
if (res.status
|
|
5958
|
-
throw new ErrorResponseImpl(
|
|
5960
|
+
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
5961
|
+
throw new ErrorResponseImpl(res.status, res.statusText, await res.text());
|
|
5959
5962
|
}
|
|
5960
5963
|
if (res.status === 204 && res.headers.has("X-Remix-Redirect")) {
|
|
5961
5964
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.3-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -4148,7 +4148,10 @@ function getDataStrategyMatch(mapRouteProperties2, manifest, request, match, laz
|
|
|
4148
4148
|
return shouldRevalidateLoader(match, unstable_shouldRevalidateArgs);
|
|
4149
4149
|
},
|
|
4150
4150
|
resolve(handlerOverride) {
|
|
4151
|
-
|
|
4151
|
+
let { lazy, loader, middleware } = match.route;
|
|
4152
|
+
let callHandler = isUsingNewApi || shouldLoad || handlerOverride && !isMutationMethod(request.method) && (lazy || loader);
|
|
4153
|
+
let isMiddlewareOnlyRoute = middleware && middleware.length > 0 && !loader && !lazy;
|
|
4154
|
+
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
4152
4155
|
return callLoaderOrAction({
|
|
4153
4156
|
request,
|
|
4154
4157
|
match,
|
|
@@ -7468,8 +7471,8 @@ async function fetchAndDecodeViaTurboStream(args, basename, targetRoutes) {
|
|
|
7468
7471
|
}
|
|
7469
7472
|
}
|
|
7470
7473
|
let res = await fetch(url, await createRequestInit(request));
|
|
7471
|
-
if (res.status
|
|
7472
|
-
throw new ErrorResponseImpl(
|
|
7474
|
+
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
7475
|
+
throw new ErrorResponseImpl(res.status, res.statusText, await res.text());
|
|
7473
7476
|
}
|
|
7474
7477
|
if (res.status === 204 && res.headers.has("X-Remix-Redirect")) {
|
|
7475
7478
|
return {
|
|
@@ -9110,7 +9113,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
9110
9113
|
try {
|
|
9111
9114
|
if (isBrowser) {
|
|
9112
9115
|
window.__reactRouterVersion = // @ts-expect-error
|
|
9113
|
-
"7.9.
|
|
9116
|
+
"7.9.3-pre.0";
|
|
9114
9117
|
}
|
|
9115
9118
|
} catch (e) {
|
|
9116
9119
|
}
|