@citadeldb/wasm 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @citadeldb/wasm
2
2
 
3
- WebAssembly bindings for [Citadel](https://github.com/yp3y5akh0v/citadel) - an encrypted-first embedded database engine that outperforms unencrypted SQLite.
3
+ WebAssembly bindings for [Citadel](https://github.com/yp3y5akh0v/citadel), an encrypted-first embedded database engine.
4
4
 
5
5
  Every page is encrypted at rest with AES-256-CTR + HMAC-SHA256. Runs entirely in the browser or Node.js with no server required.
6
6
 
@@ -25,7 +25,7 @@ db.execute("INSERT INTO users (id, name) VALUES (1, 'Alice'), (2, 'Bob');");
25
25
  const result = db.query("SELECT * FROM users;");
26
26
  // { columns: ["id", "name"], rows: [[1, "Alice"], [2, "Bob"]] }
27
27
 
28
- // Multi-statement script returns one outcome per statement
28
+ // Multi-statement script - returns one outcome per statement
29
29
  const outcomes = db.run(`
30
30
  CREATE TABLE posts (id INTEGER PRIMARY KEY, title TEXT NOT NULL);
31
31
  INSERT INTO posts VALUES (1, 'Hello'), (2, 'World');
@@ -78,7 +78,7 @@ db.free();
78
78
 
79
79
  **JSON / JSONB** - 14 PG operators (`->`, `->>`, `#>`, `#>>`, `@>`, `<@`, `?`, `?|`, `?&`, `#-`, `@?`, `@@`, `@?_tz`, `@@_tz`), 16 scalar functions (`jsonb_typeof`, `jsonb_extract_path`, `jsonb_set`, `jsonb_pretty`, `to_jsonb`, etc.), 4 aggregates (`json_agg`, `jsonb_agg`, `json_object_agg`, `jsonb_object_agg`), 5 set-returning functions (`jsonb_array_elements`, `jsonb_each`, `jsonb_object_keys`, etc.), `JSON_TABLE` / `JSON_EXISTS` / `JSON_VALUE` / `JSON_QUERY` with full SQL/JSON predicate path language (e.g. `$.items[*] ? (@.x > 5)`), GIN inverted indexes (`CREATE INDEX … USING gin`) for accelerated `@>` containment
80
80
 
81
- **Full-text search** - `tsvector` / `tsquery` types, `to_tsvector` / `to_tsquery` / `plainto_tsquery` / `phraseto_tsquery` / `websearch_to_tsquery` builders, `@@` match operator, `ts_rank` / `ts_rank_cd` ranking with weighted positions (A/B/C/D), `strip`, `setweight` (2- and 3-arg selective), `tsvector || tsvector`, prefix matching (`term:*`), phrase distance (`<N>`), inverted indexes via `CREATE INDEX … USING fts` for sub-millisecond search at scale
81
+ **Full-text search** - `tsvector` / `tsquery` types, `to_tsvector` / `to_tsquery` / `plainto_tsquery` / `phraseto_tsquery` / `websearch_to_tsquery` builders, `@@` match operator, `ts_rank` / `ts_rank_cd` ranking with weighted positions (A/B/C/D), `strip`, `setweight` (2- and 3-arg selective), `tsvector || tsvector`, prefix matching (`term:*`), phrase distance (`<N>`), inverted indexes via `CREATE INDEX … USING fts`
82
82
 
83
83
  **Constraints** - PRIMARY KEY, NOT NULL, UNIQUE (column + table level, inline or `CREATE UNIQUE INDEX`), DEFAULT, CHECK (column + table level), FOREIGN KEY with full referential actions (`ON DELETE` / `ON UPDATE` `CASCADE` / `SET NULL` / `SET DEFAULT` / `RESTRICT` / `NO ACTION`)
84
84
 
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@citadeldb/wasm",
3
3
  "type": "module",
4
4
  "description": "WASM bindings for Citadel encrypted database",
5
- "version": "1.7.0",
5
+ "version": "1.9.0",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",