[PR #7311] [MERGED] v1.4.12 #32820

Closed
opened 2026-04-17 23:32:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7311
Author: @himself65
Created: 1/12/2026
Status: Merged
Merged: 1/13/2026
Merged by: @himself65

Base: mainHead: v1.4.12-staging


📝 Commits (10+)

  • 9e8f2d4 fix(core): remove dual module warning (#7308)
  • 4807e16 chore: release v1.4.12-beta.1
  • 894cd2a docs: update upstream remote setup commands in contributing guide (#7265)
  • 6b0199a chore(deps): update actions/checkout action to v6 (#7279)
  • 6d18892 docs: correct sequenzy-better-auth community plugin link (#7289)
  • 39c82b2 fix(session): prevent duplicate tokens in active sessions list (#7285)
  • 6bf21f1 feat(oauth): add custom authorizationEndpoint option (#6962)
  • e97315a fix(anonymous): define delete-anonymous-user path method (#7296)
  • 25cffaf chore: fix filter server api type (#7294)
  • e7b1bd5 docs(faq): add troubleshooting guide for dual module hazard (#7299)

📊 Changes

34 files changed (+809 additions, -104 deletions)

View changed files

📝 .github/workflows/claude.yml (+1 -1)
📝 docs/components/community-plugins-table.tsx (+2 -2)
📝 docs/content/docs/concepts/database.mdx (+148 -0)
📝 docs/content/docs/integrations/hono.mdx (+134 -0)
📝 docs/content/docs/reference/contributing.mdx (+6 -3)
📝 docs/content/docs/reference/faq.mdx (+133 -6)
📝 docs/content/docs/reference/options.mdx (+18 -0)
📝 packages/better-auth/package.json (+1 -1)
📝 packages/better-auth/src/client/client.test.ts (+154 -0)
📝 packages/better-auth/src/client/solid/index.ts (+4 -0)
📝 packages/better-auth/src/client/svelte/index.ts (+4 -0)
📝 packages/better-auth/src/client/vanilla.ts (+5 -0)
📝 packages/better-auth/src/client/vue/index.ts (+4 -0)
📝 packages/better-auth/src/db/internal-adapter.test.ts (+71 -0)
📝 packages/better-auth/src/db/internal-adapter.ts (+31 -30)
📝 packages/better-auth/src/plugins/anonymous/client.ts (+1 -0)
📝 packages/better-auth/src/types/api.ts (+5 -14)
📝 packages/better-auth/src/types/types.test.ts (+12 -2)
📝 packages/cli/package.json (+1 -1)
📝 packages/core/package.json (+1 -1)

...and 14 more files

📄 Description

Summary by cubic

Stabilizes per-request context by sharing a single AsyncLocalStorage across modules to prevent state loss on multiple imports; adds a custom OAuth authorizationEndpoint option and a refetch() API on useSession across clients. Deduplicates active sessions and removes the duplicate-import warning for v1.4.12-beta.1.

  • New Features

    • Add refetch(query) to useSession for Solid, Svelte, Vue, and Vanilla clients.
  • Bug Fixes

    • Share AsyncLocalStorage via global Symbols for endpoint context, request state, and transactions to avoid context loss across multiple imports.
    • Deduplicate active sessions and ignore expired entries to prevent duplicate tokens.
    • Filter out non-action and HTTP-scoped endpoints from client API types.
    • Define missing delete-anonymous-user path for the anonymous plugin.

Written for commit e685b67bf4. Summary will update 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/7311 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/12/2026 **Status:** ✅ Merged **Merged:** 1/13/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `v1.4.12-staging` --- ### 📝 Commits (10+) - [`9e8f2d4`](https://github.com/better-auth/better-auth/commit/9e8f2d490310c353837d90de7147bbb540fe3422) fix(core): remove dual module warning (#7308) - [`4807e16`](https://github.com/better-auth/better-auth/commit/4807e16608daba4c2694db138c3b6baee18612c6) chore: release v1.4.12-beta.1 - [`894cd2a`](https://github.com/better-auth/better-auth/commit/894cd2a439ae24a7e4e6f43b75fd70a15ec63f44) docs: update upstream remote setup commands in contributing guide (#7265) - [`6b0199a`](https://github.com/better-auth/better-auth/commit/6b0199a1cfa2cd023a483a1e230148241129b6e6) chore(deps): update actions/checkout action to v6 (#7279) - [`6d18892`](https://github.com/better-auth/better-auth/commit/6d18892b5e93e8ce7afecc6c21e1dd0905770872) docs: correct `sequenzy-better-auth` community plugin link (#7289) - [`39c82b2`](https://github.com/better-auth/better-auth/commit/39c82b24b2032fb3d1a5fdd85480c939ed3a3ef7) fix(session): prevent duplicate tokens in active sessions list (#7285) - [`6bf21f1`](https://github.com/better-auth/better-auth/commit/6bf21f15130306467d3a13ec8dfef591943eab43) feat(oauth): add custom authorizationEndpoint option (#6962) - [`e97315a`](https://github.com/better-auth/better-auth/commit/e97315a7962a33e23a26e9c9ce92597f1920c724) fix(anonymous): define delete-anonymous-user path method (#7296) - [`25cffaf`](https://github.com/better-auth/better-auth/commit/25cffaf325d9c22c3b991fce7a3d91bd684e8963) chore: fix filter server api type (#7294) - [`e7b1bd5`](https://github.com/better-auth/better-auth/commit/e7b1bd50e0e9e9ff86507f6a5125553bbb203270) docs(faq): add troubleshooting guide for dual module hazard (#7299) ### 📊 Changes **34 files changed** (+809 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/claude.yml` (+1 -1) 📝 `docs/components/community-plugins-table.tsx` (+2 -2) 📝 `docs/content/docs/concepts/database.mdx` (+148 -0) 📝 `docs/content/docs/integrations/hono.mdx` (+134 -0) 📝 `docs/content/docs/reference/contributing.mdx` (+6 -3) 📝 `docs/content/docs/reference/faq.mdx` (+133 -6) 📝 `docs/content/docs/reference/options.mdx` (+18 -0) 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/better-auth/src/client/client.test.ts` (+154 -0) 📝 `packages/better-auth/src/client/solid/index.ts` (+4 -0) 📝 `packages/better-auth/src/client/svelte/index.ts` (+4 -0) 📝 `packages/better-auth/src/client/vanilla.ts` (+5 -0) 📝 `packages/better-auth/src/client/vue/index.ts` (+4 -0) 📝 `packages/better-auth/src/db/internal-adapter.test.ts` (+71 -0) 📝 `packages/better-auth/src/db/internal-adapter.ts` (+31 -30) 📝 `packages/better-auth/src/plugins/anonymous/client.ts` (+1 -0) 📝 `packages/better-auth/src/types/api.ts` (+5 -14) 📝 `packages/better-auth/src/types/types.test.ts` (+12 -2) 📝 `packages/cli/package.json` (+1 -1) 📝 `packages/core/package.json` (+1 -1) _...and 14 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Stabilizes per-request context by sharing a single AsyncLocalStorage across modules to prevent state loss on multiple imports; adds a custom OAuth authorizationEndpoint option and a refetch() API on useSession across clients. Deduplicates active sessions and removes the duplicate-import warning for v1.4.12-beta.1. - **New Features** - Add refetch(query) to useSession for Solid, Svelte, Vue, and Vanilla clients. - **Bug Fixes** - Share AsyncLocalStorage via global Symbols for endpoint context, request state, and transactions to avoid context loss across multiple imports. - Deduplicate active sessions and ignore expired entries to prevent duplicate tokens. - Filter out non-action and HTTP-scoped endpoints from client API types. - Define missing delete-anonymous-user path for the anonymous plugin. <sup>Written for commit e685b67bf4de29fb1ac1b100e522128baefd886b. Summary will update 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-17 23:32:41 -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#32820