@super-line/collections-pglite 0.1.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/LICENSE +21 -0
- package/dist/index.cjs +131 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +96 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mert
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
pgliteCollections: () => pgliteCollections
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
var import_pglite = require("@electric-sql/pglite");
|
|
37
|
+
var import_live = require("@electric-sql/pglite/live");
|
|
38
|
+
var import_pglite_sync = require("@electric-sql/pglite-sync");
|
|
39
|
+
var import_postgres = __toESM(require("postgres"), 1);
|
|
40
|
+
var import_core = require("@super-line/core");
|
|
41
|
+
var IDENT = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
42
|
+
var SEP = String.fromCharCode(1);
|
|
43
|
+
var encodePk = (n, id) => n + SEP + id;
|
|
44
|
+
var decodePk = (pk) => {
|
|
45
|
+
const i = pk.indexOf(SEP);
|
|
46
|
+
return i === -1 ? { n: pk, id: "" } : { n: pk.slice(0, i), id: pk.slice(i + 1) };
|
|
47
|
+
};
|
|
48
|
+
async function pgliteCollections(opts) {
|
|
49
|
+
const table = opts.table ?? "collection_rows";
|
|
50
|
+
if (!IDENT.test(table)) throw new Error(`Invalid table name: ${table}`);
|
|
51
|
+
const ddl = `CREATE TABLE IF NOT EXISTS "${table}" (pk text PRIMARY KEY, collection text NOT NULL, id text NOT NULL, data jsonb NOT NULL, origin text)`;
|
|
52
|
+
const sql = (0, import_postgres.default)(opts.pgUrl, { prepare: false, onnotice: () => {
|
|
53
|
+
} });
|
|
54
|
+
const runDdl = async (stmt) => {
|
|
55
|
+
try {
|
|
56
|
+
await sql.unsafe(stmt);
|
|
57
|
+
} catch (err) {
|
|
58
|
+
const code = err.code;
|
|
59
|
+
if (code !== "42P07" && code !== "23505" && code !== "42710") throw err;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
await runDdl(ddl);
|
|
63
|
+
const asJson = (v) => sql.json(v);
|
|
64
|
+
const ownsDb = !opts.db;
|
|
65
|
+
const db = opts.db ?? await import_pglite.PGlite.create({ extensions: { live: import_live.live, sync: (0, import_pglite_sync.electricSync)() } });
|
|
66
|
+
await db.exec(ddl);
|
|
67
|
+
const changeCbs = /* @__PURE__ */ new Set();
|
|
68
|
+
const liveSub = await db.live.changes(`SELECT pk, data, origin FROM "${table}"`, [], "pk", (changes) => {
|
|
69
|
+
for (const ch of changes) {
|
|
70
|
+
if (ch.__op__ !== "INSERT" && ch.__op__ !== "UPDATE" && ch.__op__ !== "DELETE") continue;
|
|
71
|
+
const { n, id } = decodePk(ch.pk);
|
|
72
|
+
const origin = ch.origin ?? "";
|
|
73
|
+
if (ch.__op__ === "DELETE") {
|
|
74
|
+
for (const cb of changeCbs) cb({ n, k: "delete", id, origin });
|
|
75
|
+
} else {
|
|
76
|
+
const k = ch.__op__ === "INSERT" ? "insert" : "update";
|
|
77
|
+
for (const cb of changeCbs) cb({ n, k, id, next: ch.data, origin });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const shape = opts.electricUrl && db.sync ? await db.sync.syncShapeToTable({ shape: { url: opts.electricUrl, params: { table } }, table, primaryKey: ["pk"], shapeKey: null }) : void 0;
|
|
82
|
+
return {
|
|
83
|
+
clustering: "self",
|
|
84
|
+
async apply(ops, origin) {
|
|
85
|
+
await sql.begin(async (tx) => {
|
|
86
|
+
for (const op of ops) {
|
|
87
|
+
const pk = encodePk(op.n, op.id);
|
|
88
|
+
if (op.op === "insert") {
|
|
89
|
+
const res = await tx`INSERT INTO ${tx(table)} (pk, collection, id, data, origin)
|
|
90
|
+
VALUES (${pk}, ${op.n}, ${op.id}, ${asJson(op.row)}, ${origin}) ON CONFLICT (pk) DO NOTHING`;
|
|
91
|
+
if (res.count === 0) throw new import_core.SuperLineError("CONFLICT", `Row already exists: ${op.n}/${op.id}`);
|
|
92
|
+
} else if (op.op === "update") {
|
|
93
|
+
const res = await tx`UPDATE ${tx(table)} SET data = ${asJson(op.row)}, origin = ${origin} WHERE pk = ${pk}`;
|
|
94
|
+
if (res.count === 0) throw new import_core.SuperLineError("NOT_FOUND", `No row: ${op.n}/${op.id}`);
|
|
95
|
+
} else {
|
|
96
|
+
await tx`DELETE FROM ${tx(table)} WHERE pk = ${pk}`;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
return [];
|
|
101
|
+
},
|
|
102
|
+
async snapshot(n, query) {
|
|
103
|
+
const rows = await sql`SELECT data::text AS data FROM ${sql(table)} WHERE collection = ${n}`;
|
|
104
|
+
return (0, import_core.applyQuery)(
|
|
105
|
+
rows.map((r) => JSON.parse(r.data)),
|
|
106
|
+
query
|
|
107
|
+
);
|
|
108
|
+
},
|
|
109
|
+
async read(n, id) {
|
|
110
|
+
const rows = await sql`SELECT data::text AS data FROM ${sql(table)} WHERE pk = ${encodePk(n, id)}`;
|
|
111
|
+
return rows[0] ? JSON.parse(rows[0].data) : void 0;
|
|
112
|
+
},
|
|
113
|
+
onChange(cb) {
|
|
114
|
+
changeCbs.add(cb);
|
|
115
|
+
return () => changeCbs.delete(cb);
|
|
116
|
+
},
|
|
117
|
+
async close() {
|
|
118
|
+
try {
|
|
119
|
+
await liveSub.unsubscribe();
|
|
120
|
+
shape?.unsubscribe();
|
|
121
|
+
if (ownsDb) await db.close();
|
|
122
|
+
} finally {
|
|
123
|
+
await sql.end();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
+
0 && (module.exports = {
|
|
130
|
+
pgliteCollections
|
|
131
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PGliteWithLive } from '@electric-sql/pglite/live';
|
|
2
|
+
import { CollectionStore } from '@super-line/core';
|
|
3
|
+
|
|
4
|
+
/** Options for {@link pgliteCollections}. */
|
|
5
|
+
interface PgliteCollectionsOptions {
|
|
6
|
+
/** Connection string for the central Postgres — source of truth for writes + strong reads (real Postgres or a PGLiteSocketServer). */
|
|
7
|
+
pgUrl: string;
|
|
8
|
+
/** Electric shape endpoint streaming the central table into this node's local replica. Omit to feed the replica manually (tests). */
|
|
9
|
+
electricUrl?: string;
|
|
10
|
+
/** Table holding every collection's rows on both central + replica; defaults to `collection_rows`. */
|
|
11
|
+
table?: string;
|
|
12
|
+
/** Advanced/testing: supply the local PGlite replica (needs the `live` extension; add `sync`/`electricSync` for real Electric). */
|
|
13
|
+
db?: PGliteWithLive;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The self-clustering CollectionStore (ADR-0006, `clustering: 'self'`) — the collection analogue of
|
|
17
|
+
* {@link "@super-line/store-pglite"}. Writes + strong reads hit a central Postgres; each node mirrors the row
|
|
18
|
+
* table into an in-memory PGlite replica via **Electric** (one-way) and turns its `live.changes` feed into
|
|
19
|
+
* {@link CollectionStore.onChange}, which core fans to LOCAL subscribers only. Postgres+Electric is the only
|
|
20
|
+
* fan-out infra — no super-line adapter. A write round-trips central PG → Electric → every node's feed; the
|
|
21
|
+
* `origin` column carries attribution through the round-trip. All collections share one table, keyed by the pk.
|
|
22
|
+
*/
|
|
23
|
+
declare function pgliteCollections(opts: PgliteCollectionsOptions): Promise<CollectionStore>;
|
|
24
|
+
|
|
25
|
+
export { type PgliteCollectionsOptions, pgliteCollections };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PGliteWithLive } from '@electric-sql/pglite/live';
|
|
2
|
+
import { CollectionStore } from '@super-line/core';
|
|
3
|
+
|
|
4
|
+
/** Options for {@link pgliteCollections}. */
|
|
5
|
+
interface PgliteCollectionsOptions {
|
|
6
|
+
/** Connection string for the central Postgres — source of truth for writes + strong reads (real Postgres or a PGLiteSocketServer). */
|
|
7
|
+
pgUrl: string;
|
|
8
|
+
/** Electric shape endpoint streaming the central table into this node's local replica. Omit to feed the replica manually (tests). */
|
|
9
|
+
electricUrl?: string;
|
|
10
|
+
/** Table holding every collection's rows on both central + replica; defaults to `collection_rows`. */
|
|
11
|
+
table?: string;
|
|
12
|
+
/** Advanced/testing: supply the local PGlite replica (needs the `live` extension; add `sync`/`electricSync` for real Electric). */
|
|
13
|
+
db?: PGliteWithLive;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The self-clustering CollectionStore (ADR-0006, `clustering: 'self'`) — the collection analogue of
|
|
17
|
+
* {@link "@super-line/store-pglite"}. Writes + strong reads hit a central Postgres; each node mirrors the row
|
|
18
|
+
* table into an in-memory PGlite replica via **Electric** (one-way) and turns its `live.changes` feed into
|
|
19
|
+
* {@link CollectionStore.onChange}, which core fans to LOCAL subscribers only. Postgres+Electric is the only
|
|
20
|
+
* fan-out infra — no super-line adapter. A write round-trips central PG → Electric → every node's feed; the
|
|
21
|
+
* `origin` column carries attribution through the round-trip. All collections share one table, keyed by the pk.
|
|
22
|
+
*/
|
|
23
|
+
declare function pgliteCollections(opts: PgliteCollectionsOptions): Promise<CollectionStore>;
|
|
24
|
+
|
|
25
|
+
export { type PgliteCollectionsOptions, pgliteCollections };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { PGlite } from "@electric-sql/pglite";
|
|
3
|
+
import { live } from "@electric-sql/pglite/live";
|
|
4
|
+
import { electricSync } from "@electric-sql/pglite-sync";
|
|
5
|
+
import postgres from "postgres";
|
|
6
|
+
import { SuperLineError, applyQuery } from "@super-line/core";
|
|
7
|
+
var IDENT = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
8
|
+
var SEP = String.fromCharCode(1);
|
|
9
|
+
var encodePk = (n, id) => n + SEP + id;
|
|
10
|
+
var decodePk = (pk) => {
|
|
11
|
+
const i = pk.indexOf(SEP);
|
|
12
|
+
return i === -1 ? { n: pk, id: "" } : { n: pk.slice(0, i), id: pk.slice(i + 1) };
|
|
13
|
+
};
|
|
14
|
+
async function pgliteCollections(opts) {
|
|
15
|
+
const table = opts.table ?? "collection_rows";
|
|
16
|
+
if (!IDENT.test(table)) throw new Error(`Invalid table name: ${table}`);
|
|
17
|
+
const ddl = `CREATE TABLE IF NOT EXISTS "${table}" (pk text PRIMARY KEY, collection text NOT NULL, id text NOT NULL, data jsonb NOT NULL, origin text)`;
|
|
18
|
+
const sql = postgres(opts.pgUrl, { prepare: false, onnotice: () => {
|
|
19
|
+
} });
|
|
20
|
+
const runDdl = async (stmt) => {
|
|
21
|
+
try {
|
|
22
|
+
await sql.unsafe(stmt);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
const code = err.code;
|
|
25
|
+
if (code !== "42P07" && code !== "23505" && code !== "42710") throw err;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
await runDdl(ddl);
|
|
29
|
+
const asJson = (v) => sql.json(v);
|
|
30
|
+
const ownsDb = !opts.db;
|
|
31
|
+
const db = opts.db ?? await PGlite.create({ extensions: { live, sync: electricSync() } });
|
|
32
|
+
await db.exec(ddl);
|
|
33
|
+
const changeCbs = /* @__PURE__ */ new Set();
|
|
34
|
+
const liveSub = await db.live.changes(`SELECT pk, data, origin FROM "${table}"`, [], "pk", (changes) => {
|
|
35
|
+
for (const ch of changes) {
|
|
36
|
+
if (ch.__op__ !== "INSERT" && ch.__op__ !== "UPDATE" && ch.__op__ !== "DELETE") continue;
|
|
37
|
+
const { n, id } = decodePk(ch.pk);
|
|
38
|
+
const origin = ch.origin ?? "";
|
|
39
|
+
if (ch.__op__ === "DELETE") {
|
|
40
|
+
for (const cb of changeCbs) cb({ n, k: "delete", id, origin });
|
|
41
|
+
} else {
|
|
42
|
+
const k = ch.__op__ === "INSERT" ? "insert" : "update";
|
|
43
|
+
for (const cb of changeCbs) cb({ n, k, id, next: ch.data, origin });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
const shape = opts.electricUrl && db.sync ? await db.sync.syncShapeToTable({ shape: { url: opts.electricUrl, params: { table } }, table, primaryKey: ["pk"], shapeKey: null }) : void 0;
|
|
48
|
+
return {
|
|
49
|
+
clustering: "self",
|
|
50
|
+
async apply(ops, origin) {
|
|
51
|
+
await sql.begin(async (tx) => {
|
|
52
|
+
for (const op of ops) {
|
|
53
|
+
const pk = encodePk(op.n, op.id);
|
|
54
|
+
if (op.op === "insert") {
|
|
55
|
+
const res = await tx`INSERT INTO ${tx(table)} (pk, collection, id, data, origin)
|
|
56
|
+
VALUES (${pk}, ${op.n}, ${op.id}, ${asJson(op.row)}, ${origin}) ON CONFLICT (pk) DO NOTHING`;
|
|
57
|
+
if (res.count === 0) throw new SuperLineError("CONFLICT", `Row already exists: ${op.n}/${op.id}`);
|
|
58
|
+
} else if (op.op === "update") {
|
|
59
|
+
const res = await tx`UPDATE ${tx(table)} SET data = ${asJson(op.row)}, origin = ${origin} WHERE pk = ${pk}`;
|
|
60
|
+
if (res.count === 0) throw new SuperLineError("NOT_FOUND", `No row: ${op.n}/${op.id}`);
|
|
61
|
+
} else {
|
|
62
|
+
await tx`DELETE FROM ${tx(table)} WHERE pk = ${pk}`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
return [];
|
|
67
|
+
},
|
|
68
|
+
async snapshot(n, query) {
|
|
69
|
+
const rows = await sql`SELECT data::text AS data FROM ${sql(table)} WHERE collection = ${n}`;
|
|
70
|
+
return applyQuery(
|
|
71
|
+
rows.map((r) => JSON.parse(r.data)),
|
|
72
|
+
query
|
|
73
|
+
);
|
|
74
|
+
},
|
|
75
|
+
async read(n, id) {
|
|
76
|
+
const rows = await sql`SELECT data::text AS data FROM ${sql(table)} WHERE pk = ${encodePk(n, id)}`;
|
|
77
|
+
return rows[0] ? JSON.parse(rows[0].data) : void 0;
|
|
78
|
+
},
|
|
79
|
+
onChange(cb) {
|
|
80
|
+
changeCbs.add(cb);
|
|
81
|
+
return () => changeCbs.delete(cb);
|
|
82
|
+
},
|
|
83
|
+
async close() {
|
|
84
|
+
try {
|
|
85
|
+
await liveSub.unsubscribe();
|
|
86
|
+
shape?.unsubscribe();
|
|
87
|
+
if (ownsDb) await db.close();
|
|
88
|
+
} finally {
|
|
89
|
+
await sql.end();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
pgliteCollections
|
|
96
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@super-line/collections-pglite",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Self-clustering CollectionStore for super-line — central Postgres + per-node Electric-synced PGlite replica (live.changes). Postgres is the only fan-out infra; no adapter.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Mert",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"super-line",
|
|
10
|
+
"collections",
|
|
11
|
+
"pglite",
|
|
12
|
+
"postgres",
|
|
13
|
+
"electric",
|
|
14
|
+
"sync",
|
|
15
|
+
"self",
|
|
16
|
+
"rows"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/mertdogar/super-line.git",
|
|
21
|
+
"directory": "packages/collections-pglite"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://mertdogar.github.io/super-line/",
|
|
24
|
+
"bugs": "https://github.com/mertdogar/super-line/issues",
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/index.d.cts",
|
|
36
|
+
"default": "./dist/index.cjs"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist"
|
|
42
|
+
],
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@electric-sql/pglite": "^0.5.3",
|
|
52
|
+
"@electric-sql/pglite-sync": "^0.6.3",
|
|
53
|
+
"postgres": "^3.4.9",
|
|
54
|
+
"@super-line/core": "^0.10.1"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@electric-sql/pglite-socket": "^0.2.6"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsup"
|
|
61
|
+
}
|
|
62
|
+
}
|