@react-router/cloudflare
December 20, 2024 ยท View on GitHub
7.1.0
Patch Changes
- Updated dependencies:
react-router@7.1.0
7.0.2
Patch Changes
- Updated dependencies:
react-router@7.0.2
7.0.1
Patch Changes
- Updated dependencies:
react-router@7.0.1
7.0.0
Major Changes
-
For Remix consumers migrating to React Router, all exports from
@remix-run/cloudflare-pagesare now provided for React Router consumers in the@react-router/cloudflarepackage. There is no longer a separate package for Cloudflare Pages. (#11801) -
For Remix consumers migrating to React Router, the
cryptoglobal from the Web Crypto API is now required when using cookie and session APIs. This means that the following APIs are provided fromreact-routerrather than platform-specific packages: (#11837)createCookiecreateCookieSessionStoragecreateMemorySessionStoragecreateSessionStorage
For consumers running older versions of Node, the
installGlobalsfunction from@remix-run/nodehas been updated to defineglobalThis.crypto, using Node'srequire('node:crypto').webcryptoimplementation.Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
createCookieFactorycreateSessionStorageFactorycreateCookieSessionStorageFactorycreateMemorySessionStorageFactory
Minor Changes
- The
@remix-run/cloudflare-workerspackage has been deprecated. Remix consumers migrating to React Router should use the@react-router/cloudflarepackage directly. For guidance on how to use@react-router/cloudflarewithin a Cloudflare Workers context, refer to the Cloudflare Workers template. (#11801)
Patch Changes
- Updated dependencies:
react-router@7.0.0