Skip to content

Releases: zpg6/better-auth-cloudflare

v0.3.0

Choose a tag to compare

@zpg6 zpg6 released this 05 Apr 18:12
1c87964

What's Changed

better-auth v1.5 compatibility

Added

  • Native D1 support: New d1Native option on withCloudflare accepts a D1Database binding directly — no Drizzle required.

Changed

  • BREAKING: Peer dependency better-auth minimum raised from ^1.1.21 to ^1.5.0
  • BREAKING: New peer dependency @better-auth/drizzle-adapter (^1.5.0) required when using Drizzle-based database options (d1, postgres, mysql)
  • Bumped zod to ^4.3.0, drizzle-orm to ^0.45.0

Fixed

  • Geolocation silently broken on v1.5+: Session create.before hook returned the mutated object directly, which v1.5 interprets as true and discards mutations. Now returns { data: ... } wrapper.
  • Renamed FieldAttributeDBFieldAttribute and AuthPluginSchemaBetterAuthPluginDBSchema to match upstream renames
  • Migrated drizzle adapter imports from deprecated better-auth/adapters/drizzle to @better-auth/drizzle-adapter
  • Removed any types from session hook and R2 hook parameters

Full Changelog: v0.2.9...v0.3.0

v0.2.9

Choose a tag to compare

@zpg6 zpg6 released this 06 Dec 12:48

What's Changed

  • Add troubleshooting instructions for ERR_REQUIRE_ESM by @traylollipop in #43
  • fix: pass allowedMediaTypes for R2 uploads to resolve 415 error by @vzt7 in #46

New Contributors

  • @traylollipop made their first contribution in #43
  • @vzt7 made their first contribution in #46

Full Changelog: v0.2.8...v0.2.9

v0.2.8

Choose a tag to compare

@zpg6 zpg6 released this 27 Oct 13:37
1d484e9

What's Changed

Full Changelog: v0.2.7...v0.2.8

v0.2.7

Choose a tag to compare

@zpg6 zpg6 released this 04 Oct 14:29

What's Changed

  • fix: FieldAttribute type usage by @zpg6 in #37

Full Changelog: v0.2.6...v0.2.7

cli@v0.1.17

Choose a tag to compare

@zpg6 zpg6 released this 04 Oct 14:19

What's Changed

  • feat: cli init git / select pkg mgr by @zpg6 in #34
  • fix: cli spinner by @zpg6 in #36

v0.2.6

Choose a tag to compare

@zpg6 zpg6 released this 27 Sep 00:19

What's Changed

  • align build system with BetterAuth by @zpg6 in #26:

Full Changelog: v0.2.5...v0.2.6

v0.2.5

Choose a tag to compare

@zpg6 zpg6 released this 20 Sep 13:09

What's Changed

  • feat: continuous releases by @zpg6 in #22
  • feat: upgrade to zod v4 and improve r2 file validation by @axuj in #21

New Contributors

  • @axuj made their first contribution in #21

Full Changelog: v0.2.4...v0.2.5

cli@v0.1.16

Choose a tag to compare

@zpg6 zpg6 released this 23 Aug 15:41

Full Changelog: https://github.com/zpg6/better-auth-cloudflare/compare/cli@v0.1.15...cli@v0.1.16

cli@v0.1.15

Choose a tag to compare

@zpg6 zpg6 released this 17 Aug 01:29

v0.2.4

Choose a tag to compare

@zpg6 zpg6 released this 15 Aug 15:03
  • Adds CloudflareSession for Session + geolocation fields
  • OpenNextJS example middleware now uses /api/auth/get-session typed with CloudflareSessionResponse, enabling you to use BetterAuth in middleware with latest versions of OpenNextJS.

Full Changelog: v0.2.3...v0.2.4