@crvouga/sqlite-mem 1.1.2 → 1.3.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.
@@ -53,8 +53,8 @@ export declare class Fts5VirtualTable {
53
53
  snippet(cursor: FtsMatchCursor, colIndex: number, open: string, close: string, ellipsis: string, tokenCount: number): string;
54
54
  /** FTS3/4 offsets(): "col phrase start length ..." */
55
55
  offsets(cursor: FtsMatchCursor): string;
56
- /** FTS3 matchinfo default format 'pcx' simplified blob of 32-bit LE ints. */
57
- matchinfo(cursor: FtsMatchCursor, _format?: string): Uint8Array;
56
+ /** FTS3 matchinfo format encoded as native-style 32-bit little-endian integers. */
57
+ matchinfo(cursor: FtsMatchCursor, format?: string): Uint8Array;
58
58
  vocabRows(mode: "row" | "col" | "instance"): Array<Record<string, SqlValue>>;
59
59
  clone(): Fts5VirtualTable;
60
60
  private detectCommand;
@@ -72,7 +72,6 @@ export declare class Fts5VirtualTable {
72
72
  private expandTermNode;
73
73
  private phraseFreq;
74
74
  private phraseDocFreq;
75
- private termFreq;
76
75
  private docLength;
77
76
  private bumpRowid;
78
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/sqlite-mem",
3
- "version": "1.1.2",
3
+ "version": "1.3.0",
4
4
  "description": "Pure TypeScript in-memory SQLite implementation with zero WASM/native dependencies",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,11 +53,18 @@
53
53
  "benchmark:compare": "bun run benchmarks/run.ts --tier default --engine compare --grep compare/ --out benchmarks/results/compare-js.json",
54
54
  "benchmark:compare-js": "bun run benchmarks/run.ts --tier default --engine compare-js --grep compare/js/ --out benchmarks/results/compare-js-only.json",
55
55
  "benchmark:compare-sqlite": "bun run benchmarks/run.ts --tier default --engine compare-sqlite --grep compare/sqlite/ --out benchmarks/results/compare-sqlite.json",
56
- "benchmark:ci": "bun run benchmarks/run.ts --tier ci --engine mem --out benchmarks/results/ci-latest.json && bun run benchmarks/compare-ci.ts",
56
+ "benchmark:ci": "bun run benchmarks/run.ts --tier ci --engine mem --out benchmarks/results/ci-latest.json && bun run benchmarks/compare-ci.ts && bun run benchmarks/check-budgets.ts",
57
+ "benchmark:memory": "bun run benchmarks/check-budgets.ts",
57
58
  "benchmark:bundle": "bun run build && bun run benchmarks/bundle.ts",
58
59
  "benchmark:report": "bun run benchmarks/report-html.ts",
59
- "test:sqlite-compat": "bun run scripts/sqlite-compat-gate.ts && bun test tests/contract tests/fuzz tests/harness",
60
+ "test:browser": "bun run build && bun run scripts/browser-perf.ts",
61
+ "test:browser-sql": "bun run build && bun run scripts/browser-sql-smoke.ts",
62
+ "test:canaries": "bun run scripts/run-canaries.ts",
63
+ "test:sqlite-compat": "bun run scripts/sqlite-compat-gate.ts && bun run scripts/check-skip-register.ts && bun test tests/contract tests/fuzz tests/harness",
64
+ "divergences": "bun run scripts/generate-divergences.ts",
65
+ "fixtures:browser": "bun run scripts/generate-browser-fixtures.ts",
60
66
  "inventory": "bun run scripts/sqlite-inventory.ts",
67
+ "scenarios": "bun run scripts/sqlite-scenarios.ts",
61
68
  "fts-surface": "bun run scripts/fts-oracle-surface.ts",
62
69
  "requirements": "bun run scripts/sqlite-requirements.ts",
63
70
  "typecheck": "tsc --noEmit",