react-router 7.1.4-pre.0 → 7.1.4
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 +7 -2
- package/dist/development/{chunk-6WHQQTEJ.mjs → chunk-W3FMU5Y5.mjs} +2 -2
- package/dist/development/dom-export.js +1 -1
- package/dist/development/dom-export.mjs +2 -2
- package/dist/development/index.js +2 -2
- package/dist/development/index.mjs +2 -2
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/production/{chunk-REQYSU7D.mjs → chunk-FIUQORTV.mjs} +2 -2
- package/dist/production/dom-export.js +1 -1
- package/dist/production/dom-export.mjs +2 -2
- package/dist/production/index.js +2 -2
- package/dist/production/index.mjs +2 -2
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
-
## 7.1.4
|
|
3
|
+
## 7.1.4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Internal reorg to clean up some duplicated route module types ([#12799](https://github.com/remix-run/react-router/pull/12799))
|
|
8
|
+
|
|
8
9
|
- Properly handle status codes that cannot have a body in single fetch responses (204, etc.) ([#12760](https://github.com/remix-run/react-router/pull/12760))
|
|
10
|
+
|
|
9
11
|
- Stop erroring on resource routes that return raw strings/objects and instead serialize them as `text/plain` or `application/json` responses ([#12848](https://github.com/remix-run/react-router/pull/12848))
|
|
10
12
|
|
|
11
13
|
- This only applies when accessed as a resource route without the `.data` extension
|
|
12
14
|
- When accessed from a Single Fetch `.data` request, they will still be encoded via `turbo-stream`
|
|
13
15
|
|
|
14
16
|
- REMOVE: limit matchRoutes optimization to client side ([#12882](https://github.com/remix-run/react-router/pull/12882))
|
|
17
|
+
|
|
15
18
|
- Optimize Lazy Route Discovery path discovery to favor a single `querySelectorAll` call at the `body` level instead of many calls at the sub-tree level ([#12731](https://github.com/remix-run/react-router/pull/12731))
|
|
19
|
+
|
|
16
20
|
- - Properly bubble headers as `errorHeaders` when throwing a `data()` result ([#12846](https://github.com/remix-run/react-router/pull/12846))
|
|
17
21
|
- Avoid duplication of `Set-Cookie` headers could be duplicated if also returned from `headers`
|
|
22
|
+
|
|
18
23
|
- Optimize route matching by skipping redundant `matchRoutes` calls when possible ([#12800](https://github.com/remix-run/react-router/pull/12800))
|
|
19
24
|
|
|
20
25
|
## 7.1.3
|
|
@@ -80,7 +85,7 @@ _No changes_
|
|
|
80
85
|
- Collapse `@remix-run/server-runtime` into `react-router`
|
|
81
86
|
- Collapse `@remix-run/testing` into `react-router`
|
|
82
87
|
|
|
83
|
-
- Remove
|
|
88
|
+
- Remove single\_fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
|
|
84
89
|
|
|
85
90
|
- Drop support for Node 16, React Router SSR now requires Node 18 or higher ([#11391](https://github.com/remix-run/react-router/pull/11391))
|
|
86
91
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -6981,7 +6981,7 @@ function mergeRefs(...refs) {
|
|
|
6981
6981
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
6982
6982
|
try {
|
|
6983
6983
|
if (isBrowser) {
|
|
6984
|
-
window.__reactRouterVersion = "7.1.4
|
|
6984
|
+
window.__reactRouterVersion = "7.1.4";
|
|
6985
6985
|
}
|
|
6986
6986
|
} catch (e) {
|
|
6987
6987
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
matchRoutes,
|
|
26
26
|
shouldHydrateRouteLoader,
|
|
27
27
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-W3FMU5Y5.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -7126,7 +7126,7 @@ function mergeRefs(...refs) {
|
|
|
7126
7126
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7127
7127
|
try {
|
|
7128
7128
|
if (isBrowser) {
|
|
7129
|
-
window.__reactRouterVersion = "7.1.4
|
|
7129
|
+
window.__reactRouterVersion = "7.1.4";
|
|
7130
7130
|
}
|
|
7131
7131
|
} catch (e) {
|
|
7132
7132
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
useSearchParams,
|
|
121
121
|
useSubmit,
|
|
122
122
|
useViewTransitionState
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-W3FMU5Y5.mjs";
|
|
124
124
|
export {
|
|
125
125
|
Await,
|
|
126
126
|
BrowserRouter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -6981,7 +6981,7 @@ function mergeRefs(...refs) {
|
|
|
6981
6981
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
6982
6982
|
try {
|
|
6983
6983
|
if (isBrowser) {
|
|
6984
|
-
window.__reactRouterVersion = "7.1.4
|
|
6984
|
+
window.__reactRouterVersion = "7.1.4";
|
|
6985
6985
|
}
|
|
6986
6986
|
} catch (e) {
|
|
6987
6987
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
matchRoutes,
|
|
26
26
|
shouldHydrateRouteLoader,
|
|
27
27
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FIUQORTV.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
package/dist/production/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -7126,7 +7126,7 @@ function mergeRefs(...refs) {
|
|
|
7126
7126
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7127
7127
|
try {
|
|
7128
7128
|
if (isBrowser) {
|
|
7129
|
-
window.__reactRouterVersion = "7.1.4
|
|
7129
|
+
window.__reactRouterVersion = "7.1.4";
|
|
7130
7130
|
}
|
|
7131
7131
|
} catch (e) {
|
|
7132
7132
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.1.4
|
|
2
|
+
* react-router v7.1.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
useSearchParams,
|
|
121
121
|
useSubmit,
|
|
122
122
|
useViewTransitionState
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-FIUQORTV.mjs";
|
|
124
124
|
export {
|
|
125
125
|
Await,
|
|
126
126
|
BrowserRouter,
|