From a4638f2e402c89792b08e1e238c62f9e69a36224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Thu, 20 Jul 2023 21:04:55 +0200 Subject: [PATCH] feat(remix-cloudflare)!: remove `createCloudflareKVSessionStorage` (#6898) --- .changeset/fuzzy-mugs-swim.md | 5 +++++ integration/cf-compiler-test.ts | 1 - packages/remix-cloudflare/index.ts | 15 --------------- 3 files changed, 5 insertions(+), 16 deletions(-) create mode 100644 .changeset/fuzzy-mugs-swim.md 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 2c1edcae324..5fa83b3affc 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 {