Upgrade Guide
This page tracks breaking changes and upgrade steps between releases.
Current version
Section titled “Current version”All packages are versioned together at 0.6.0 (the v0.6 Production
Hardening release).
v0.5 → v0.6 (Production Hardening)
Section titled “v0.5 → v0.6 (Production Hardening)”The hardening pass changed behavior in security-relevant ways. Review these:
| Change | Action |
|---|---|
| JWT algorithm now enforced | set alg explicitly on signJwt/verifyJwt |
scrypt cost raised to N=2^15 |
re-hash on next login; old hashes still verify |
| Raw-SQL hatches guarded | remove ;, --, /* from selectExpr/whereExpr |
| API auth is awaited | await createRestHandler(...); handle 403 |
PgDriver.transaction commit classified |
wrap commit errors; rollback attempted |
| RLS enforcement opt-in | register policies + enforceRls if you want it |
v0.2 → v0.6 (version bump)
Section titled “v0.2 → v0.6 (version bump)”All packages moved from 0.2.0 to 0.6.0. Update every @mountsqli/*
package together — they share a version.
General upgrade steps
Section titled “General upgrade steps”- Bump all
@mountsqli/*packages to the same version. - Run
pnpm installandpnpm -r typecheck. - Apply the v0.5 → v0.6 items above.
- Run
pnpm -r testandmountsqli migrate status.
Best practices
Section titled “Best practices”- Keep all
@mountsqli/*packages on the same version. - Run
mountsqli analyzeafter upgrading to catch drift.
Common mistakes
Section titled “Common mistakes”- Mixing package versions (they’re released in lockstep).
- Skipping the RLS opt-in decision (enforcement is off by default).
Related
Section titled “Related”- Roadmap — what’s next (v1.0).
- Error Handling — the
MountErrorcodes.
