Releases: benjaminpreiss/payload-better-auth
Releases · benjaminpreiss/payload-better-auth
v3.2.0
v3.1.1
v3.1.0
v3.0.0
v2.1.0
v2.0.0
2.0.0 (2026-01-11)
- feat!: redesign sync architecture with SecondaryStorage and EventBus (3fd85d9)
BREAKING CHANGES
- Storage and EventBus are now required plugin options.
Removed InMemorySyncAdapter, InMemoryEventBus, and LMDB implementations.
Architecture changes:
- SecondaryStorage: Minimal KV interface (get/set/delete) for sessions,
timestamps, and nonces. Implementations: SQLite (dev), Redis (prod) - EventBus: Timestamp-based coordination between plugins.
Implementations: SQLite polling (dev), Redis Pub/Sub (prod) - Queue-based sync: All user operations go through reconcile queue
with retry logic (no more direct sync or EventBus user events) - Direct session validation: Payload reads sessions from storage,
no HTTP calls to Better Auth
Key improvements:
- Instant session invalidation via shared storage
- Horizontal scaling with Redis adapters
- HMR-resilient with deduplicated logger
- SQLite adapters throw in staging/production environments
New exports:
- payload-better-auth/storage (SecondaryStorage, SQLite, Redis)
- payload-better-auth/eventBus (EventBus, SQLite polling, Redis Pub/Sub)
Removed:
- InMemorySyncAdapter, InMemoryEventBus, LmdbStorage
- Unused: verifySignature, createSignature, getPayloadCached,
createAttachExternalIdInPayload, UserEvent types - Empty directories: src/types/, src/collections/BetterAuthUsers/
Updated README and MANUAL with new architecture documentation.
v1.1.6
v1.1.4
v1.0.0
1.0.0 (2026-01-11)
Bug Fixes
- adjust int test to reflect new auth methods endpoint (940e87d)
- allow passing additional headers to payload plugin (b324ee7)
- ci: disable husky hooks during semantic-release (b51ca61)
- fix dev environment payload plugin options (3e07289)
- fix magic link callback url (894e5ec)
- fix passing serverProps to payload login components (c8bc3a6)
- fix payload plugin passing options to auth component (e31f7f0)
- improve package.json for install directly from github (f0c4493)
- include src in files published to npm (b753b7c)
- make dist package json export paths relative (e551e09)
- remove better auth plugin init type error (4a75bcb)
- rename payload plugin baseUrl option (63f5c32)
- resolve Better Auth plugin integration issues (763369a)
- setup testing script (46ca634)
- switch from server url base detection to window.location.origin (daf4ea1)
Features
- add admin user creation and improve auth components (a210e76)
- add locale to user database (294866c)
- add logging toggle to better-auth plugin (795676f)
- add magicLink login (1ab9ff5)
- add Nx caching for build, lint, and typecheck (ed52b09)
- add pnpm workspace for npm package (951e70f)
- add semantic-release for automated versioning (e3add4b)
- add separate internal/external base URLs for server/client auth requests (3a09b54)
- create basic better-auth sync solution (2f442bf)
- fix payload plugin options (f9033c0)
- further improve github publishing (8d16c6a)
- improve github publishing (130b9bd)
- init pnpm (032d770)
- integrate Better Auth authentication system (9c9c3f8)
- internalize db hooks and delete user in plugin (d087d79)
- migrate to bundler moduleResolution for Turbopack compatibility (943a0b3)
- move code to package (67ca385)
- move migrations to dev/ and improve build config (c85f8d7)
- setup payload and better-auth plugins (bf69c05)
- setup payload with sqlite (04dfd1d)