@react-router/cloudflare 0.0.0-nightly-8fc8239ff-20241003 → 7.0.0-pre.0
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 +31 -0
- package/dist/index.js +1 -1
- package/dist/sessions/workersKVStorage.js +1 -1
- package/dist/worker.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @react-router/cloudflare
|
|
2
|
+
|
|
3
|
+
## 7.0.0-pre.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- For Remix consumers migrating to React Router, all exports from `@remix-run/cloudflare-pages` are now provided for React Router consumers in the `@react-router/cloudflare` package. There is no longer a separate package for Cloudflare Pages. ([#11801](https://github.com/remix-run/react-router/pull/11801))
|
|
8
|
+
- For Remix consumers migrating to React Router, the `crypto` global from the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is now required when using cookie and session APIs. This means that the following APIs are provided from `react-router` rather than platform-specific packages: ([#11837](https://github.com/remix-run/react-router/pull/11837))
|
|
9
|
+
|
|
10
|
+
- `createCookie`
|
|
11
|
+
- `createCookieSessionStorage`
|
|
12
|
+
- `createMemorySessionStorage`
|
|
13
|
+
- `createSessionStorage`
|
|
14
|
+
|
|
15
|
+
For consumers running older versions of Node, the `installGlobals` function from `@remix-run/node` has been updated to define `globalThis.crypto`, using [Node's `require('node:crypto').webcrypto` implementation.](https://nodejs.org/api/webcrypto.html)
|
|
16
|
+
|
|
17
|
+
Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
|
|
18
|
+
|
|
19
|
+
- `createCookieFactory`
|
|
20
|
+
- `createSessionStorageFactory`
|
|
21
|
+
- `createCookieSessionStorageFactory`
|
|
22
|
+
- `createMemorySessionStorageFactory`
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- The `@remix-run/cloudflare-workers` package has been deprecated. Remix consumers migrating to React Router should use the `@react-router/cloudflare` package directly. For guidance on how to use `@react-router/cloudflare` within a Cloudflare Workers context, refer to the Cloudflare Workers template. ([#11801](https://github.com/remix-run/react-router/pull/11801))
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies:
|
|
31
|
+
- `react-router@7.0.0-pre.0`
|
package/dist/index.js
CHANGED
package/dist/worker.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/cloudflare",
|
|
3
|
-
"version": "0.0.0
|
|
3
|
+
"version": "7.0.0-pre.0",
|
|
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": "0.0.0
|
|
26
|
+
"react-router": "7.0.0-pre.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@cloudflare/workers-types": "^4.0.0",
|
|
30
30
|
"typescript": "^5.1.0",
|
|
31
|
-
"react-router": "^0.0.0
|
|
31
|
+
"react-router": "^7.0.0-pre.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"typescript": {
|