Skip to content

chore: sync upstream better-auth v1.6.9 + bump @btst to v2.2.2#42

Draft
cursor[bot] wants to merge 94 commits into
mainfrom
cursor/upstream-release-integration-814d
Draft

chore: sync upstream better-auth v1.6.9 + bump @btst to v2.2.2#42
cursor[bot] wants to merge 94 commits into
mainfrom
cursor/upstream-release-integration-814d

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented Apr 24, 2026

Summary

Weekly upstream sync from better-auth/better-auth v1.6.9, covering releases v1.6.6 through v1.6.9 (all bug fix releases).

Upstream changes (v1.6.6 → v1.6.9)

  • v1.6.6: Cookie partitioned attribute preservation, SSO samlify ESM/CJS compat fix, mapConcurrent utility, various bug fixes
  • v1.6.7: Passkey/oauth fixes, mapProfileToUser email fallback, phone number callback fix, API error header preservation, social providers array of Client IDs
  • v1.6.8: Core instrumentation package self-reference fix, oauth state guard, organization beforeCreateTeam/beforeCreateInvitation id support
  • v1.6.9: Core instrumentation resolve via package self-reference in adapter factory

Changes in this PR

  • Merged upstream tag v1.6.9 — resolved conflicts by keeping our README.md, accepting upstream for all else
  • Replaced private runner starsling-ubuntu-24.04ubuntu-latest in e2e.yml
  • Ran sync-upstream.ts — vendored updated adapter files (drizzle, prisma, memory, mongodb, kysely) and CLI utilities from their standalone packages
  • Fixed sync-upstream.ts header comments — removed trailing spaces from blank * lines in HEADER_COMMENT templates (Biome lint compliance; permanent fix)
  • Bumped all @btst/* packages from 2.2.12.2.2 (patch bump — pure upstream sync, no new @BTST functionality)
  • Added orms to cspell tech-terms.txt
  • pnpm-lock.yaml updated via pnpm install --no-frozen-lockfile

CI results (local)

  • pnpm lint
  • pnpm lint:spell
  • pnpm lint:types
  • pnpm --filter "@btst/*" exec tsc --noEmit
  • pnpm lint:dependencies
  • pnpm lint:packages
  • pnpm format:check
  • @btst/db tests: 28/28 ✅
  • @btst/adapter-memory tests: 11/11 ✅
  • @btst/cli schema-conversion: 7/7 ✅
  • @btst/cli generate-all-orms: 20/20 ✅
  • @btst/cli e2e: expected failures (needs live Postgres/MySQL — CI only)

Post-merge release steps

After PR is merged to main:

git checkout main && git pull
git tag btst-v2.2.2
git push origin btst-v2.2.2
# Then create a GitHub Release from that tag
Open in Web View Automation 

gustavovalverde and others added 30 commits April 9, 2026 18:15
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
…ter-auth#9072)

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
…r-auth#8389)

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
Co-authored-by: leonardo2204 <1509421+leonardo2204@users.noreply.github.com>
Co-authored-by: better-release[bot] <273320539+better-release[bot]@users.noreply.github.com>
…gin (better-auth#8982)

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
better-auth#8926)

Co-authored-by: better-release[bot] <273320539+better-release[bot]@users.noreply.github.com>
…lidation

grep -coP outputs "0" to stdout on no matches but exits 1, causing
the || echo 0 fallback to append a second "0". The resulting "0\n0"
value fails the -lt integer comparison. Use || true instead since
grep -c already outputs the correct count.
…on (better-auth#7231)

Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
…h#9109)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
better-release Bot and others added 30 commits April 21, 2026 17:42
…ter-auth#9149)

Co-authored-by: Morgan PEYRE <morgan.peyre@brickcode.tech>
…uth#9211)

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… is enabled (better-auth#4894)

Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
…auth#9293)

Co-authored-by: Menachem Hornbacher <mhornbacher@kiddom.co>
….api (better-auth#9244)

Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
…uth#9306)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
…eforeCreateInvitation` (better-auth#9253)

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ter-auth#9270)

Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ter factory (better-auth#9340)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
…ync files

- Fix HEADER_COMMENT and HEADER_COMMENT_WITH_PATCHES templates in sync-upstream.ts
  to use ' *' instead of ' * ' on blank comment lines (Biome lint compliance)
- Re-run sync-upstream.ts to regenerate all vendored files with fixed headers
- Fix import organization in kysely-adapter.ts and generators/prisma.ts
- Add 'orms' to cspell tech-terms.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.