[PR #8750] [MERGED] feat: expose plugin version #25089

Closed
opened 2026-04-15 22:43:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8750
Author: @jonathansamines
Created: 3/23/2026
Status: Merged
Merged: 3/31/2026
Merged by: @ping-maxwell

Base: mainHead: chore/plugin-version


📝 Commits (10+)

  • db71c60 chore(api-key): include plugin version
  • 2ff574c chore(better-auth): expose plugin version
  • 6813654 chore(core): update plugin interface to support version
  • 199a51d chore(electron): expose plugin version
  • a935257 chore(expo): expose plugin version
  • fa7ba8e chore(i18n): expose plugin version
  • 388a0ae chore(oauth-provider): expose plugin version
  • dbffe49 chore(passkey): expose plugin version
  • bd6a2f7 chore(scim): expose plugin version
  • 9fbd3f7 chore(sso): expose plugin version

📊 Changes

100 files changed (+210 additions, -10 deletions)

View changed files

📝 packages/api-key/src/client.ts (+2 -0)
📝 packages/api-key/src/index.ts (+2 -0)
packages/api-key/src/version.ts (+3 -0)
📝 packages/api-key/tsconfig.json (+1 -1)
📝 packages/api-key/tsconfig.test.json (+1 -1)
📝 packages/better-auth/src/client/index.ts (+2 -0)
📝 packages/better-auth/src/client/plugins/infer-plugin.ts (+2 -0)
📝 packages/better-auth/src/client/test-plugin.ts (+6 -0)
📝 packages/better-auth/src/integrations/next-js.ts (+2 -0)
📝 packages/better-auth/src/integrations/svelte-kit.ts (+2 -0)
📝 packages/better-auth/src/integrations/tanstack-start-solid.ts (+2 -0)
📝 packages/better-auth/src/integrations/tanstack-start.ts (+2 -0)
📝 packages/better-auth/src/plugins/additional-fields/client.ts (+4 -0)
📝 packages/better-auth/src/plugins/admin/admin.ts (+2 -0)
📝 packages/better-auth/src/plugins/admin/client.ts (+2 -0)
📝 packages/better-auth/src/plugins/anonymous/client.ts (+2 -0)
📝 packages/better-auth/src/plugins/anonymous/index.ts (+2 -0)
📝 packages/better-auth/src/plugins/bearer/index.ts (+2 -0)
📝 packages/better-auth/src/plugins/captcha/index.ts (+2 -0)
📝 packages/better-auth/src/plugins/custom-session/index.ts (+2 -0)

...and 80 more files

📄 Description

What is changing?
The BetterAuthPlugin interface now supports an optional version field which plugins can use to expose their version. All plugins we support were also updated to expose their version.

Note: tsdown is able to completely inline the version value down to a constant, should this should have minimal impact on bundle sizes.


🔄 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/8750 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 3/23/2026 **Status:** ✅ Merged **Merged:** 3/31/2026 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `main` ← **Head:** `chore/plugin-version` --- ### 📝 Commits (10+) - [`db71c60`](https://github.com/better-auth/better-auth/commit/db71c6033931fce1f81287e7adc5e89e3129506b) chore(api-key): include plugin version - [`2ff574c`](https://github.com/better-auth/better-auth/commit/2ff574c280a6d80c64ea71fea87452d515f0fad7) chore(better-auth): expose plugin version - [`6813654`](https://github.com/better-auth/better-auth/commit/6813654f5f2fa67e1a9c68f3f89ba2da0ff9fdc8) chore(core): update plugin interface to support version - [`199a51d`](https://github.com/better-auth/better-auth/commit/199a51da3e9920d1e14ea62cb381e323ab31c334) chore(electron): expose plugin version - [`a935257`](https://github.com/better-auth/better-auth/commit/a935257afa3279e260ffc638cca584ee3ee1de99) chore(expo): expose plugin version - [`fa7ba8e`](https://github.com/better-auth/better-auth/commit/fa7ba8e6321d70ec21e9eaf66034cd1bbf7d6f68) chore(i18n): expose plugin version - [`388a0ae`](https://github.com/better-auth/better-auth/commit/388a0ae2d6aeba5b3e6a4518b9e09ba3aeffc385) chore(oauth-provider): expose plugin version - [`dbffe49`](https://github.com/better-auth/better-auth/commit/dbffe4902ef2f3da12e217dccf9bf49c0033e3d8) chore(passkey): expose plugin version - [`bd6a2f7`](https://github.com/better-auth/better-auth/commit/bd6a2f7109dd492e72ec239ad7a77b28da284519) chore(scim): expose plugin version - [`9fbd3f7`](https://github.com/better-auth/better-auth/commit/9fbd3f7f4dc96818b8c8090bfbe1e8766d5004a3) chore(sso): expose plugin version ### 📊 Changes **100 files changed** (+210 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/api-key/src/client.ts` (+2 -0) 📝 `packages/api-key/src/index.ts` (+2 -0) ➕ `packages/api-key/src/version.ts` (+3 -0) 📝 `packages/api-key/tsconfig.json` (+1 -1) 📝 `packages/api-key/tsconfig.test.json` (+1 -1) 📝 `packages/better-auth/src/client/index.ts` (+2 -0) 📝 `packages/better-auth/src/client/plugins/infer-plugin.ts` (+2 -0) 📝 `packages/better-auth/src/client/test-plugin.ts` (+6 -0) 📝 `packages/better-auth/src/integrations/next-js.ts` (+2 -0) 📝 `packages/better-auth/src/integrations/svelte-kit.ts` (+2 -0) 📝 `packages/better-auth/src/integrations/tanstack-start-solid.ts` (+2 -0) 📝 `packages/better-auth/src/integrations/tanstack-start.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/additional-fields/client.ts` (+4 -0) 📝 `packages/better-auth/src/plugins/admin/admin.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/admin/client.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/anonymous/client.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/anonymous/index.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/bearer/index.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/captcha/index.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/custom-session/index.ts` (+2 -0) _...and 80 more files_ </details> ### 📄 Description **What is changing?** The `BetterAuthPlugin` interface now supports an optional `version` field which plugins can use to expose their version. All plugins we support were also updated to expose their version. **Note**: `tsdown` is able to completely inline the version value down to a constant, should this should have minimal impact on bundle sizes. --- <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-15 22:43:15 -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#25089