Skip to content

Commit 18078b2

Browse files
authored
Merge pull request #7 from udecode/changeset-release/main
2 parents e248732 + f3a501b commit 18078b2

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.changeset/fix-beforecreate-validation.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# better-auth-convex
22

3+
## 0.2.1
4+
5+
### Patch Changes
6+
7+
- bdb2151: Fix beforeCreate hook validation error
8+
9+
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`.
10+
11+
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.
12+
313
## 0.2.0
414

515
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "better-auth-convex",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Better Auth Convex local integration",
55
"keywords": [
66
"convex",

0 commit comments

Comments
 (0)