Skip to content

chore: bump btst db version#116

Merged
olliethedev merged 1 commit intomainfrom
chore/bump-db-version
Apr 10, 2026
Merged

chore: bump btst db version#116
olliethedev merged 1 commit intomainfrom
chore/bump-db-version

Conversation

@olliethedev
Copy link
Copy Markdown
Collaborator

@olliethedev olliethedev commented Apr 10, 2026

Summary

  • bump btst db version

closes #94

Type of change

  • Bug fix
  • New plugin
  • Feature / enhancement to an existing plugin
  • Documentation
  • Chore / refactor / tooling

Checklist

  • pnpm build passes
  • pnpm typecheck passes
  • pnpm lint passes
  • Tests added or updated (unit and/or E2E)
  • Docs updated (docs/content/docs/) if consumer-facing types or behavior changed
  • All three codegen-projects create successfully and pass E2E tests
  • New plugin: submission checklist in CONTRIBUTING.md completed

Screenshots


Note

Low Risk
Low-risk change limited to package metadata and dependency version bumps; main risk is any behavioral/compatibility change introduced by the upgraded @btst/db/@btst/adapter-memory and better-call peer requirement.

Overview
Bumps @btst/stack from 2.11.2 to 2.11.3 and upgrades @btst/db to 2.2.1 (plus @btst/adapter-memory to 2.2.1).

Updates the better-call peer dependency minimum from >=1.3.2 to >=1.3.5.

Reviewed by Cursor Bugbot for commit 9b26bd9. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-stack-docs Ready Ready Preview, Comment Apr 10, 2026 7:43pm
better-stack-playground Ready Ready Preview, Comment Apr 10, 2026 7:43pm

Request Review

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Assessment — chore: bump btst db version

Summary

No high-confidence vulnerabilities were introduced by the core dependency bump (@btst/db 2.1.1 → 2.2.1, @btst/adapter-memory 2.1.1 → 2.2.1, better-call peer minimum ≥ 1.3.5). All pinned packages carry integrity hashes in the lockfile and the auth library upgrade (@better-auth/core 1.5.x → 1.6.2) follows a transitively locked resolution.

One moderate supply-chain concern and one informational note are flagged below.


Findings

[MODERATE] nitro pinned to specifier: latest — resolves to a beta pre-release

File: pnpm-lock.yaml (codegen-projects/tanstack importer block, line ~319)

nitro:
  specifier: latest
  version: 3.0.260311-beta(...)

The latest dist-tag on npm resolves to whatever the registry considers "latest" at install time, and it can include beta / pre-release versions (as it does here: 3.0.260311-beta). Risks:

  • Lockfile bypass: any fresh pnpm install without --frozen-lockfile (e.g. after a pnpm update or CI cache miss) will pull in the newest latest, which may be a different beta or even a malicious replacement if the package is compromised between now and that install.
  • Template propagation: if codegen-projects/tanstack is a scaffold that is copied or generated into consumer projects, the latest specifier propagates to end-user package.json files, leaving their production servers pinned to an ever-changing beta framework version.
  • Beta stability: pre-release builds of a server framework like Nitro may include unreviewed security changes or regressions.

Remediation: Pin nitro to an explicit stable semver range (e.g. ^3.0.0 or the exact 3.0.x once a stable release is cut) in the codegen template's package.json rather than latest.


[INFORMATIONAL] @better-auth/core upgraded 1.5.x → 1.6.2 (transitive, via @btst/db)

The lockfile drops @better-auth/core@1.5.4 and @1.5.6 entirely in favour of 1.6.2. This is a non-trivial minor bump for an auth library — the @better-auth/utils peer moved from 0.3.1 to 0.4.0 and @opentelemetry/api was added as a new peer in 1.6.2. The resolved version carries an integrity hash so there is no substitution risk, but the @btst/db maintainer should confirm that @better-auth/core 1.6.x does not introduce session-handling or token-management regressions relevant to @btst/stack consumers.


What was checked and found clean

Area Verdict
SQL / command injection surface No new query construction or shell execution in diff
Authn/authz boundaries No permission logic changed; auth library upgrade is lockfile-pinned
Secret / token leakage No new logging or env variable handling
SSRF / XSS vectors No new HTTP client or template rendering code
Package integrity All packages have resolution: {integrity: sha512-...} in lockfile
better-call peer bump (≥ 1.3.5) Resolved to 1.3.5(zod@4.2.1) with integrity hash — no gap
Open in Web View Automation 

Sent by Cursor Automation: Find vulnerabilities

version: 5.0.94(zod@4.2.1)
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supply-chain risk: specifier: latest pinned to a beta pre-release.

The nitro dependency in codegen-projects/tanstack uses latest as its version specifier, which resolved here to 3.0.260311-beta. latest on npm can include pre-release builds and will silently advance on any fresh install without --frozen-lockfile.

If this codegen project is used as a scaffold template, the latest specifier is copied into consumer package.json files, leaving their production servers on an ever-changing, unreviewed beta of a server framework.

Recommended fix: Replace specifier: latest with an explicit stable range such as "nitro": "^3.0.0" (or the first stable 3.x release) in codegen-projects/tanstack/package.json.

@github-actions
Copy link
Copy Markdown
Contributor

Shadcn registry validated — no registry changes detected.

@olliethedev olliethedev merged commit 431c01a into main Apr 10, 2026
10 checks passed
@olliethedev olliethedev deleted the chore/bump-db-version branch April 10, 2026 19:55
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.

Comments plugin: null equality bug in Drizzle/Kysely adapters causes top-level comments to disappear

1 participant