Compatibility and maintenance
Compatibility
Section titled “Compatibility”chord-postgres |
@earendil-works/chord |
@earendil-works/pi-durable |
Postgres | Node |
|---|---|---|---|---|
| 0.1.x | ~1.7.0 |
~1.7.0 (optional) |
16 … 19 (all tested in CI) | ≥ 22.19 |
Every pull request runs the suites against Postgres 16, 17, 18 and 19 (postgres:<major>-alpine); the full pipeline,
including the package smoke test, runs on 19.
pi-durable’s peer dependency is optional: the root entry needs only chord. The subpath chord-postgres/pi-durable needs
pi-durable, and it imports @earendil-works/pi-durable/storage/store, which exists in 1.7.0.
The Node floor is >= 22.19.0, from package.json’s engines. The repository itself develops on Node 26.13.1
(.node-version), which is what the CI gates and the local suites use.
The maintenance assumption
Section titled “The maintenance assumption”chord’s SQL generator is the stable part of the package — dist/store/sql.js was byte-identical between 1.6.0 and
1.7.0 — and chord is young (25 releases in its first twelve weeks), so this package pins the versions it was tested
against rather than claiming a wide range. ~1.7.0 is that tested range, not a guess at what might work.
The assumption this package is maintained on: the store’s SQL generator is re-verified on every chord release, and
docs/port-chord-<version>.md records what changed. If I stop doing that, the peer range is wrong — so the range and
that habit are the same promise.
The check is a diff of chord’s SQL-emitting files plus the suite:
# 1. what changed in the SQL emittersnpm pack @earendil-works/chord@<version> --pack-destination /tmpdiff -u <old>/package/dist/store/sql.js <new>/package/dist/store/sql.jsdiff -u <old>/package/dist/store/schema.js <new>/package/dist/store/schema.js
# 2. every construct still translates, and every suite still passespnpm install && pnpm typecheck && pnpm lint && pnpm test && pnpm buildIf a construct moved, the translator throws with the statement in the error, the construct goes into the dialect
reference, and a new port note records it. pi-durable releases are checked the same way (StoreStorage was
byte-identical across 1.6.0 → 1.7.0).
Port notes
Section titled “Port notes”One note per chord release: what moved, what it cost, and what would have been missed — so the next port starts from evidence instead of a fresh diff.
- Port to chord 1.7.0 — the first port: the
package was written against 1.7.0, so the note is an inventory of the SQL surface rather than a delta. It found that
store/sql.jswas byte-identical across 1.6.0 → 1.7.0 and thatstore/read-plan.jsgrew most, which is the file to watch. - The port template — the checklist a
port follows: diff the SQL emitters, re-check the construct table, diff the
SqliteDatabaseseam, diff pi-durable, run the gates and the artefact, bump the peer range.
The docs/dialect.md in the repository is the source the dialect page here is copied from; both move with the code.
Upstream
Section titled “Upstream”The store, its SQL and StoreStorage are chord’s and pi-durable’s (MIT, © 2026 Earendil Inc.); this package depends on
them and ships none of their code. The fail-closed latch, the newer-schema refusal, the connection-kill test and the
statement budget follow gscode1/pi-durable-postgres and
tri2820/pi-durable-postgres (MIT), which solved these problems at the
pi-durable Storage layer first.