[PR #6506] [MERGED] refactor: move capitalizeFirstLetter to core #23614

Closed
opened 2026-04-15 21:52:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/12/03/refactor


📝 Commits (1)

  • 5e5a3eb refactor: move capitalizeFirstLetter to core

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/lynx/index.ts (+1 -4)
📝 packages/better-auth/src/client/react/index.ts (+1 -4)
📝 packages/better-auth/src/client/solid/index.ts (+1 -1)
📝 packages/better-auth/src/client/svelte/index.ts (+1 -1)
📝 packages/better-auth/src/client/vanilla.ts (+1 -1)
📝 packages/better-auth/src/client/vue/index.ts (+1 -1)
📝 packages/better-auth/src/utils/index.ts (+0 -1)
📝 packages/cli/src/generators/prisma.ts (+1 -1)
📝 packages/core/src/utils/index.ts (+1 -0)
📝 packages/core/src/utils/string.ts (+0 -0)

📄 Description

Summary by cubic

Centralized the capitalizeFirstLetter utility in @better-auth/core/utils and updated all clients and the CLI to use it. This removes duplicates and keeps naming helpers consistent across packages.

  • Refactors

    • Export capitalizeFirstLetter from core utils.
    • Replace local implementations and imports in React, Vue, Svelte, Solid, Vanilla, Lynx clients, and the CLI.
    • Remove the misc utils re-export from better-auth to prevent duplicate sources.
  • Migration

    • If you import capitalizeFirstLetter from better-auth, change to import from "@better-auth/core/utils".

Written for commit 5e5a3eb96d. 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/6506 **Author:** [@himself65](https://github.com/himself65) **Created:** 12/3/2025 **Status:** ✅ Merged **Merged:** 12/3/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/12/03/refactor` --- ### 📝 Commits (1) - [`5e5a3eb`](https://github.com/better-auth/better-auth/commit/5e5a3eb96d3795b8837fecf1cad8074b0319e88d) refactor: move `capitalizeFirstLetter` to core ### 📊 Changes **10 files changed** (+8 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/lynx/index.ts` (+1 -4) 📝 `packages/better-auth/src/client/react/index.ts` (+1 -4) 📝 `packages/better-auth/src/client/solid/index.ts` (+1 -1) 📝 `packages/better-auth/src/client/svelte/index.ts` (+1 -1) 📝 `packages/better-auth/src/client/vanilla.ts` (+1 -1) 📝 `packages/better-auth/src/client/vue/index.ts` (+1 -1) 📝 `packages/better-auth/src/utils/index.ts` (+0 -1) 📝 `packages/cli/src/generators/prisma.ts` (+1 -1) 📝 `packages/core/src/utils/index.ts` (+1 -0) 📝 `packages/core/src/utils/string.ts` (+0 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Centralized the capitalizeFirstLetter utility in @better-auth/core/utils and updated all clients and the CLI to use it. This removes duplicates and keeps naming helpers consistent across packages. - **Refactors** - Export capitalizeFirstLetter from core utils. - Replace local implementations and imports in React, Vue, Svelte, Solid, Vanilla, Lynx clients, and the CLI. - Remove the misc utils re-export from better-auth to prevent duplicate sources. - **Migration** - If you import capitalizeFirstLetter from better-auth, change to import from "@better-auth/core/utils". <sup>Written for commit 5e5a3eb96d3795b8837fecf1cad8074b0319e88d. 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-15 21:52:01 -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#23614