latticesql 0.18.4 → 1.0.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
@@ -969,7 +969,11 @@ const task = await db.updateReturning('tasks', 'task-001', { status: 'done' });
969
969
  // task → { id: 'task-001', title: 'Write docs', status: 'done', priority: 3, ... }
970
970
 
971
971
  // Composite PK
972
- const seat = await db.updateReturning('event_seats', { event_id: 'e-1', seat_no: 3 }, { holder: 'Bob' });
972
+ const seat = await db.updateReturning(
973
+ 'event_seats',
974
+ { event_id: 'e-1', seat_no: 3 },
975
+ { holder: 'Bob' },
976
+ );
973
977
  // seat → { event_id: 'e-1', seat_no: 3, holder: 'Bob' }
974
978
  ```
975
979
 
package/dist/cli.js CHANGED
@@ -1712,7 +1712,12 @@ var Lattice = class {
1712
1712
  this._assertNotInit("define");
1713
1713
  const compiledDef = {
1714
1714
  ...def,
1715
- render: def.render ? compileRender(def, table, this._schema, this._adapter) : () => "",
1715
+ render: def.render ? compileRender(
1716
+ def,
1717
+ table,
1718
+ this._schema,
1719
+ this._adapter
1720
+ ) : () => "",
1716
1721
  outputFile: def.outputFile ?? `.schema-only/${table}.md`
1717
1722
  };
1718
1723
  this._schema.define(table, compiledDef);
package/dist/index.cjs CHANGED
@@ -1755,7 +1755,12 @@ var Lattice = class {
1755
1755
  this._assertNotInit("define");
1756
1756
  const compiledDef = {
1757
1757
  ...def,
1758
- render: def.render ? compileRender(def, table, this._schema, this._adapter) : () => "",
1758
+ render: def.render ? compileRender(
1759
+ def,
1760
+ table,
1761
+ this._schema,
1762
+ this._adapter
1763
+ ) : () => "",
1759
1764
  outputFile: def.outputFile ?? `.schema-only/${table}.md`
1760
1765
  };
1761
1766
  this._schema.define(table, compiledDef);
@@ -2676,9 +2681,7 @@ function fixSchemaConflicts(db, checks) {
2676
2681
  if (tableExists(db, "__lattice_migrations")) {
2677
2682
  const versionCol = db.prepare('PRAGMA table_info("__lattice_migrations")').all().find((c) => c.name === "version");
2678
2683
  if (versionCol?.type.toUpperCase().includes("INTEGER")) {
2679
- db.exec(
2680
- 'ALTER TABLE "__lattice_migrations" RENAME TO "__lattice_migrations_v1"'
2681
- );
2684
+ db.exec('ALTER TABLE "__lattice_migrations" RENAME TO "__lattice_migrations_v1"');
2682
2685
  }
2683
2686
  }
2684
2687
  }
package/dist/index.js CHANGED
@@ -1688,7 +1688,12 @@ var Lattice = class {
1688
1688
  this._assertNotInit("define");
1689
1689
  const compiledDef = {
1690
1690
  ...def,
1691
- render: def.render ? compileRender(def, table, this._schema, this._adapter) : () => "",
1691
+ render: def.render ? compileRender(
1692
+ def,
1693
+ table,
1694
+ this._schema,
1695
+ this._adapter
1696
+ ) : () => "",
1692
1697
  outputFile: def.outputFile ?? `.schema-only/${table}.md`
1693
1698
  };
1694
1699
  this._schema.define(table, compiledDef);
@@ -2609,9 +2614,7 @@ function fixSchemaConflicts(db, checks) {
2609
2614
  if (tableExists(db, "__lattice_migrations")) {
2610
2615
  const versionCol = db.prepare('PRAGMA table_info("__lattice_migrations")').all().find((c) => c.name === "version");
2611
2616
  if (versionCol?.type.toUpperCase().includes("INTEGER")) {
2612
- db.exec(
2613
- 'ALTER TABLE "__lattice_migrations" RENAME TO "__lattice_migrations_v1"'
2614
- );
2617
+ db.exec('ALTER TABLE "__lattice_migrations" RENAME TO "__lattice_migrations_v1"');
2615
2618
  }
2616
2619
  }
2617
2620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "latticesql",
3
- "version": "0.18.4",
3
+ "version": "1.0.0",
4
4
  "description": "Persistent structured memory for AI agent systems — SQLite ↔ LLM context bridge",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",