Skip to content

chore(playground): refresh vendored WASM bundle with SQLR-6 engine#165

Merged
joaoh82 merged 1 commit into
mainfrom
playground-wasm-sqlr6
Jun 10, 2026
Merged

chore(playground): refresh vendored WASM bundle with SQLR-6 engine#165
joaoh82 merged 1 commit into
mainfrom
playground-wasm-sqlr6

Conversation

@joaoh82

@joaoh82 joaoh82 commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

The /playground WASM bundle is a pinned, vendored copy of sdk/wasm/pkg/ — it doesn't pick up engine changes until rebuilt and re-committed. This refreshes it against main at 79eff1d (#164), so the playground exposes the new SQL surface: aggregates / GROUP BY / DISTINCT / HAVING over JOIN results, including qualified GROUP BY t.col keys.

Built with the documented flow (examples/wasm-playground/README.md):

cd sdk/wasm
wasm-pack build --target web --release --out-dir pkg
cp pkg/{sqlrite_wasm.js,sqlrite_wasm_bg.wasm,sqlrite_wasm.d.ts,sqlrite_wasm_bg.wasm.d.ts} ../../web/public/playground/pkg/

Only sqlrite_wasm_bg.wasm changes — the JS glue and .d.ts files are byte-identical (the WASM API surface didn't change, only engine internals).

Test plan

  • Loaded the exact vendored artifacts in Node (web-target glue + .wasm bytes through the same init path the browser uses) and ran joined GROUP BY / DISTINCT / HAVING queries — correct results, including COUNT(col) skipping outer-join NULL padding.
  • Same queries also verified through a --target nodejs build of the SDK.
  • npm run build in web/ passes; /playground page builds.

🤖 Generated with Claude Code

Rebuild sdk/wasm (wasm-pack --target web --release) against the engine
at 79eff1d so the /playground exposes aggregates / GROUP BY / DISTINCT /
HAVING over JOIN results. Only the .wasm binary changes — the JS glue
and type definitions are byte-identical (no API surface change).

Verified by loading the vendored pkg directly and running joined
GROUP BY / DISTINCT / HAVING queries (correct results incl. outer-join
NULL handling).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
rust-sqlite Ready Ready Preview, Comment Jun 10, 2026 8:26pm

Request Review

@joaoh82 joaoh82 merged commit 961cefa into main Jun 10, 2026
20 checks passed
joaoh82 added a commit that referenced this pull request Jun 11, 2026
…WASM (#170)

Post-release chores for v0.14.0, mirroring #163/#165:
- install snippets (README, docs/ask.md, docs/embedding.md) 0.13 -> 0.14
- site displayed version (web/src/lib/site.ts) 0.14.0
- vendored playground bundle rebuilt from the v0.14.0 engine, picking
  up SQLR-2 / SQLR-14 / SQLR-15 scope validation (JS bindings
  unchanged — no API delta, binary only)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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