[PR #6581] [CLOSED] fix: add supportsJSON to all supported adapters #15006

Closed
opened 2026-04-13 09:46:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6581
Author: @dvanmali
Created: 12/7/2025
Status: Closed

Base: canaryHead: supportsJSON


📝 Commits (2)

  • f8a8b6f fix: add supportsJSON to all supported adapters
  • 453cb4a Merge branch 'canary' into supportsJSON

📊 Changes

3 files changed (+10 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts (+1 -0)
📝 packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts (+1 -0)
📝 packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts (+8 -1)

📄 Description

Add supports json to all adapters that support it natively. Add supports uuids to prisma adapter to more database types.

Closes #6552


Summary by cubic

Declare JSON support in all adapters that natively support it and expand UUID support in the Prisma adapter. This ensures features relying on JSON fields and UUIDs behave consistently across databases.

  • Bug Fixes
    • Memory and MongoDB adapters now set supportsJSON: true.
    • Prisma adapter sets supportsUUIDs and supportsJSON for PostgreSQL, CockroachDB, and MongoDB.

Written for commit 453cb4aff4. 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/6581 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 12/7/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `supportsJSON` --- ### 📝 Commits (2) - [`f8a8b6f`](https://github.com/better-auth/better-auth/commit/f8a8b6f6a0018a8269a8ba2d50279a1c719d8bd8) fix: add supportsJSON to all supported adapters - [`453cb4a`](https://github.com/better-auth/better-auth/commit/453cb4aff48d36f4e7613bccfcba837edac78e17) Merge branch 'canary' into supportsJSON ### 📊 Changes **3 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts` (+1 -0) 📝 `packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts` (+1 -0) 📝 `packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts` (+8 -1) </details> ### 📄 Description Add supports json to all adapters that support it natively. Add supports uuids to prisma adapter to more database types. Closes #6552 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Declare JSON support in all adapters that natively support it and expand UUID support in the Prisma adapter. This ensures features relying on JSON fields and UUIDs behave consistently across databases. - **Bug Fixes** - Memory and MongoDB adapters now set supportsJSON: true. - Prisma adapter sets supportsUUIDs and supportsJSON for PostgreSQL, CockroachDB, and MongoDB. <sup>Written for commit 453cb4aff48d36f4e7613bccfcba837edac78e17. 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-13 09:46:05 -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#15006