Skip to content

patches: rename sqlite3-worker → sqlite3-dot-commands#13

Merged
subsetpark merged 1 commit into
flowglad-mainfrom
refactor/sqlite3-patch-rename
May 19, 2026
Merged

patches: rename sqlite3-worker → sqlite3-dot-commands#13
subsetpark merged 1 commit into
flowglad-mainfrom
refactor/sqlite3-patch-rename

Conversation

@subsetpark

@subsetpark subsetpark commented May 19, 2026

Copy link
Copy Markdown

Summary

  • Upstream vercel-labs#190 (merged 2026-04-30, brought in via the just-bash@2.14.4 sync, commit dce0892) fixed the bundled-worker shipping bug — findWorkerPath() is fixed, the tarball ships dist/commands/sqlite3/worker.js, and there's even an upstream regression test (sqlite3.worker-resolution.test.ts). That half of sqlite3-worker is no longer ours.
  • The half we still carry is the dot-command preprocessor (packages/just-bash/src/commands/sqlite3/dot-commands.ts, 316 lines). It translates .tables, .schema, .mode, .read, .separator, .quit/.exit, etc. before the script reaches sql.js. Nothing equivalent exists upstream.
  • Rename the integration-test describe block (sqlite3-workersqlite3-dot-commands) and refresh its coverage to exercise the real carry: SQL replacement (.tables, .schema), formatter mutation (.mode csv), file inlining (.read). Drop the "ships the bundled worker so basic SQL runs" case — it's now testing upstream behavior.
  • Update the README patch row accordingly, with a parenthetical linking to Ship sqlite3 worker so npm consumers can use the command vercel-labs/just-bash#190 for history.

No source-level functionality changes — only the patch-inventory documentation and the release-gating test surface.

Test plan

  • pnpm --filter just-bash exec vitest run src/flowglad-patches.integration.test.ts — 7/7 pass (4 sqlite3-dot-commands, 1 awk, 2 jq)
  • Consumability CI green on the PR

🤖 Generated with Claude Code


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Upstream vercel-labs#190 (merged 2026-04-30, brought in via the
just-bash@2.14.4 sync) fixed the worker bundling bug — published
tarballs now ship dist/commands/sqlite3/worker.js, and there's an
upstream regression test for the resolver. That half of the carry
is no longer ours.

The half we still carry is the dot-command preprocessor
(commands/sqlite3/dot-commands.ts), which translates .tables,
.schema, .mode, .read, .separator, .quit, etc. before handing
the script to sql.js. Nothing equivalent exists upstream.

- Rename the integration-test describe block and update its
  coverage to exercise the actual carry: SQL replacement
  (.tables, .schema), formatter mutation (.mode csv), and
  file inlining (.read). Drop the "ships the bundled worker"
  case — it's now testing upstream behavior.
- Update the README patch table accordingly, with a parenthetical
  linking to vercel-labs#190 for history.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@subsetpark subsetpark merged commit f1a7f8a into flowglad-main May 19, 2026
2 of 3 checks passed
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