• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MattiLehtinen / postgrator-cli / 29697552225
93%

Build:
DEFAULT BRANCH: master
Ran 19 Jul 2026 05:49PM UTC
Jobs 1
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jul 2026 05:48PM UTC coverage: 92.746% (+0.6%) from 92.182%
29697552225

push

github

web-flow
feat(sqlite3)!: use built-in node:sqlite instead of the sqlite3 package (#370)

* feat(sqlite3)!: use built-in node:sqlite instead of the sqlite3 package

The `sqlite3` npm package pulls in native prebuilt binaries and hasn't
been needed since Node gained its own built-in SQLite bindings. Swap
lib/clients/sqlite3.js to node:sqlite's DatabaseSync, which also
handles multi-statement scripts (`db.exec`) without the workaround
added in #313.

BREAKING CHANGE: node:sqlite requires Node.js >= 22.13.0 (or >= 23.4.0
on odd-numbered releases), so this drops support for Node 20 and raises
the floor from Node 22.0.0. `sqlite3` is no longer an optional peer
dependency; users no longer need to `npm install sqlite3` for sqlite3
support.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix(lint): raise node floor to 22.16 to drop import.meta.dirname suppressions

import.meta.dirname/filename only became non-experimental at Node
22.16.0/24.0.0, so bumping the engines floor from 22.13.0 to 22.16.0
(and 23.4.0 to 24.0.0, since 23.x is EOL anyway) lets eslint-plugin-n
confirm it's safe across the whole supported range, removing all 15
now-unused eslint-disable directives in the test file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* refactor(sqlite3): drop unnecessary async from the node:sqlite client

DatabaseSync's methods are synchronous (node:sqlite has no async
database API at all, only a plain function), and every real call site
(Postgrator's Client.js runQuery/runSqlScript, and this repo's own
test helpers) already invokes query/execSqlScript/end from within
another async function, so a synchronous throw here still surfaces
as a normal rejection to callers. No need to wrap these in async.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

134 of 153 branches covered (87.58%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

582 of 619 relevant lines covered (94.02%)

538.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29697552225.1 19 Jul 2026 05:49PM UTC 10
92.75
GitHub Action Run
Source Files on build 29697552225
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 88320159 on github
  • Prev Build on master (#29695968749)
  • Next Build on master (#29697587716)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc