Repository navigation
skeld 0.4.0
Adds a new package, @skeld/data, and moves all four packages to 0.4.0.
@skeld/data connects a service to PostgreSQL or SQLite through one API. Queries are written with the sql tagged template, so every value is sent as a parameter and never as query text. Rows can be checked against a schema, and transactions and reserved connections are callbacks. It has its own PostgreSQL client for PostgreSQL 19, with no pg dependency: every TLS connection has its certificate and host name verified, and sign-in is SCRAM-SHA-256. SQLite runs on Node's built-in node:sqlite. Pool size, waiting time, result memory and parameter size are bounded by default. It also has a rate limiter, @skeld/data/limit, and toPgPool, which runs @skeld/auth's PostgreSQL store on the same connections. Its only dependency is @skeld/core.
@skeld/core: Scope gains closeTimeoutMs, event() and onRoutes(), so a plugin can bound its own shutdown, write security events and check the routes it will serve before the server starts.
@skeld/auth and @skeld/openapi are unchanged in behavior. @skeld/auth is now tested on PostgreSQL 19.
Install: npm install @skeld/core@0.4.0 @skeld/data@0.4.0