diff --git a/.changeset/fuzzy-mugs-swim.md b/.changeset/fuzzy-mugs-swim.md new file mode 100644 index 00000000000..2d5e453ccc1 --- /dev/null +++ b/.changeset/fuzzy-mugs-swim.md @@ -0,0 +1,5 @@ +--- +"@remix-run/cloudflare": major +--- + +Remove `createCloudflareKVSessionStorage` diff --git a/integration/cf-compiler-test.ts b/integration/cf-compiler-test.ts index dd43597f99e..e95472ff01e 100644 --- a/integration/cf-compiler-test.ts +++ b/integration/cf-compiler-test.ts @@ -180,7 +180,6 @@ test.describe("cloudflare compiler", () => { // TODO: remove this when we get rid of that feature. test("magic imports still works", async () => { let magicExportsForNode = [ - "createCloudflareKVSessionStorage", "createCookie", "createCookieSessionStorage", "createMemorySessionStorage", diff --git a/packages/remix-cloudflare/index.ts b/packages/remix-cloudflare/index.ts index 98caa9bef8e..36910883313 100644 --- a/packages/remix-cloudflare/index.ts +++ b/packages/remix-cloudflare/index.ts @@ -1,20 +1,5 @@ import "./globals"; -import { createWorkersKVSessionStorage } from "./sessions/workersKVStorage"; - -const warn = (fn: T, message: string): T => - ((...args: unknown[]) => { - console.warn(message); - - return fn(...args); - }) as unknown as T; - -/** @deprecated Use `createWorkersKVSessionStorage` instead. */ -export const createCloudflareKVSessionStorage = warn( - createWorkersKVSessionStorage, - "`createCloudflareKVSessionStorage` is deprecated. Please use `createWorkersKVSessionStorage` instead." -); - export { createWorkersKVSessionStorage } from "./sessions/workersKVStorage"; export {