Releases: zpg6/better-auth-cloudflare
Releases · zpg6/better-auth-cloudflare
Release list
v0.3.0
What's Changed
better-auth v1.5 compatibility
Added
- Native D1 support: New
d1Nativeoption onwithCloudflareaccepts aD1Databasebinding directly — no Drizzle required.
Changed
- BREAKING: Peer dependency
better-authminimum raised from^1.1.21to^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
zodto^4.3.0,drizzle-ormto^0.45.0
Fixed
- Geolocation silently broken on v1.5+: Session
create.beforehook returned the mutated object directly, which v1.5 interprets astrueand discards mutations. Now returns{ data: ... }wrapper. - Renamed
FieldAttribute→DBFieldAttributeandAuthPluginSchema→BetterAuthPluginDBSchemato match upstream renames - Migrated drizzle adapter imports from deprecated
better-auth/adapters/drizzleto@better-auth/drizzle-adapter - Removed
anytypes from session hook and R2 hook parameters
Full Changelog: v0.2.9...v0.3.0
v0.2.9
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
Full Changelog: v0.2.8...v0.2.9
v0.2.8
v0.2.7
cli@v0.1.17
v0.2.6
v0.2.5
cli@v0.1.16
- fix: cli prefer npm for @better-auth/cli commands due to issue with bunx that would result in
Failed to generate auth schema.
Full Changelog: https://github.com/zpg6/better-auth-cloudflare/compare/cli@v0.1.15...cli@v0.1.16
cli@v0.1.15
- fix: cli handle existing resources
Full Changelog: https://github.com/zpg6/better-auth-cloudflare/compare/cli@v0.1.13...cli@v0.1.15
v0.2.4
- Adds
CloudflareSessionfor Session + geolocation fields - OpenNextJS example middleware now uses
/api/auth/get-sessiontyped withCloudflareSessionResponse, enabling you to use BetterAuth in middleware with latest versions of OpenNextJS.
Full Changelog: v0.2.3...v0.2.4