diff --git a/.changeset/bright-clouds-listen.md b/.changeset/bright-clouds-listen.md new file mode 100644 index 0000000000..a5de2462f7 --- /dev/null +++ b/.changeset/bright-clouds-listen.md @@ -0,0 +1,5 @@ +--- +"@better-auth/core": patch +--- + +Prevent async context loss in Cloudflare Workers bundles that enable multiple runtime conditions. diff --git a/packages/core/package.json b/packages/core/package.json index f4f94b5dbc..eaba5e7eea 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -54,8 +54,8 @@ "node": "./dist/async_hooks/index.mjs", "deno": "./dist/async_hooks/index.mjs", "bun": "./dist/async_hooks/index.mjs", - "edge": "./dist/async_hooks/pure.index.mjs", "workerd": "./dist/async_hooks/index.mjs", + "edge": "./dist/async_hooks/pure.index.mjs", "browser": "./dist/async_hooks/pure.index.mjs", "default": "./dist/async_hooks/index.mjs" },