[PR #6622] [CLOSED] fix: use async storage pollyfill as defualt fallback #15033

Closed
opened 2026-04-13 09:47:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6622
Author: @Bekacru
Created: 12/9/2025
Status: Closed

Base: canaryHead: fix/async-hooks


📝 Commits (2)

  • e347cf3 chore: release v1.4.6-beta.4
  • e55a3ad fix: use polyfill as fallback

📊 Changes

10 files changed (+10 additions, -14 deletions)

View changed files

📝 packages/better-auth/package.json (+1 -1)
📝 packages/cli/package.json (+1 -1)
📝 packages/core/package.json (+1 -1)
📝 packages/core/src/async_hooks/index.ts (+1 -5)
📝 packages/expo/package.json (+1 -1)
📝 packages/passkey/package.json (+1 -1)
📝 packages/scim/package.json (+1 -1)
📝 packages/sso/package.json (+1 -1)
📝 packages/stripe/package.json (+1 -1)
📝 packages/telemetry/package.json (+1 -1)

📄 Description

Summary by cubic

Default to the AsyncLocalStorage polyfill when Node’s async_hooks is unavailable. This prevents crashes and keeps context features working in Cloudflare Workers and other non-Node runtimes.

  • Bug Fixes

    • Use polyfill fallback in getAsyncLocalStorage; no longer throw on import failure.
    • Remove Convex-specific env checks; always fallback when async_hooks can’t load.
    • Keep browser returning null and show helpful warnings.
  • Dependencies

    • Bump all packages to v1.4.6-beta.4.

Written for commit e55a3ad70a. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6622 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/9/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/async-hooks` --- ### 📝 Commits (2) - [`e347cf3`](https://github.com/better-auth/better-auth/commit/e347cf3a6f897bccf35b9ac28641589d95940d77) chore: release v1.4.6-beta.4 - [`e55a3ad`](https://github.com/better-auth/better-auth/commit/e55a3ad70a971082e2f59c52fb3f9761ab525aa3) fix: use polyfill as fallback ### 📊 Changes **10 files changed** (+10 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/cli/package.json` (+1 -1) 📝 `packages/core/package.json` (+1 -1) 📝 `packages/core/src/async_hooks/index.ts` (+1 -5) 📝 `packages/expo/package.json` (+1 -1) 📝 `packages/passkey/package.json` (+1 -1) 📝 `packages/scim/package.json` (+1 -1) 📝 `packages/sso/package.json` (+1 -1) 📝 `packages/stripe/package.json` (+1 -1) 📝 `packages/telemetry/package.json` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Default to the AsyncLocalStorage polyfill when Node’s async_hooks is unavailable. This prevents crashes and keeps context features working in Cloudflare Workers and other non-Node runtimes. - **Bug Fixes** - Use polyfill fallback in getAsyncLocalStorage; no longer throw on import failure. - Remove Convex-specific env checks; always fallback when async_hooks can’t load. - Keep browser returning null and show helpful warnings. - **Dependencies** - Bump all packages to v1.4.6-beta.4. <sup>Written for commit e55a3ad70a971082e2f59c52fb3f9761ab525aa3. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:47:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#15033