WASM v0.2.0
·
5 commits
to main
since this release
Published to npm: https://www.npmjs.com/package/@joaoh82/sqlrite-wasm/v/0.2.0
npm install @joaoh82/sqlrite-wasm@0.2.0// Bundler target — works with webpack, vite, rollup, parcel
import init, { Database } from '@joaoh82/sqlrite-wasm';
await init();
const db = new Database();
db.exec("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)");
db.exec("INSERT INTO users (name) VALUES ('alice')");
const rows = db.query("SELECT id, name FROM users");
// → [{ id: 1, name: 'alice' }]What's in the package:
sqlrite_wasm_bg.wasm— the WebAssembly engine binarysqlrite_wasm.js— auto-generated JS glue (wasm-bindgen)sqlrite_wasm.d.ts— TypeScript typespackage.json— bundler-target metadata
Build target: bundler (webpack/vite/rollup-friendly).
For web / nodejs / deno targets, build from source via wasm-pack build sdk/wasm --target <target>.
Verify package provenance:
npm audit signaturesSee the umbrella release v0.2.0 for the full changelog.
What's Changed
- cleanup(engine): make process_command stdout-clean (drop REPL-only prints) by @joaoh82 in #76
- docs(phase-8): plan — full-text search (BM25) + hybrid retrieval by @joaoh82 in #77
- feat(fts): 8a — standalone algorithms (tokenizer + BM25 + posting list) by @joaoh82 in #78
- feat(fts): 8b — SQL surface for full-text search by @joaoh82 in #79
- feat(fts): 8c — cell-encoded persistence + on-demand v4→v5 bump by @joaoh82 in #80
- feat(fts): 8d — hybrid retrieval worked example (BM25 + vector) by @joaoh82 in #81
- feat(fts): 8e — sqlrite-mcp bm25_search tool by @joaoh82 in #82
- feat(fts): 8f — final docs sweep for full-text search by @joaoh82 in #83
- release: v0.2.0 by @joaoh82 in #84
Full Changelog: sdk/go/v0.1.25...sqlrite-wasm-v0.2.0