Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(remix-cloudflare)!: remove createCloudflareKVSessionStorage #6898

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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