[PR #5749] [MERGED] chore: remove unsued code #31799

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/11/03/remove-unsed


📝 Commits (1)

  • d3d9ad4 chore: remove unsued code

📊 Changes

2 files changed (+0 additions, -22 deletions)

View changed files

packages/better-auth/src/crypto/hash.ts (+0 -21)
📝 packages/better-auth/src/crypto/index.ts (+0 -1)

📄 Description

Summary by cubic

Removed unused hash helpers (hashToBase64, compareHash) from the crypto module and removed their export from crypto/index.ts to simplify the API and reduce bundle size.

No internal references were using these functions, so there’s no runtime behavior change.

Written for commit d3d9ad4320. 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/5749 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/4/2025 **Status:** ✅ Merged **Merged:** 11/4/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/11/03/remove-unsed` --- ### 📝 Commits (1) - [`d3d9ad4`](https://github.com/better-auth/better-auth/commit/d3d9ad43202dd8da8e89d5e1e0405ce4f0049d45) chore: remove unsued code ### 📊 Changes **2 files changed** (+0 additions, -22 deletions) <details> <summary>View changed files</summary> ➖ `packages/better-auth/src/crypto/hash.ts` (+0 -21) 📝 `packages/better-auth/src/crypto/index.ts` (+0 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Removed unused hash helpers (hashToBase64, compareHash) from the crypto module and removed their export from crypto/index.ts to simplify the API and reduce bundle size. No internal references were using these functions, so there’s no runtime behavior change. <sup>Written for commit d3d9ad43202dd8da8e89d5e1e0405ce4f0049d45. 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:40:34 -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#31799