react-router 7.14.0 → 7.14.1

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 (72) hide show
  1. package/CHANGELOG.md +17 -24
  2. package/dist/development/{browser-C9Ar1yxG.d.ts → browser-CtktEGQs.d.ts} +2 -2
  3. package/dist/development/{browser-vtIR1Kpe.d.mts → browser-D-3-U2Jj.d.mts} +2 -2
  4. package/dist/development/{chunk-NXTEWSJO.js → chunk-3F6IB66O.js} +99 -99
  5. package/dist/development/{chunk-WAVMRYR2.js → chunk-7VLQJKNG.js} +7 -7
  6. package/dist/development/{chunk-2UH5WJXA.mjs → chunk-BFXCU3MI.mjs} +2 -2
  7. package/dist/development/{chunk-QFMPRPBF.mjs → chunk-OE4NN4TA.mjs} +24 -14
  8. package/dist/development/{chunk-IK6APEEG.js → chunk-YMKMFAYZ.js} +23 -13
  9. package/dist/{production/context-phCt_zmH.d.mts → development/context-BzhbVly6.d.mts} +1 -1
  10. package/dist/development/dom-export.d.mts +3 -3
  11. package/dist/development/dom-export.d.ts +3 -3
  12. package/dist/development/dom-export.js +27 -27
  13. package/dist/development/dom-export.mjs +3 -3
  14. package/dist/development/{index-react-server-client-luDbagNU.d.ts → index-react-server-client-CimaPp9o.d.ts} +2 -2
  15. package/dist/{production/index-react-server-client-BwWaHAr3.d.mts → development/index-react-server-client-WSaoxloq.d.mts} +2 -2
  16. package/dist/development/index-react-server-client.d.mts +3 -3
  17. package/dist/development/index-react-server-client.d.ts +3 -3
  18. package/dist/development/index-react-server-client.js +4 -4
  19. package/dist/development/index-react-server-client.mjs +2 -2
  20. package/dist/development/index-react-server.d.mts +6 -0
  21. package/dist/development/index-react-server.d.ts +6 -0
  22. package/dist/development/index-react-server.js +9 -6
  23. package/dist/development/index-react-server.mjs +9 -6
  24. package/dist/development/index.d.mts +10 -10
  25. package/dist/development/index.d.ts +10 -10
  26. package/dist/development/index.js +82 -82
  27. package/dist/development/index.mjs +3 -3
  28. package/dist/{production/instrumentation-BYr6ff5D.d.ts → development/instrumentation-CMVbvxj9.d.ts} +1 -1
  29. package/dist/development/lib/types/internal.d.mts +2 -2
  30. package/dist/development/lib/types/internal.d.ts +2 -2
  31. package/dist/development/lib/types/internal.js +1 -1
  32. package/dist/development/lib/types/internal.mjs +1 -1
  33. package/dist/development/{register-CkcGwv27.d.ts → register-D1WlEpq9.d.ts} +1 -1
  34. package/dist/development/{register-CTxsJBKQ.d.mts → register-aE9ob3TK.d.mts} +1 -1
  35. package/dist/development/{routeModules-CA7kSxJJ.d.ts → routeModules-CM_clkdE.d.ts} +6 -0
  36. package/dist/development/{routeModules-BRrCYrSL.d.mts → routeModules-Djumx26z.d.mts} +6 -0
  37. package/dist/production/{browser-C9Ar1yxG.d.ts → browser-CtktEGQs.d.ts} +2 -2
  38. package/dist/production/{browser-vtIR1Kpe.d.mts → browser-D-3-U2Jj.d.mts} +2 -2
  39. package/dist/production/{chunk-355DUZMC.js → chunk-3SUPTI2U.js} +7 -7
  40. package/dist/production/{chunk-X5LK27NZ.mjs → chunk-G5ZWO7Q6.mjs} +2 -2
  41. package/dist/production/{chunk-FPT5DLVJ.js → chunk-LIOP3ILM.js} +99 -99
  42. package/dist/production/{chunk-HZQGQD2X.mjs → chunk-SPR7R4GU.mjs} +24 -14
  43. package/dist/production/{chunk-4TJ7T2OQ.js → chunk-UVEQGZIH.js} +23 -13
  44. package/dist/{development/context-phCt_zmH.d.mts → production/context-BzhbVly6.d.mts} +1 -1
  45. package/dist/production/dom-export.d.mts +3 -3
  46. package/dist/production/dom-export.d.ts +3 -3
  47. package/dist/production/dom-export.js +27 -27
  48. package/dist/production/dom-export.mjs +3 -3
  49. package/dist/production/{index-react-server-client-luDbagNU.d.ts → index-react-server-client-CimaPp9o.d.ts} +2 -2
  50. package/dist/{development/index-react-server-client-BwWaHAr3.d.mts → production/index-react-server-client-WSaoxloq.d.mts} +2 -2
  51. package/dist/production/index-react-server-client.d.mts +3 -3
  52. package/dist/production/index-react-server-client.d.ts +3 -3
  53. package/dist/production/index-react-server-client.js +4 -4
  54. package/dist/production/index-react-server-client.mjs +2 -2
  55. package/dist/production/index-react-server.d.mts +6 -0
  56. package/dist/production/index-react-server.d.ts +6 -0
  57. package/dist/production/index-react-server.js +9 -6
  58. package/dist/production/index-react-server.mjs +9 -6
  59. package/dist/production/index.d.mts +10 -10
  60. package/dist/production/index.d.ts +10 -10
  61. package/dist/production/index.js +82 -82
  62. package/dist/production/index.mjs +3 -3
  63. package/dist/{development/instrumentation-BYr6ff5D.d.ts → production/instrumentation-CMVbvxj9.d.ts} +1 -1
  64. package/dist/production/lib/types/internal.d.mts +2 -2
  65. package/dist/production/lib/types/internal.d.ts +2 -2
  66. package/dist/production/lib/types/internal.js +1 -1
  67. package/dist/production/lib/types/internal.mjs +1 -1
  68. package/dist/production/{register-CkcGwv27.d.ts → register-D1WlEpq9.d.ts} +1 -1
  69. package/dist/production/{register-CTxsJBKQ.d.mts → register-aE9ob3TK.d.mts} +1 -1
  70. package/dist/production/{routeModules-CA7kSxJJ.d.ts → routeModules-CM_clkdE.d.ts} +6 -0
  71. package/dist/production/{routeModules-BRrCYrSL.d.mts → routeModules-Djumx26z.d.mts} +6 -0
  72. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { R as RouteModule, e as LinkDescriptor, L as Location, F as Func, f as Pretty, g as MetaDescriptor, G as GetLoaderData, h as ServerDataFunctionArgs, i as MiddlewareNextFunction, j as ClientDataFunctionArgs, D as DataStrategyResult, k as ServerDataFrom, N as Normalize, l as GetActionData } from '../../routeModules-BRrCYrSL.mjs';
2
- import { R as RouteFiles, P as Pages } from '../../register-CTxsJBKQ.mjs';
1
+ import { R as RouteModule, e as LinkDescriptor, L as Location, F as Func, f as Pretty, g as MetaDescriptor, G as GetLoaderData, h as ServerDataFunctionArgs, i as MiddlewareNextFunction, j as ClientDataFunctionArgs, D as DataStrategyResult, k as ServerDataFrom, N as Normalize, l as GetActionData } from '../../routeModules-Djumx26z.mjs';
2
+ import { R as RouteFiles, P as Pages } from '../../register-aE9ob3TK.mjs';
3
3
  import 'react';
4
4
 
5
5
  type MaybePromise<T> = T | Promise<T>;
@@ -1,5 +1,5 @@
1
- import { R as RouteModule, t as LinkDescriptor, L as Location, u as Func, v as Pretty, w as MetaDescriptor, G as GetLoaderData, x as ServerDataFunctionArgs, y as MiddlewareNextFunction, z as ClientDataFunctionArgs, B as DataStrategyResult, E as ServerDataFrom, N as Normalize, I as GetActionData } from '../../routeModules-CA7kSxJJ.js';
2
- import { R as RouteFiles, P as Pages } from '../../register-CkcGwv27.js';
1
+ import { R as RouteModule, t as LinkDescriptor, L as Location, u as Func, v as Pretty, w as MetaDescriptor, G as GetLoaderData, x as ServerDataFunctionArgs, y as MiddlewareNextFunction, z as ClientDataFunctionArgs, B as DataStrategyResult, E as ServerDataFrom, N as Normalize, I as GetActionData } from '../../routeModules-CM_clkdE.js';
2
+ import { R as RouteFiles, P as Pages } from '../../register-D1WlEpq9.js';
3
3
  import 'react';
4
4
 
5
5
  type MaybePromise<T> = T | Promise<T>;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * react-router v7.14.0
2
+ * react-router v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.0
2
+ * react-router v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { R as RouteModule } from './routeModules-CA7kSxJJ.js';
1
+ import { R as RouteModule } from './routeModules-CM_clkdE.js';
2
2
 
3
3
  /**
4
4
  * Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
@@ -1,4 +1,4 @@
1
- import { R as RouteModule } from './routeModules-BRrCYrSL.mjs';
1
+ import { R as RouteModule } from './routeModules-Djumx26z.mjs';
2
2
 
3
3
  /**
4
4
  * Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
@@ -1067,6 +1067,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
1067
1067
  * Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1068
1068
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1069
1069
  *
1070
+ * This utility accepts absolute URLs and can navigate to external domains, so
1071
+ * the application should validate any user-supplied inputs to redirects.
1072
+ *
1070
1073
  * @example
1071
1074
  * import { redirect } from "react-router";
1072
1075
  *
@@ -1096,6 +1099,9 @@ declare const redirect: RedirectFunction;
1096
1099
  * and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1097
1100
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1098
1101
  *
1102
+ * This utility accepts absolute URLs and can navigate to external domains, so
1103
+ * the application should validate any user-supplied inputs to redirects.
1104
+ *
1099
1105
  * ```tsx filename=routes/logout.tsx
1100
1106
  * import { redirectDocument } from "react-router";
1101
1107
  *
@@ -1067,6 +1067,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
1067
1067
  * Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1068
1068
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1069
1069
  *
1070
+ * This utility accepts absolute URLs and can navigate to external domains, so
1071
+ * the application should validate any user-supplied inputs to redirects.
1072
+ *
1070
1073
  * @example
1071
1074
  * import { redirect } from "react-router";
1072
1075
  *
@@ -1096,6 +1099,9 @@ declare const redirect: RedirectFunction;
1096
1099
  * and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1097
1100
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1098
1101
  *
1102
+ * This utility accepts absolute URLs and can navigate to external domains, so
1103
+ * the application should validate any user-supplied inputs to redirects.
1104
+ *
1099
1105
  * ```tsx filename=routes/logout.tsx
1100
1106
  * import { redirectDocument } from "react-router";
1101
1107
  *
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterInit } from './instrumentation-BYr6ff5D.js';
3
- import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-CA7kSxJJ.js';
2
+ import { R as RouterInit } from './instrumentation-CMVbvxj9.js';
3
+ import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-CM_clkdE.js';
4
4
 
5
5
  declare function getRequest(): Request;
6
6
  type RSCRouteConfigEntryBase = {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterInit } from './context-phCt_zmH.mjs';
3
- import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-BRrCYrSL.mjs';
2
+ import { R as RouterInit } from './context-BzhbVly6.mjs';
3
+ import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-Djumx26z.mjs';
4
4
 
5
5
  declare function getRequest(): Request;
6
6
  type RSCRouteConfigEntryBase = {
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }/**
2
- * react-router v7.14.0
2
+ * react-router v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunk4TJ7T2OQjs = require('./chunk-4TJ7T2OQ.js');
17
+ var _chunkUVEQGZIHjs = require('./chunk-UVEQGZIH.js');
18
18
 
19
19
  // lib/dom/ssr/hydration.tsx
20
20
  function getHydrationData({
@@ -29,12 +29,12 @@ function getHydrationData({
29
29
  ...state,
30
30
  loaderData: { ...state.loaderData }
31
31
  };
32
- let initialMatches = _chunk4TJ7T2OQjs.matchRoutes.call(void 0, routes, location, basename);
32
+ let initialMatches = _chunkUVEQGZIHjs.matchRoutes.call(void 0, routes, location, basename);
33
33
  if (initialMatches) {
34
34
  for (let match of initialMatches) {
35
35
  let routeId = match.route.id;
36
36
  let routeInfo = getRouteInfo(routeId);
37
- if (_chunk4TJ7T2OQjs.shouldHydrateRouteLoader.call(void 0,
37
+ if (_chunkUVEQGZIHjs.shouldHydrateRouteLoader.call(void 0,
38
38
  routeId,
39
39
  routeInfo.clientLoader,
40
40
  routeInfo.hasLoader,
@@ -112,7 +112,7 @@ function RSCDefaultRootErrorBoundaryImpl({
112
112
  }
113
113
  }
114
114
  );
115
- if (_chunk4TJ7T2OQjs.isRouteErrorResponse.call(void 0, error)) {
115
+ if (_chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, error)) {
116
116
  return /* @__PURE__ */ _react2.default.createElement(
117
117
  ErrorWrapper,
118
118
  {
@@ -120,7 +120,7 @@ function RSCDefaultRootErrorBoundaryImpl({
120
120
  title: "Unhandled Thrown Response!"
121
121
  },
122
122
  /* @__PURE__ */ _react2.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
123
- _chunk4TJ7T2OQjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
123
+ _chunkUVEQGZIHjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
124
124
  );
125
125
  }
126
126
  let errorInstance;
@@ -146,7 +146,7 @@ function RSCDefaultRootErrorBoundaryImpl({
146
146
  function RSCDefaultRootErrorBoundary({
147
147
  hasRootLayout
148
148
  }) {
149
- let error = _chunk4TJ7T2OQjs.useRouteError.call(void 0, );
149
+ let error = _chunkUVEQGZIHjs.useRouteError.call(void 0, );
150
150
  if (hasRootLayout === void 0) {
151
151
  throw new Error("Missing 'hasRootLayout' prop");
152
152
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.0
2
+ * react-router v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -51,7 +51,7 @@ import {
51
51
  withComponentProps,
52
52
  withErrorBoundaryProps,
53
53
  withHydrateFallbackProps
54
- } from "./chunk-HZQGQD2X.mjs";
54
+ } from "./chunk-SPR7R4GU.mjs";
55
55
 
56
56
  // lib/dom/ssr/server.tsx
57
57
  import * as React from "react";