Skip to content

Releases: udecode/better-auth-convex

v0.4.1

17 Oct 19:21
eae39e9

Choose a tag to compare

Patch Changes

v0.4.0

14 Oct 07:25

Choose a tag to compare

Minor Changes

  • fcbc004: - vendor: @convex-dev/better-auth 0.9.5 and [email protected]

    • fix: swap old and new doc params in onUpdate trigger

      BREAKING CHANGE: 2nd and 3rd params in onUpdate trigger are swapped.
      Previously: onUpdate(ctx, oldDoc, newDoc)
      Now: onUpdate(ctx, newDoc, oldDoc)

v0.3.1

05 Oct 21:11

Choose a tag to compare

Patch Changes

  • 28facf6: Add getAuthUserIdentity helper and improve type safety for session IDs

v0.3.0

03 Oct 17:33

Choose a tag to compare

Minor Changes

  • 23ec28b: - Fix sortBy direction handling in query generation - now correctly applies ascending order when specified
    • fix: use jwt session id for getSession, getHeaders state

v0.2.2

01 Oct 08:36

Choose a tag to compare

Patch Changes

  • 0c27fb4: - getSession now accepts an optional userId parameter to skip the getAuthUserId call when the userId is already known

    • getHeaders now accepts an optional session parameter to skip the getSession call when the session is already available

    These changes improve performance by avoiding redundant database queries when the data is already available.

v0.2.1

29 Sep 13:00

Choose a tag to compare

Patch Changes

  • bdb2151: Fix beforeCreate hook validation error

    Previously, the create mutation's input validator required all schema fields to be present, causing validation errors when beforeCreate hooks tried to add required fields like username.

    This fix makes all input fields optional during validation, allowing beforeCreate hooks to add or modify any required fields. The actual schema validation still occurs when inserting into the database, ensuring data integrity.

v0.2.0

29 Sep 08:28

Choose a tag to compare

Minor Changes

  • bfc2ad3: Add beforeCreate, beforeUpdate, and beforeDelete hook support across the Convex adapter so triggers can transform payloads before database writes.

v0.1.1

22 Sep 20:20

Choose a tag to compare

Patch Changes

v0.1.0

22 Sep 19:55

Choose a tag to compare

Minor Changes