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 Mar 14, 2023
1 parent 389d260 commit 1e822e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 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`
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 1e822e8

Please sign in to comment.