[PR #5106] [MERGED] refactor: move DBAdapterDebugLogOption to core #22681

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/10/05/db-adapter


📝 Commits (1)

  • 0de612e refactor: move DBAdapterDebugLogOption to core

📊 Changes

12 files changed (+53 additions, -46 deletions)

View changed files

📝 packages/better-auth/src/adapters/adapter-factory/types.ts (+2 -26)
📝 packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts (+2 -2)
📝 packages/better-auth/src/adapters/index.ts (+2 -2)
📝 packages/better-auth/src/adapters/kysely-adapter/kysely-adapter.ts (+2 -2)
📝 packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts (+3 -6)
📝 packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts (+2 -2)
📝 packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts (+2 -2)
📝 packages/better-auth/src/types/options.ts (+3 -3)
📝 packages/core/build.config.ts (+1 -0)
📝 packages/core/package.json (+10 -0)
packages/core/src/db/adapter/index.ts (+24 -0)
📝 packages/core/src/db/index.ts (+0 -1)

📄 Description

Summary by cubic

Centralized the DB adapter debug log type in core and updated all adapters to use it. No runtime changes; only types and exports were adjusted.

  • Refactors

    • Added @better-auth/core/db/adapter entry and exported DBAdapterDebugLogOption.
    • Removed AdapterDebugLogs from adapter-factory types; replaced with DBAdapterDebugLogOption across adapters and options.
    • Updated core build config and package.json to publish the new entry.
    • Re-exported the type from better-auth/adapters for convenience.
  • Migration

    • If you imported AdapterDebugLogs directly, switch to DBAdapterDebugLogOption from @better-auth/core/db/adapter (or from better-auth/adapters).

🔄 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/5106 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/6/2025 **Status:** ✅ Merged **Merged:** 10/6/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/05/db-adapter` --- ### 📝 Commits (1) - [`0de612e`](https://github.com/better-auth/better-auth/commit/0de612e4c0e933267b1e6be8930f3152eda9e39b) refactor: move `DBAdapterDebugLogOption` to core ### 📊 Changes **12 files changed** (+53 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/adapter-factory/types.ts` (+2 -26) 📝 `packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts` (+2 -2) 📝 `packages/better-auth/src/adapters/index.ts` (+2 -2) 📝 `packages/better-auth/src/adapters/kysely-adapter/kysely-adapter.ts` (+2 -2) 📝 `packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts` (+3 -6) 📝 `packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts` (+2 -2) 📝 `packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts` (+2 -2) 📝 `packages/better-auth/src/types/options.ts` (+3 -3) 📝 `packages/core/build.config.ts` (+1 -0) 📝 `packages/core/package.json` (+10 -0) ➕ `packages/core/src/db/adapter/index.ts` (+24 -0) 📝 `packages/core/src/db/index.ts` (+0 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Centralized the DB adapter debug log type in core and updated all adapters to use it. No runtime changes; only types and exports were adjusted. - **Refactors** - Added @better-auth/core/db/adapter entry and exported DBAdapterDebugLogOption. - Removed AdapterDebugLogs from adapter-factory types; replaced with DBAdapterDebugLogOption across adapters and options. - Updated core build config and package.json to publish the new entry. - Re-exported the type from better-auth/adapters for convenience. - **Migration** - If you imported AdapterDebugLogs directly, switch to DBAdapterDebugLogOption from @better-auth/core/db/adapter (or from better-auth/adapters). <!-- 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:12:46 -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#22681