@remix-run/cloudflare
Advanced tools
Comparing version 2.11.2 to 2.12.0-pre.0
# `@remix-run/cloudflare` | ||
## 2.12.0-pre.0 | ||
### Patch Changes | ||
- Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) | ||
If you were already using single-fetch types: | ||
- Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` | ||
- Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules | ||
- Replace `UIMatch_SingleFetch` type helper with `UIMatch` | ||
- Replace `MetaArgs_SingleFetch` type helper with `MetaArgs` | ||
Then you are ready for the new typesafety setup: | ||
```ts | ||
// vite.config.ts | ||
declare module "@remix-run/server-runtime" { | ||
interface Future { | ||
unstable_singleFetch: true; // 👈 enable _types_ for single-fetch | ||
} | ||
} | ||
export default defineConfig({ | ||
plugins: [ | ||
remix({ | ||
future: { | ||
unstable_singleFetch: true, // 👈 enable single-fetch | ||
}, | ||
}), | ||
], | ||
}); | ||
``` | ||
For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.12.0-pre.0` | ||
## 2.11.2 | ||
@@ -4,0 +44,0 @@ |
/** | ||
* @remix-run/cloudflare v2.11.2 | ||
* @remix-run/cloudflare v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare v2.11.2 | ||
* @remix-run/cloudflare v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
import "./globals"; | ||
export { createWorkersKVSessionStorage } from "./sessions/workersKVStorage"; | ||
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSessionStorage, } from "./implementations"; | ||
export { createRequestHandler, createSession, unstable_data, unstable_defineLoader, unstable_defineAction, defer, broadcastDevReady, logDevReady, isCookie, isSession, json, MaxPartSizeExceededError, redirect, redirectDocument, replace, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
export { createRequestHandler, createSession, unstable_data, defer, broadcastDevReady, logDevReady, isCookie, isSession, json, MaxPartSizeExceededError, redirect, redirectDocument, replace, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
export type { ActionFunction, ActionFunctionArgs, AppLoadContext, Cookie, CookieOptions, CookieParseOptions, CookieSerializeOptions, CookieSignatureOptions, DataFunctionArgs, EntryContext, ErrorResponse, HandleDataRequestFunction, HandleDocumentRequestFunction, HeadersArgs, HeadersFunction, HtmlLinkDescriptor, JsonFunction, LinkDescriptor, LinksFunction, LoaderFunction, LoaderFunctionArgs, MemoryUploadHandlerFilterArgs, MemoryUploadHandlerOptions, HandleErrorFunction, PageLinkDescriptor, RequestHandler, SerializeFrom, ServerBuild, ServerEntryModule, ServerRuntimeMetaArgs as MetaArgs, ServerRuntimeMetaDescriptor as MetaDescriptor, ServerRuntimeMetaFunction as MetaFunction, Session, SessionData, SessionIdStorageStrategy, SessionStorage, SignFunction, TypedDeferredData, TypedResponse, UnsignFunction, UploadHandler, UploadHandlerPart, } from "@remix-run/server-runtime"; |
/** | ||
* @remix-run/cloudflare v2.11.2 | ||
* @remix-run/cloudflare v2.12.0-pre.0 | ||
* | ||
@@ -86,10 +86,2 @@ * Copyright (c) Remix Software Inc. | ||
}); | ||
Object.defineProperty(exports, 'unstable_defineAction', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_defineAction; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_defineLoader', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_defineLoader; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_parseMultipartFormData', { | ||
@@ -96,0 +88,0 @@ enumerable: true, |
/** | ||
* @remix-run/cloudflare v2.11.2 | ||
* @remix-run/cloudflare v2.12.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/cloudflare", | ||
"version": "2.11.2", | ||
"version": "2.12.0-pre.0", | ||
"description": "Cloudflare platform abstractions for Remix", | ||
@@ -18,3 +18,3 @@ "bugs": { | ||
"@cloudflare/kv-asset-handler": "^0.1.3", | ||
"@remix-run/server-runtime": "2.11.2" | ||
"@remix-run/server-runtime": "2.12.0-pre.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28802
264
2
+ Added@remix-run/router@1.19.2-pre.0(transitive)
+ Added@remix-run/server-runtime@2.12.0-pre.0(transitive)
+ Addedturbo-stream@2.4.0(transitive)
- Removed@remix-run/router@1.19.1(transitive)
- Removed@remix-run/server-runtime@2.11.2(transitive)
- Removedturbo-stream@2.3.0(transitive)