@remix-run/router 0.0.0-experimental-42adf24c → 0.0.0-experimental-0db28b07
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 +26 -1
- package/dist/router.cjs.js +8 -2
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +2 -2
- package/dist/router.js +8 -3
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +8 -2
- package/dist/router.umd.js.map +1 -1
- package/dist/router.umd.min.js +2 -2
- package/dist/router.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/router.ts +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# `@remix-run/router`
|
|
2
2
|
|
|
3
|
+
## 1.5.0-pre.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Remove `instanceof` check for `DeferredData` to be resiliant to ESM/CJS boundaries in SSR bundling scenarios ([#10247](https://github.com/remix-run/react-router/pull/10247))
|
|
8
|
+
|
|
9
|
+
## 1.5.0-pre.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Added support for [**Future Flags**](https://reactrouter.com/en/main/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](https://github.com/remix-run/react-router/pull/10207))
|
|
14
|
+
|
|
15
|
+
- When `future.v7_normalizeFormMethod === false` (default v6 behavior),
|
|
16
|
+
- `useNavigation().formMethod` is lowercase
|
|
17
|
+
- `useFetcher().formMethod` is lowercase
|
|
18
|
+
- When `future.v7_normalizeFormMethod === true`:
|
|
19
|
+
- `useNavigation().formMethod` is uppercase
|
|
20
|
+
- `useFetcher().formMethod` is uppercase
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Provide fetcher submission to `shouldRevalidate` if the fetcher action redirects ([#10208](https://github.com/remix-run/react-router/pull/10208))
|
|
25
|
+
- Properly handle `lazy()` errors during router initialization ([#10201](https://github.com/remix-run/react-router/pull/10201))
|
|
26
|
+
- Update to latest `@remix-run/web-fetch@4.3.3` ([#10216](https://github.com/remix-run/react-router/pull/10216))
|
|
27
|
+
|
|
3
28
|
## 1.4.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
@@ -64,7 +89,7 @@
|
|
|
64
89
|
|
|
65
90
|
### Patch Changes
|
|
66
91
|
|
|
67
|
-
- Fix `generatePath` incorrectly applying parameters in some cases ([
|
|
92
|
+
- Fix `generatePath` incorrectly applying parameters in some cases ([#10078](https://github.com/remix-run/react-router/pull/10078))
|
|
68
93
|
|
|
69
94
|
## 1.3.3
|
|
70
95
|
|
package/dist/router.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/router v0.0.0-experimental-
|
|
2
|
+
* @remix-run/router v0.0.0-experimental-0db28b07
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -3777,7 +3777,7 @@ async function callLoaderOrAction(type, request, match, matches, manifest, detec
|
|
|
3777
3777
|
};
|
|
3778
3778
|
}
|
|
3779
3779
|
|
|
3780
|
-
if (result
|
|
3780
|
+
if (isDeferredData(result)) {
|
|
3781
3781
|
var _result$init, _result$init2;
|
|
3782
3782
|
|
|
3783
3783
|
return {
|
|
@@ -4080,6 +4080,11 @@ function isRedirectResult(result) {
|
|
|
4080
4080
|
return (result && result.type) === ResultType.redirect;
|
|
4081
4081
|
}
|
|
4082
4082
|
|
|
4083
|
+
function isDeferredData(value) {
|
|
4084
|
+
let deferred = value;
|
|
4085
|
+
return deferred && typeof deferred === "object" && typeof deferred.data === "object" && typeof deferred.subscribe === "function" && typeof deferred.cancel === "function" && typeof deferred.resolveData === "function";
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4083
4088
|
function isResponse(value) {
|
|
4084
4089
|
return value != null && typeof value.status === "number" && typeof value.statusText === "string" && typeof value.headers === "object" && typeof value.body !== "undefined";
|
|
4085
4090
|
}
|
|
@@ -4221,6 +4226,7 @@ exports.defer = defer;
|
|
|
4221
4226
|
exports.generatePath = generatePath;
|
|
4222
4227
|
exports.getStaticContextFromError = getStaticContextFromError;
|
|
4223
4228
|
exports.getToPathname = getToPathname;
|
|
4229
|
+
exports.isDeferredData = isDeferredData;
|
|
4224
4230
|
exports.isRouteErrorResponse = isRouteErrorResponse;
|
|
4225
4231
|
exports.joinPaths = joinPaths;
|
|
4226
4232
|
exports.json = json;
|