Skip to content

Commit 95e2c58

Browse files
committed
ship LSP WASM in @gnata-sqlite/react, make useJsonataLsp() zero-config
1 parent 2ce8d1e commit 95e2c58

26 files changed

Lines changed: 2278 additions & 1276 deletions

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## 0.2.0
4+
5+
- **@gnata-sqlite/react**: Ships pre-built LSP WASM binaries — `useJsonataLsp()` works with zero configuration. See [React Widget Tutorial](https://rbby.dev/gnata-sqlite/docs/tutorials/react-widget).
6+
- **@gnata-sqlite/react**: Added `npx @gnata-sqlite/react setup ./public` to copy WASM files to your app.
7+
- Client-side eval engine (`gnata.wasm`, 5.3MB) is now opt-in. See [API Reference](https://rbby.dev/gnata-sqlite/docs/reference/react-widget).
8+
9+
## 0.1.0
10+
11+
- Initial release of `@gnata-sqlite/react` and `@gnata-sqlite/codemirror`.

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,26 @@ website-build:
5656
install:
5757
pnpm install
5858

59+
# Stage WASM assets into the react package for distribution
60+
# Depends on wasm target; skip with `make stage-wasm-only` if files already exist.
61+
stage-wasm: wasm
62+
cp gnata-lsp.wasm lsp-wasm_exec.js react/wasm/
63+
64+
stage-wasm-only:
65+
cp gnata-lsp.wasm lsp-wasm_exec.js react/wasm/
66+
5967
# Build and publish npm packages
60-
publish: editor react
68+
publish: editor react stage-wasm
6169
cd editor/codemirror && npm publish
6270
cd react && npm publish
6371

72+
# Bump version across all packages (usage: make bump v=0.2.0)
73+
bump:
74+
@if [ -z "$(v)" ]; then echo "Usage: make bump v=0.2.0"; exit 1; fi
75+
cd editor/codemirror && npm version $(v) --no-git-tag-version
76+
cd react && npm version $(v) --no-git-tag-version
77+
@echo "Bumped all packages to $(v)"
78+
6479
# Run benchmarks (requires extension to be built)
6580
bench: extension
6681
cd benchmarks && pnpm install && pnpm run bench

0 commit comments

Comments
 (0)