[GH-ISSUE #8403] Adapters broke with v1.5.0 #19707

Closed
opened 2026-04-15 19:00:40 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @KazimirPodolski on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8403

Originally assigned to: @himself65 on GitHub.

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Use better-auth v1.4.x with e.g. mikro-orm adapter
  2. Upgrade to v1.5.x
  3. See the error:
    import { createAdapter } from "better-auth/adapters";
             ^^^^^^^^^^^^^
    SyntaxError: The requested module 'better-auth/adapters' does not provide an export named 'createAdapter'
    

Current vs. Expected behavior

No breaking changes in API with minor version upgrade, according to semver:

Given a version number MAJOR.MINOR.PATCH, increment the:

1. MAJOR version when you make incompatible API changes
2. MINOR version when you add functionality in a backward compatible manner
3. PATCH version when you make backward compatible bug fixes
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

What version of Better Auth are you using?

1.5.3

System info

Unapplicable

Which area(s) are affected? (Select all that apply)

Package, Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  database: mikroOrmAdapter(orm, {supportsJSON: true})
});

Additional context

Please do not break semver, or if you do not follow it - clarify your actual versioning schema.

Originally created by @KazimirPodolski on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8403 Originally assigned to: @himself65 on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Use better-auth v1.4.x with e.g. [mikro-orm adapter](https://github.com/octet-stream/better-auth-mikro-orm) 2. Upgrade to v1.5.x 3. See the error: ``` import { createAdapter } from "better-auth/adapters"; ^^^^^^^^^^^^^ SyntaxError: The requested module 'better-auth/adapters' does not provide an export named 'createAdapter' ``` ### Current vs. Expected behavior No breaking changes in API with minor version upgrade, according to [semver](https://semver.org/): ``` Given a version number MAJOR.MINOR.PATCH, increment the: 1. MAJOR version when you make incompatible API changes 2. MINOR version when you add functionality in a backward compatible manner 3. PATCH version when you make backward compatible bug fixes Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format. ``` ### What version of Better Auth are you using? 1.5.3 ### System info ```bash Unapplicable ``` ### Which area(s) are affected? (Select all that apply) Package, Backend ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ database: mikroOrmAdapter(orm, {supportsJSON: true}) }); ``` ### Additional context Please do not break semver, or if you do not follow it - clarify your actual versioning schema.
GiteaMirror added the lockedbug labels 2026-04-15 19:00:41 -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#19707