[PR #7295] [CLOSED] feat(utils): export additional utility functions from index.ts #24106

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7295
Author: @0-Sandy
Created: 1/12/2026
Status: ❌ Closed

Base: canary ← Head: canary


📝 Commits (3)

  • 8fc147c Export additional utility functions from index.ts
  • c2068f6 Reorder exports to satisfy linter
  • e54ba0f Fix lint

📊 Changes

1 file changed (+15 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/utils/index.ts (+15 -0)

📄 Description

Exporting all utilities allows plugin developers to import the same functions used internally by Better Auth, making it easier to build plugins that integrate smoothly with the core.


Summary by cubic

Exported additional utility modules from utils/index.ts (e.g., boolean, hashing, password, time, url, get-request-ip) so plugins can use the same helpers as core. This removes deep imports and improves DX.

Written for commit e54ba0fda3. 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/7295 **Author:** [@0-Sandy](https://github.com/0-Sandy) **Created:** 1/12/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (3) - [`8fc147c`](https://github.com/better-auth/better-auth/commit/8fc147c00e2e09d921f819e8edd9fb094fb19c47) Export additional utility functions from index.ts - [`c2068f6`](https://github.com/better-auth/better-auth/commit/c2068f61da67a267f79c90f601554b9ac48d0d9f) Reorder exports to satisfy linter - [`e54ba0f`](https://github.com/better-auth/better-auth/commit/e54ba0fda3bc90a4a6f29a38b343639820e54bf7) Fix lint ### 📊 Changes **1 file changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/utils/index.ts` (+15 -0) </details> ### 📄 Description Exporting all utilities allows plugin developers to import the same functions used internally by Better Auth, making it easier to build plugins that integrate smoothly with the core. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Exported additional utility modules from utils/index.ts (e.g., boolean, hashing, password, time, url, get-request-ip) so plugins can use the same helpers as core. This removes deep imports and improves DX. <sup>Written for commit e54ba0fda3bc90a4a6f29a38b343639820e54bf7. 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-15 22:10:44 -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#24106