[PR #5891] [MERGED] chore: sort out exports #31902

Closed
opened 2026-04-17 22:46:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5891
Author: @himself65
Created: 11/11/2025
Status: Merged
Merged: 11/11/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/11/10/plugin-exports


📝 Commits (1)

📊 Changes

3 files changed (+5 additions, -5 deletions)

View changed files

📝 packages/better-auth/src/index.ts (+1 -2)
📝 packages/better-auth/src/plugins/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/organization/schema.ts (+3 -3)

📄 Description

Summary by cubic

Streamlined exports and clarified organization schema naming to make imports consistent and easier to use. Access plugin is now exported from the plugins entrypoint, and better-call types are re-exported with third-party types.

  • Refactors

    • Moved access plugin export to the plugins index; removed its type export from the root.
    • Re-exported better-call types from the root alongside third-party types.
    • Renamed organization role to roleSchema and updated references.
  • Migration

    • Import the access plugin from the plugins entrypoint instead of the root.
    • Replace any imports of role with roleSchema.

Written for commit f7c04a15f4. 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/5891 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/11/2025 **Status:** ✅ Merged **Merged:** 11/11/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/10/plugin-exports` --- ### 📝 Commits (1) - [`f7c04a1`](https://github.com/better-auth/better-auth/commit/f7c04a15f41f7307bd0f3b5adc1dcc07ab21734c) chore: sort out exports ### 📊 Changes **3 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/index.ts` (+1 -2) 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/organization/schema.ts` (+3 -3) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Streamlined exports and clarified organization schema naming to make imports consistent and easier to use. Access plugin is now exported from the plugins entrypoint, and better-call types are re-exported with third-party types. - **Refactors** - Moved access plugin export to the plugins index; removed its type export from the root. - Re-exported better-call types from the root alongside third-party types. - Renamed organization role to roleSchema and updated references. - **Migration** - Import the access plugin from the plugins entrypoint instead of the root. - Replace any imports of role with roleSchema. <sup>Written for commit f7c04a15f41f7307bd0f3b5adc1dcc07ab21734c. 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-17 22:46:52 -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#31902