Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/better-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### v1.0.0-beta.5 (2026-03-18)
* * *

### Bug:
- Fixed `chargebeeCustomerId` column naming. The field definition in both `userSchema` and `orgSchema` had an explicit `fieldName: "chargebeeCustomerId"` that overrode Better Auth's built-in camelCase→snake_case mapping, causing the column to be created as `chargebeeCustomerId` instead of the expected `chargebee_customer_id`. The explicit override has been removed so Better Auth's automatic mapping applies correctly.


### v1.0.0-beta.4 (2026-03-18)
* * *

Expand Down
2 changes: 1 addition & 1 deletion packages/better-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chargebee/better-auth",
"author": "DX Chargebee",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"type": "module",
"main": "dist/index.mjs",
"types": "dist/index.d.mts",
Expand Down
2 changes: 0 additions & 2 deletions packages/better-auth/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const userSchema = {
type: "string" as const,
required: false,
unique: true,
fieldName: "chargebeeCustomerId",
},
},
},
Expand All @@ -20,7 +19,6 @@ const orgSchema = {
type: "string" as const,
required: false,
unique: true,
fieldName: "chargebeeCustomerId",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/better-auth/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "1.0.0-beta.4";
export const VERSION = "1.0.0-beta.5";
2 changes: 0 additions & 2 deletions packages/better-auth/test/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe("schema - getSchema", () => {
type: "string",
required: false,
unique: true,
fieldName: "chargebeeCustomerId",
});

expect(schema).not.toHaveProperty("subscription");
Expand Down Expand Up @@ -72,7 +71,6 @@ describe("schema - getSchema", () => {
type: "string",
required: false,
unique: true,
fieldName: "chargebeeCustomerId",
});
});

Expand Down
Loading