Releases: udecode/better-auth-convex
v0.4.1
Patch Changes
- cd33fd3:
@convex-dev/[email protected]
v0.4.0
Minor Changes
-
fcbc004: - vendor:
@convex-dev/better-auth0.9.5and[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
v0.3.0
v0.2.2
Patch Changes
-
0c27fb4: -
getSessionnow accepts an optionaluserIdparameter to skip thegetAuthUserIdcall when the userId is already knowngetHeadersnow accepts an optionalsessionparameter to skip thegetSessioncall when the session is already available
These changes improve performance by avoiding redundant database queries when the data is already available.
v0.2.1
Patch Changes
-
bdb2151: Fix beforeCreate hook validation error
Previously, the
createmutation's input validator required all schema fields to be present, causing validation errors whenbeforeCreatehooks tried to add required fields likeusername.This fix makes all input fields optional during validation, allowing
beforeCreatehooks to add or modify any required fields. The actual schema validation still occurs when inserting into the database, ensuring data integrity.