Uh oh!
There was an error while loading. Please reload this page.
Feat/2.0 config rename reconnect - #19
Closed
revxshafi wants to merge 3 commits into
Closed
Conversation
Restructure README example-first (quick start leads, Postgres switch as proof) and add a visual system: a pure-SVG hero (name, tagline, engine-swap motif) and a how-it-works architecture diagram, both self-backgrounded for light/dark GitHub themes. Add real npm/types/node/license badges. Content tables (reliability, migration guarantees, API, limits) preserved, repeated prose trimmed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
BREAKING CHANGE: DALConfig.db is now a 'local' | 'cloud' selector with local?/cloud? blocks declared alongside it; the per-block `mode` field is removed. Every declared block is validated eagerly at connect(), and a db: 'cloud' with no cloud block throws ConfigurationError. - rename createDAL() -> sqlSwitch() (factory + default export); createDAL kept as a one-line @deprecated alias, removed in 3.0 - add db.reconnect(target?): restart / recover a wedged connection, or repoint to the other declared engine without moving data. fail-safe (new engine built + validated before the old one is torn down) and flushes pending writes first. engineSwap() stays a pure data-mover. - bump to 2.0.0 across root + scoped package (version + dep pin) - docs: README, CHANGELOG 2.0.0 entry, CLAUDE.md public-API invariant - tests: reconnect.test.ts + factory-rename.test.ts
revxshafi
enabled auto-merge (squash)
August 26, 2026 10:21
- architecture.svg: shrink the engineSwap caption to 13px so "resumable" stops overflowing the box; "collapses repeats" -> "collapse repeats" so the "w" in "now" no longer touches the card edge - hero.svg: replace the hardcoded "npm 1.0.1" (had to be hand-edited every release) with the always-true "ESM + CJS"; a live version belongs in a shields.io README badge, not a static committed SVG - hero.svg: mode: 'local'/'cloud' -> db: 'local'/'cloud' to match the 2.0 both-engines config shape
7 tasks
revxshafi
commented
Aug 26, 2026
CollaboratorAuthor
Superseded by #20 — same changes rebased onto current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related issue
Type of change
How it was tested
And, when you have a throwaway Postgres to point at:
DATABASE_URL=postgres://... pnpm swap-test # creates & drops a swaptest schemaChecklist
pnpm docs)src/database/index.ts) changes are intentional and called out aboveCLAUDE.md(comment mechanics, variable naming, tone)