@remix-run/router 0.0.0-experimental-00c655af → 0.0.0-experimental-0f2dd78c
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/dist/router.cjs.js +9 -4
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.js +9 -4
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +9 -4
- 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 +7 -2
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-0f2dd78c
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -2320,7 +2320,9 @@ function createRouter(init) {
|
|
|
2320
2320
|
updateState({
|
|
2321
2321
|
fetchers: new Map(state.fetchers)
|
|
2322
2322
|
});
|
|
2323
|
-
return startRedirectNavigation(state, actionResult
|
|
2323
|
+
return startRedirectNavigation(state, actionResult, {
|
|
2324
|
+
submission
|
|
2325
|
+
});
|
|
2324
2326
|
} // Process any non-redirect errors thrown
|
|
2325
2327
|
|
|
2326
2328
|
|
|
@@ -3800,8 +3802,11 @@ function createClientSideRequest(history, location, signal, submission) {
|
|
|
3800
3802
|
formMethod,
|
|
3801
3803
|
formEncType,
|
|
3802
3804
|
formData
|
|
3803
|
-
} = submission;
|
|
3804
|
-
|
|
3805
|
+
} = submission; // Didn't think we needed this but it turns out unlike other methods, patch
|
|
3806
|
+
// won't be properly normalized to uppercase and results in a 405 error.
|
|
3807
|
+
// See: https://fetch.spec.whatwg.org/#concept-method
|
|
3808
|
+
|
|
3809
|
+
init.method = formMethod.toUpperCase();
|
|
3805
3810
|
init.body = formEncType === "application/x-www-form-urlencoded" ? convertFormDataToSearchParams(formData) : formData;
|
|
3806
3811
|
} // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)
|
|
3807
3812
|
|