Skip to content

Commit

Permalink
feat(remix-cloudflare)!: remove createCloudflareKVSessionStorage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Jul 20, 2023
1 parent af7ca94 commit a4638f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-mugs-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/cloudflare": major
---

Remove `createCloudflareKVSessionStorage`
1 change: 0 additions & 1 deletion integration/cf-compiler-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-cloudflare/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
import "./globals";

import { createWorkersKVSessionStorage } from "./sessions/workersKVStorage";

const warn = <T extends Function>(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 {
Expand Down

0 comments on commit a4638f2

Please sign in to comment.