Skip to content

Pin better-auth to the exact release CI tested - #56

Merged
nedtwigg merged 1 commit into
mainfrom
pin-better-auth
Oct 4, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
pin-better-auth

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Oct 4, 2026

Copy link
Copy Markdown
Member

@pgstencil/auth reads Better Auth internals, such as its verification rows for OAuth state. The ~1.7.x range let a consumer resolve a Better Auth patch our CI never ran against. That already broke OAuth: published @pgstencil/auth@0.2.1 declares ~1.7.3, so a fresh install picks up 1.7.7, which renamed its OAuth state rows (fixed in #50).

  • The pin: packages/auth/package.json changes from ~1.7.7 to 1.7.7. Better Auth pins its own @better-auth/* packages and better-call exactly, so this freezes the whole stack we test.
  • Renovate: no change needed. Its rangeStrategy: "bump" rule for packages/* dependencies keeps updating an exact version.
  • Docs: PACKAGES.md and SECURITY.md now say Better Auth is pinned exactly, instead of "admits patches only".

Trade-off: a Better Auth fix, including a security fix, now reaches applications only through a pgstencil release. Renovate's vulnerability alerts already skip the weekly schedule, and an app can use a pnpm override in an emergency.

No version bump. This ships with the next release.

Test plan

  • pnpm format:check, pnpm typecheck
  • pnpm packages:verify: the installed consumer's @pgstencil/auth declares better-auth: 1.7.7

🤖 Generated with Claude Code

@pgstencil/auth reads Better Auth internals, and a patch release can
change them: 1.7.7 renamed its OAuth state rows, which broke OAuth for
any 0.2.x install that resolved it through `~1.7.3`. An exact pin means
an application only ever runs the Better Auth release pgstencil tested;
each upgrade reaches applications through a pgstencil release.

Better Auth pins its own @better-auth/* packages and better-call
exactly, so this freezes the whole stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nedtwigg
nedtwigg merged commit d026940 into main Oct 4, 2026
1 check passed
@nedtwigg
nedtwigg deleted the pin-better-auth branch October 4, 2026 23:03
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.

1 participant