diff --git a/.changeset/fix-beforecreate-validation.md b/.changeset/fix-beforecreate-validation.md deleted file mode 100644 index 4dcc86c..0000000 --- a/.changeset/fix-beforecreate-validation.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"better-auth-convex": patch ---- - -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. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fc53e3f..981d1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # better-auth-convex +## 0.2.1 + +### 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. + ## 0.2.0 ### Minor Changes diff --git a/package.json b/package.json index 7e5554b..b3be135 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-auth-convex", - "version": "0.2.0", + "version": "0.2.1", "description": "Better Auth Convex local integration", "keywords": [ "convex",