[PR #6555] [MERGED] feat: add support for uuidv7 on generateId #32342

Closed
opened 2026-04-17 23:10:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6555
Author: @BattlefieldDuck
Created: 12/5/2025
Status: Merged
Merged: 4/9/2026
Merged by: @gustavovalverde

Base: nextHead: feat/uuidv7


📝 Commits (10+)

  • 60123da docs: add missing secret to getSignedCookie and remove misleading comments (#9008)
  • 3baf029 chore(docs): add remark-frontmatter (#9015)
  • 374985e docs: update community adapters and plugins pages (#9014)
  • 3b95d70 docs: change community plugin name (#8961)
  • 47dc887 docs: add @delmaredigital/payload-better-auth to community plugins (#8375)
  • f61ad1c fix: use INVALID_PASSWORD for all checkPassword failures (#8902)
  • 465c1dc ci: add one-click changeset commit and unify bot identity (#9019)
  • 2e537df fix: endpoint instrumentation to always use route template (#9023)
  • 5e7fd61 docs: hide fumadocs toc scroll indicator dot (#9021)
  • a7e359d docs: add expo sentinel docs (#9025)

📊 Changes

94 files changed (+2733 additions, -1480 deletions)

View changed files

📝 .github/workflows/auto-changeset.yml (+186 -2)
📝 .github/workflows/auto-label.yml (+9 -0)
📝 .github/workflows/auto-retarget.yml (+13 -4)
📝 .github/workflows/lock-threads.yml (+10 -0)
📝 .github/workflows/semantic-pull-request.yml (+12 -1)
📝 .gitignore (+5 -0)
📝 CONTRIBUTING.md (+134 -188)
📝 demo/electron/package.json (+1 -1)
📝 demo/electron/pnpm-lock.yaml (+14 -35)
📝 demo/oidc-client/package.json (+1 -1)
📝 demo/oidc-client/pnpm-lock.yaml (+11 -56)
📝 docs/.remarkrc.mjs (+2 -0)
📝 docs/app/blog/[[...slug]]/page.tsx (+22 -1)
📝 docs/app/changelog/changelog-content.tsx (+2 -2)
📝 docs/app/community/community-client.tsx (+2 -2)
📝 docs/app/globals.css (+9 -0)
📝 docs/components/community-adapters-grid.tsx (+11 -0)
📝 docs/components/community-plugins-table.tsx (+2 -2)
📝 docs/components/icons/index.tsx (+11 -13)
📝 docs/components/landing/hero-readme.tsx (+1 -1)

...and 74 more files

📄 Description

Summary by cubic

Adds support for time-ordered UUIDs via advanced.database.generateId: "uuidv7". Postgres uses uuidv7() by default in migrations and generated schemas.

  • New Features

    • Added "uuidv7" to generateId option (types + docs).
    • Postgres: id columns default to uuidv7() in migrations and Drizzle/Prisma output (requires PostgreSQL 18+).
    • MySQL, SQLite, MSSQL: id columns use string/UUID types; IDs are generated client-side (no DB default).
    • CLI generators updated for uuidv7 with new snapshots.
    • New uuidv7 test suite enabled across Drizzle, Kysely, Prisma, Memory adapters; MongoDB remains unsupported.
  • Bug Fixes

    • OpenTelemetry endpoint spans now use route templates for consistent tracing.
    • Password verification hardening: all checkPassword failures return INVALID_PASSWORD.
    • Restored getSession usability in generic Auth<O> contexts; improved endpoint API typing.
  • Dependencies

    • Bump drizzle-orm to ^0.45.2, hono to ^4.12.12, and vite to ^7.3.2.

Written for commit 01f85ce807. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6555 **Author:** [@BattlefieldDuck](https://github.com/BattlefieldDuck) **Created:** 12/5/2025 **Status:** ✅ Merged **Merged:** 4/9/2026 **Merged by:** [@gustavovalverde](https://github.com/gustavovalverde) **Base:** `next` ← **Head:** `feat/uuidv7` --- ### 📝 Commits (10+) - [`60123da`](https://github.com/better-auth/better-auth/commit/60123da09ce09996782a30995a8a13bf6ce0274f) docs: add missing secret to getSignedCookie and remove misleading comments (#9008) - [`3baf029`](https://github.com/better-auth/better-auth/commit/3baf0294c2e439714fdf926977ea2cf4aed06539) chore(docs): add `remark-frontmatter` (#9015) - [`374985e`](https://github.com/better-auth/better-auth/commit/374985e340643f230adeb30961a76b414af6cb7c) docs: update community adapters and plugins pages (#9014) - [`3b95d70`](https://github.com/better-auth/better-auth/commit/3b95d70d046164424f778b4c01ba17319c2eaae5) docs: change community plugin name (#8961) - [`47dc887`](https://github.com/better-auth/better-auth/commit/47dc887d589d75d486edbd34b5cff869cb48194e) docs: add `@delmaredigital/payload-better-auth` to community plugins (#8375) - [`f61ad1c`](https://github.com/better-auth/better-auth/commit/f61ad1cab7360e4460e6450904e97498298a79d5) fix: use `INVALID_PASSWORD` for all `checkPassword` failures (#8902) - [`465c1dc`](https://github.com/better-auth/better-auth/commit/465c1dccf669f167cd03eb748df5ee2be3d1ff98) ci: add one-click changeset commit and unify bot identity (#9019) - [`2e537df`](https://github.com/better-auth/better-auth/commit/2e537df5f7f2a4263f52cce74d7a64a0a947792b) fix: endpoint instrumentation to always use route template (#9023) - [`5e7fd61`](https://github.com/better-auth/better-auth/commit/5e7fd61da065d900afc6bc20caadd63caee0808e) docs: hide fumadocs toc scroll indicator dot (#9021) - [`a7e359d`](https://github.com/better-auth/better-auth/commit/a7e359d870890230c79c09f85e3027eb1ddeb346) docs: add expo sentinel docs (#9025) ### 📊 Changes **94 files changed** (+2733 additions, -1480 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/auto-changeset.yml` (+186 -2) 📝 `.github/workflows/auto-label.yml` (+9 -0) 📝 `.github/workflows/auto-retarget.yml` (+13 -4) 📝 `.github/workflows/lock-threads.yml` (+10 -0) 📝 `.github/workflows/semantic-pull-request.yml` (+12 -1) 📝 `.gitignore` (+5 -0) 📝 `CONTRIBUTING.md` (+134 -188) 📝 `demo/electron/package.json` (+1 -1) 📝 `demo/electron/pnpm-lock.yaml` (+14 -35) 📝 `demo/oidc-client/package.json` (+1 -1) 📝 `demo/oidc-client/pnpm-lock.yaml` (+11 -56) 📝 `docs/.remarkrc.mjs` (+2 -0) 📝 `docs/app/blog/[[...slug]]/page.tsx` (+22 -1) 📝 `docs/app/changelog/changelog-content.tsx` (+2 -2) 📝 `docs/app/community/community-client.tsx` (+2 -2) 📝 `docs/app/globals.css` (+9 -0) 📝 `docs/components/community-adapters-grid.tsx` (+11 -0) 📝 `docs/components/community-plugins-table.tsx` (+2 -2) 📝 `docs/components/icons/index.tsx` (+11 -13) 📝 `docs/components/landing/hero-readme.tsx` (+1 -1) _...and 74 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds support for time-ordered UUIDs via advanced.database.generateId: "uuidv7". Postgres uses uuidv7() by default in migrations and generated schemas. - **New Features** - Added "uuidv7" to generateId option (types + docs). - Postgres: id columns default to uuidv7() in migrations and Drizzle/Prisma output (requires PostgreSQL 18+). - MySQL, SQLite, MSSQL: id columns use string/UUID types; IDs are generated client-side (no DB default). - CLI generators updated for uuidv7 with new snapshots. - New uuidv7 test suite enabled across Drizzle, Kysely, Prisma, Memory adapters; MongoDB remains unsupported. - **Bug Fixes** - OpenTelemetry endpoint spans now use route templates for consistent tracing. - Password verification hardening: all `checkPassword` failures return `INVALID_PASSWORD`. - Restored `getSession` usability in generic `Auth<O>` contexts; improved endpoint API typing. - **Dependencies** - Bump `drizzle-orm` to `^0.45.2`, `hono` to `^4.12.12`, and `vite` to `^7.3.2`. <sup>Written for commit 01f85ce807f7231b2c67d9b9312ebde0acad1cca. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 23:10:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#32342