{"full_name":"porsager/postgres","owner":"porsager","name":"postgres","shard":"1","url":"https://github.com/porsager/postgres","description":"Postgres.js - The Fastest full featured PostgreSQL client","homepage":"","topics":["postgresql","postgres","database","nodejs","driver","client","deno","cockroachdb"],"tag_pages":["client","cockroachdb","database","deno","driver","nodejs","postgres","postgresql"],"language":"JavaScript","license":"Unlicense","avatar":"https://avatars.githubusercontent.com/u/1288405?u=b08d04f763a7b5c20cecffce435ca2b5f50da192&v=4","created_at":"2019-11-22T22:48:11Z","pushed_at":"2026-11-14T15:44:19Z","metrics":{"stars":8767,"forks":408,"watchers":45,"issues":868,"prs":313,"releases":49,"issues_open":1,"issues_closed":867,"prs_open":5,"prs_closed":151,"prs_merged":157,"discussions":134},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[8760,8766,8765,8768,8767,8766,8767],"forks":[407,408,409,409,409,408,408],"watchers":[null,45,45,45,45,45,45],"issues_open":[null,0,1,1,2,1,1],"prs_open":[null,0,1,1,2,2,5]},"boards":{},"same_owner":[],"issues":[{"number":1322,"title":"v4: begin() and reserve() waiting for a pool lease cannot be cancelled","comments":0,"created_at":"2026-11-12T04:35:50Z"}],"discussions":[{"number":1172,"title":"What are people using to auto format the template strings?","comments":2,"category":"Q&A","created_at":"2026-06-11T11:01:05Z"},{"number":1141,"title":"Reconsider TypeScript & in-source comments","comments":2,"category":"General","created_at":"2026-01-01T17:59:00Z"},{"number":1125,"title":"Is this library still maintained?","comments":2,"category":"General","created_at":"2025-10-10T09:49:29Z"},{"number":1123,"title":"Instancing of postgres with pgbouncer and pooling","comments":1,"category":"Q&A","created_at":"2025-10-09T06:07:57Z"},{"number":1122,"title":"Checking PostgreSQL user read/write access across  db and schemas from Node.js","comments":2,"category":"Q&A","created_at":"2025-10-08T11:55:01Z"},{"number":1112,"title":"Parameterized queries with aggregate functions with an array of column names","comments":1,"category":"Q&A","created_at":"2025-09-18T11:56:13Z"},{"number":1111,"title":"dynamic select columns with JSONB","comments":1,"category":"Q&A","created_at":"2025-09-17T02:31:25Z"},{"number":1107,"title":"Benchmarking postgres.js vs pg vs pg-native","comments":1,"category":"General","created_at":"2025-09-06T19:20:43Z"}],"latest_release":{"name":"v4.1.1","tag":"v4.1.1","published_at":"2026-11-11T09:55:19Z","body":"### Fixed\r\n\r\n- **A statement `sql.begin` sends after its own `COMMIT` or `ROLLBACK` is rejected** (#1320). A statement the callback did not await, sent between the transaction's `COMMIT` or `ROLLBACK` and the release of its connection, ran outside the transaction, and after a rollback its write was kept. It now rejects with `UNSAFE_TRANSACTION`, as a statement after the transaction has ended does.\r\n- **A command after a select in a multi-statement simple query has no columns** (#1321). In `sql.unsafe('select …; rollback')` the `ROLLBACK` result had the columns of the `SELECT` before it.\r\n- **A query queued behind one with an untyped string or boolean parameter resolves on Cloudflare Hyperdrive** (#1319). Such a query is described first, and 4.1.0 sent its Bind, Execute and Sync together with the next query, which never resolved through Hyperdrive. On Cloudflare Workers the next query now waits until the described one is done, as in 3.4.9. Other runtimes still pipeline it.\r\n- **`.cursor()` yields the rows of `SHOW`, `EXPLAIN` and other commands without a row count.** Their last batch was only passed on when the command tag had a count, so a cursor over them yielded nothing.\r\n- **`PGSSLMODE` is kept when a url has `sslrootcert`, `sslcert` or `sslkey`.** Such a url without an `sslmode` used `require` even if `PGSSLMODE` was set, so `PGSSLMODE=verify-full` dropped the host name check and `PGSSLMODE=disable` used TLS.\r\n- **A connection error without a `stack` rejects the waiting queries** (#1312). Adding the calling line to such an error threw, so the queries waiting for a connection never settled and the pool stopped retrying. On Bun a DNS error such as `EAI_AGAIN` has no `stack`, so a query to a host that doesn't resolve hung forever.\r\n- **A canceled `sql.batch` no longer keeps the process alive for `cancel_timeout`** (#1317, #1318). The timer that waits for the cancel to be answered was left running after the batch rejected, so the process stayed up for 5 seconds after `sql.end()`.\r\n- **A JSON key ending with `_` no longer makes `toCamel` and `toPascal` throw** (#1313). With `transform: postgres.camel`, such a key made the whole query throw. The trailing `_` is now kept, so `a_` stays `a_`, and an empty key stays empty instead of becoming `undefined`.\r\n\r\n---\r\n\r\nhttps://github.com/porsager/postgres/compare/v4.1.0...v4.1.1","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}