react-router 7.18.1 → 7.18.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/development/{chunk-EVX4J2F5.js → chunk-3UVS743K.js} +7 -7
  3. package/dist/development/{chunk-KS7C4IRE.mjs → chunk-62JRHF6Z.mjs} +2 -2
  4. package/dist/{production/chunk-WICLSFKL.js → development/chunk-7XGYIT3M.js} +103 -103
  5. package/dist/development/{chunk-SA4DP3SF.js → chunk-HHGH3NKS.js} +1 -1
  6. package/dist/{production/chunk-3MA7PLKB.mjs → development/chunk-ZA36QIGN.mjs} +2 -2
  7. package/dist/development/dom-export.js +32 -32
  8. package/dist/development/dom-export.mjs +3 -3
  9. package/dist/development/index-react-server-client.js +4 -4
  10. package/dist/development/index-react-server-client.mjs +2 -2
  11. package/dist/development/index-react-server.js +12 -6
  12. package/dist/development/index-react-server.mjs +12 -6
  13. package/dist/development/index.js +90 -90
  14. package/dist/development/index.mjs +3 -3
  15. package/dist/development/lib/types/internal.js +1 -1
  16. package/dist/development/lib/types/internal.mjs +1 -1
  17. package/dist/{development/chunk-G5KIBF6U.js → production/chunk-FDTIF24W.js} +103 -103
  18. package/dist/{development/chunk-IJF3QNGC.mjs → production/chunk-SJTG3J2Q.mjs} +2 -2
  19. package/dist/production/{chunk-IEF7VMTA.js → chunk-TP6EHSSF.js} +1 -1
  20. package/dist/production/{chunk-GOIER6ML.js → chunk-VJZ67BZE.js} +7 -7
  21. package/dist/production/{chunk-3WDNQUW5.mjs → chunk-YBLPXYCV.mjs} +2 -2
  22. package/dist/production/dom-export.js +32 -32
  23. package/dist/production/dom-export.mjs +3 -3
  24. package/dist/production/index-react-server-client.js +4 -4
  25. package/dist/production/index-react-server-client.mjs +2 -2
  26. package/dist/production/index-react-server.js +12 -6
  27. package/dist/production/index-react-server.mjs +12 -6
  28. package/dist/production/index.js +90 -90
  29. package/dist/production/index.mjs +3 -3
  30. package/dist/production/lib/types/internal.js +1 -1
  31. package/dist/production/lib/types/internal.mjs +1 -1
  32. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # `react-router`
2
2
 
3
+ ## v7.18.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Harden RSC CSRF codepaths. ([#15353](https://github.com/remix-run/react-router/pull/15353))
8
+
3
9
  ## v7.18.1
4
10
 
5
11
  ### Patch Changes
@@ -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.18.1
2
+ * react-router v7.18.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkSA4DP3SFjs = require('./chunk-SA4DP3SF.js');
17
+ var _chunkHHGH3NKSjs = require('./chunk-HHGH3NKS.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 = _chunkSA4DP3SFjs.matchRoutes.call(void 0, routes, location, basename);
32
+ let initialMatches = _chunkHHGH3NKSjs.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 (_chunkSA4DP3SFjs.shouldHydrateRouteLoader.call(void 0,
37
+ if (_chunkHHGH3NKSjs.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 (_chunkSA4DP3SFjs.isRouteErrorResponse.call(void 0, error)) {
115
+ if (_chunkHHGH3NKSjs.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
- _chunkSA4DP3SFjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
123
+ _chunkHHGH3NKSjs.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 = _chunkSA4DP3SFjs.useRouteError.call(void 0, );
149
+ let error = _chunkHHGH3NKSjs.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.18.1
2
+ * react-router v7.18.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10307,7 +10307,7 @@ var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "un
10307
10307
  try {
10308
10308
  if (isBrowser2) {
10309
10309
  window.__reactRouterVersion = // @ts-expect-error
10310
- "7.18.1";
10310
+ "7.18.2";
10311
10311
  }
10312
10312
  } catch (e) {
10313
10313
  }