@react-router/cloudflare 7.0.0-pre.1 → 7.0.0-pre.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.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/sessions/workersKVStorage.js +1 -1
- package/dist/worker.js +10 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
package/dist/worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/cloudflare v7.0.0-pre.
|
|
2
|
+
* @react-router/cloudflare v7.0.0-pre.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,6 +14,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
14
14
|
|
|
15
15
|
var reactRouter = require('react-router');
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* A function that returns the value to use as `context` in route `loader` and
|
|
19
|
+
* `action` functions.
|
|
20
|
+
*
|
|
21
|
+
* You can think of this as an escape hatch that allows you to pass
|
|
22
|
+
* environment/platform-specific values through to your loader/action.
|
|
23
|
+
*/
|
|
24
|
+
|
|
17
25
|
function createRequestHandler({
|
|
18
26
|
build,
|
|
19
27
|
mode,
|
|
@@ -58,6 +66,7 @@ function createPagesFunctionHandler({
|
|
|
58
66
|
});
|
|
59
67
|
let handleFetch = async context => {
|
|
60
68
|
let response;
|
|
69
|
+
|
|
61
70
|
// https://github.com/cloudflare/wrangler2/issues/117
|
|
62
71
|
context.request.headers.delete("if-none-match");
|
|
63
72
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/cloudflare",
|
|
3
|
-
"version": "7.0.0-pre.
|
|
3
|
+
"version": "7.0.0-pre.2",
|
|
4
4
|
"description": "Cloudflare platform abstractions for React Router",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/react-router/issues"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@cloudflare/workers-types": "^4.20230518.0",
|
|
25
25
|
"typescript": "^5.1.0",
|
|
26
|
-
"react-router": "7.0.0-pre.
|
|
26
|
+
"react-router": "7.0.0-pre.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@cloudflare/workers-types": "^4.0.0",
|
|
30
30
|
"typescript": "^5.1.0",
|
|
31
|
-
"react-router": "^7.0.0-pre.
|
|
31
|
+
"react-router": "^7.0.0-pre.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"typescript": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=20.0.0"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist/",
|