Commit Graph
110 Commits
Author SHA1 Message Date
Jonathan SaminesandGitHub 57ee11a26f chore(lint): enforce consistent import type style (#6044) 2025-11-17 21:11:39 +00:00
MaxwellandGitHub f5bbb96d4e feat: adapter join support (#5730) 2025-11-15 16:55:50 +00:00
MaxwellandGitHub b39273a94f fix: use identity instead of serial for pg schema (#5943) 2025-11-13 01:15:39 +00:00
rovertrackGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
09162d3d12 feat(prisma): enhance JSON default value handling for arrays and objects in schema generation (#5904)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-11-11 18:21:03 +00:00
MaxwellandGitHub 705f7434c7 fix: treat generateId "serial" as numeric ID and correct UUID column types across adapters (#5823) 2025-11-11 18:04:24 +00:00
af6ebfe879 feat: auto-index CLI (#5357)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-11-10 14:12:48 -08:00
TaesuandGitHub f327e336c8 refactor: split the passkey plugin into a separate package (#5769) 2025-11-05 17:05:39 +00:00
Christian Bager Bach HoumannandGitHub cf050967e5 feat(cli): support Cloudflare Workers virtual module imports (#5559) 2025-10-28 03:15:04 +00:00
Alex YangandGitHub 938c2a7c31 chore: lint enable organize import (#5556) 2025-10-24 19:05:09 +00:00
Eniola OsabiyaandGitHub 03fbf937db fix(drizzle): replace pgEnum with text enum type in Drizzle schema generation (#5408) 2025-10-19 01:29:51 +00:00
Alex YangandGitHub f0957337e3 chore(cli): improve type (#5374) 2025-10-17 20:32:00 +00:00
Alex YangandGitHub 717d12f230 chore: remove deprecated sso plugin from better-auth (#5332) 2025-10-15 18:07:02 +00:00
Alex YangandGitHub fd780aca6b feat: enum support for drizzle schema (#5287) 2025-10-13 23:56:39 +00:00
MaxwellandGitHub 4b136408ab fix(adapter): missing data type transformation on where clauses (#5158) 2025-10-12 04:12:33 +00:00
70cb434f12 feat(cli): add mcp client configs from cli (#4872)
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-09-30 13:41:51 -07:00
MaxwellandAlex Yang 0a1df9e43f chore: fix adapter tests (#4844) 2025-09-30 10:14:23 -07:00
zy1pandAlex Yang 981458338d fix(cli): timestamp in schema for Drizzle with SQLite (#4622) 2025-09-29 19:34:08 -07:00
Alex YangandGitHub 30fa5fc0d2 refactor: move db schema to core (#4918) 2025-09-26 08:11:10 +00:00
Alex YangandGitHub 831dd1d64e fix(cli): defaultNow is deprecated in schema for Drizzle with SQLite (#4889) 2025-09-25 22:33:03 +00:00
20e87a2e1c fix(cli): add missing JSON type to schema generation (#4494)
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-09-14 13:27:13 -07:00
YurinandGitHub 80b733d513 fix(prisma): handle optional field relation types correctly (#4630) 2025-09-13 19:11:51 +00:00
AajeethandGitHub 589634d475 fix: correct MongoDB adapter import path in CLI (#4602) 2025-09-12 23:36:44 +00:00
Alex YangandGitHub 7faaeac9fc fix(cli): info shows the correct version (#4547) 2025-09-09 13:46:19 -07:00
Phips PeterandGitHub f2c9df4811 feat(sqlite): remove autoincrement for SQLite (#4466) 2025-09-08 17:23:00 -07:00
Alex YangandGitHub efdb4ce4f0 chore: enable noFloatingPromises lint rule (#3842) 2025-09-03 15:02:45 -07:00
Alex YangandGitHub a6ba8ac068 fix(db): special case schema generation ID (#4400) 2025-09-03 13:40:54 -07:00
9fb9bd92f8 feat: use defaultNow() for drizzle timestamp fields (#3873)
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-09-03 08:13:06 -07:00
Alex YangandGitHub c84b37faaf feat: add @default and @updatedAt for prisma generator (#4375) 2025-09-02 21:22:08 -07:00
TaesuandGitHub df6151d161 fix(cli): simplify and correct comma insertion logic in plugin array (#4281) 2025-08-29 11:40:39 -07:00
Alex YangandGitHub 70d4dc609a chore: enable lint rule noTsIgnore (#4296) 2025-08-28 15:09:47 -07:00
Alex YangandGitHub 7931166c8d feat(cli): add info script (#4143) 2025-08-27 10:49:34 -07:00
Alex YangandGitHub 240ef3d20e feat: add onUpdate field on db schema generation (#4241)
Fixes: https://github.com/better-auth/better-auth/issues/4187
2025-08-26 15:28:20 -07:00
Alex YangandGitHub 557dc39c32 chore: remove unused deps (#4227) 2025-08-25 17:48:13 -07:00
MaxwellandGitHub 5d84a76a54 fix(cli): Incorrect drizzle schema gen (#4132) 2025-08-23 18:18:10 -07:00
Alex YangandGitHub 55ec22c877 fix: small dx for device login (#4141) 2025-08-21 17:46:11 -07:00
Alex YangandGitHub 5ded0904d4 feat: support device authorization (#3811) 2025-08-21 14:59:31 -07:00
Alex YangandGitHub bb634a0f5c fix(cli): generate throws error with default export (#4113) 2025-08-20 16:25:32 -07:00
Eniola OsabiyaandGitHub d9f8806090 fix(cli): check for undefined defaultValue instead of truthy value when generating drizzle schema(#3512) 2025-08-20 09:35:44 -07:00
KinfeMichael TarikuandGitHub 9a6a8d741b feat(cli): support sveltekit $ imports in CLI generate cmd (#4042)
* sync

* lint

* sync

* sync

* lint
2025-08-17 01:11:27 -07:00
c5d10fda64 feat(cli): resolves tsconfig references for path aliases (#3764)
* feat(cli): resolves tsconfig references for path aliases

Previously references field was ignored and path aliases were only taken
from main tsconfig file

* chore: generate changeset

* test(cli): config is loaded correctly with alias

* chore: remove changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-08-16 09:34:50 -07:00
KinfeMichael TarikuandBereket Engida 1993317251 fix(cli): clean up unused pg and mysql import in drizzle schema generator (#3974)
* fix(cli): clean up unused pg import in schema generator

* sql clean up

* clean up
2025-08-14 18:35:26 -07:00
Ben AgnewandGitHub 0d16d8e02c fix(cli): incorrect api for auto increment in drizzle schema generation(#3940) 2025-08-11 17:37:52 -07:00
Fraol LemechaGitHubKinfe123Bereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>Alex YangBereket Engida
2915e4c92d feat: add telemetry (#3822)
* feat: telemetry

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>

* chore: remove changeset

* fix: do not generate project id unless telemetry is enabled

* fix: return `isInsiderContainerCached`

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* chore: remove unused utils file

* fix: properly cache generated project id

* feat: interpret empty env vars as false

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix: use nullish coalescing to set fallback

* fix: should be `isInsideContainerCached`

* fix: unique icons + tooltip for telemetry component

* fix: import child process from node

* fix: remove quotes in description

Co-authored-by: Alex Yang <himself65@outlook.com>

* fix: address reviews

Co-authored-by: Alex Yang <himself65@outlook.com>

* chore: refactor

* refactor

* add tests

* cache pkg json

* add cli tracking

* add migrate

* chore fix xi

* skip tet

* update snapshot

* chore: fix typecheck

* Expand telemetry docs: list collected fields, clarify anonymous redaction via getTelemetryAuthConfig, and document CLI events and audit/opt‑out paths.

* docs

* doc cleanup

* fixes

* remove git first commit message

* update docs

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Alex Yang <himself65@outlook.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-10 01:11:56 -07:00
KinfeMichael TarikuandBereket Engida 4c4c259a54 fix(cli): prisma schema generate mismatch on custom plugin table names (#3021)
* fix: generate mismatch

* clean up

* linkt

* lint

* clean up

* clean up

* lint

* lint

* test

* clean up

* clean up

* lint

* update
2025-08-06 16:38:50 -07:00
Fraol LemechaandGitHub 2481c1d575 fix(cli): only show the overwrite message when the schema file exists and the code has changed (#3826) 2025-08-06 11:01:19 -07:00
Alex YangandGitHub 575070f605 chore: bump biome (#3784) 2025-08-04 13:48:54 -07:00
2d8d05330d fix(cli): --yes option does not work on @better-auth/cli generate (#3749)
* fix: do not prompt before overwriting schema on `@better-auth/cli generate --yes ...`

* chore: changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-02 08:58:44 -07:00
Khiet Tam NguyenandGitHub e11c51e210 feat(cli): added --yes for generate/migrate, deprecated --y (#3542)
* feat(cli): added --yes option, deprecated --y, as per #1937

* feat:(cli): add deprecation warning to console if --y is used

* style(cli): linted migrate.ts & generate.ts

* docs(cli): revert 1.0 changelog
2025-07-23 09:31:06 -07:00
Bereket EngidaandGitHub 5b1b242a88 Merge branch 'main' into v1.3 2025-07-18 20:09:14 -07:00
Bereket EngidaandGitHub 847fc9bfda feat(drizzle): support camel case schema generation (#2550) 2025-07-18 10:39:16 -07:00