[PR #8105] [MERGED] fix: drizzle transform input crashes dates #24651

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8105
Author: @ping-maxwell
Created: 2/23/2026
Status: Merged
Merged: 2/23/2026
Merged by: @himself65

Base: canaryHead: fix/drizzle-transform-dates-crashes


📝 Commits (2)

  • 0deee03 fix: drizzle transform input crashes dates
  • c6e1c6e Update packages/drizzle-adapter/src/drizzle-adapter.ts

📊 Changes

1 file changed (+11 additions, -4 deletions)

View changed files

📝 packages/drizzle-adapter/src/drizzle-adapter.ts (+11 -4)

📄 Description

supportDates will transform incoming date values to strings before saving into db which is wrong. We only care for transforming output


Summary by cubic

Fixes date handling in the Drizzle adapter by converting date fields to Date only on read via customTransformOutput. Removes supportsDates to avoid input transforms that stringified dates and caused crashes on some providers.

Written for commit c6e1c6e19b. 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/8105 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 2/23/2026 **Status:** ✅ Merged **Merged:** 2/23/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/drizzle-transform-dates-crashes` --- ### 📝 Commits (2) - [`0deee03`](https://github.com/better-auth/better-auth/commit/0deee03e2024bd30a01ad0c1254a94b2d37c4268) fix: drizzle transform input crashes dates - [`c6e1c6e`](https://github.com/better-auth/better-auth/commit/c6e1c6e19bc572cee4868428b06b1bef9ee1f1aa) Update packages/drizzle-adapter/src/drizzle-adapter.ts ### 📊 Changes **1 file changed** (+11 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/drizzle-adapter/src/drizzle-adapter.ts` (+11 -4) </details> ### 📄 Description `supportDates` will transform incoming date values to strings before saving into db which is wrong. We only care for transforming output <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes date handling in the Drizzle adapter by converting date fields to Date only on read via customTransformOutput. Removes supportsDates to avoid input transforms that stringified dates and caused crashes on some providers. <sup>Written for commit c6e1c6e19bc572cee4868428b06b1bef9ee1f1aa. 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:29:43 -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#24651