← Back to Pull requests

chore: Bump the npm-dependencies group with 2 updates #106

Closed
unknown closed this pull request without merging on Dec 01, 2026 07:42 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 05:42 UTC
Author

Bumps the npm-dependencies group with 2 updates: postgres and prettier.

Updates postgres from 3.4.9 to 4.1.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/porsager/postgres/releases">postgres's releases</a>.</em></p>
<blockquote>
<h2>v4.1.1</h2>
<h3>Fixed</h3>
<ul>
<li><strong>A statement <code>sql.begin</code> sends after its own <code>COMMIT</code> or <code>ROLLBACK</code> is rejected</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1320">#1320</a>). A statement the callback did not await, sent between the transaction's <code>COMMIT</code> or <code>ROLLBACK</code> and the release of its connection, ran outside the transaction, and after a rollback its write was kept. It now rejects with <code>UNSAFE_TRANSACTION</code>, as a statement after the transaction has ended does.</li>
<li><strong>A command after a select in a multi-statement simple query has no columns</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1321">#1321</a>). In <code>sql.unsafe('select …; rollback')</code> the <code>ROLLBACK</code> result had the columns of the <code>SELECT</code> before it.</li>
<li><strong>A query queued behind one with an untyped string or boolean parameter resolves on Cloudflare Hyperdrive</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1319">#1319</a>). 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.</li>
<li><strong><code>.cursor()</code> yields the rows of <code>SHOW</code>, <code>EXPLAIN</code> and other commands without a row count.</strong> Their last batch was only passed on when the command tag had a count, so a cursor over them yielded nothing.</li>
<li><strong><code>PGSSLMODE</code> is kept when a url has <code>sslrootcert</code>, <code>sslcert</code> or <code>sslkey</code>.</strong> Such a url without an <code>sslmode</code> used <code>require</code> even if <code>PGSSLMODE</code> was set, so <code>PGSSLMODE=verify-full</code> dropped the host name check and <code>PGSSLMODE=disable</code> used TLS.</li>
<li><strong>A connection error without a <code>stack</code> rejects the waiting queries</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1312">#1312</a>). 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 <code>EAI_AGAIN</code> has no <code>stack</code>, so a query to a host that doesn't resolve hung forever.</li>
<li><strong>A canceled <code>sql.batch</code> no longer keeps the process alive for <code>cancel_timeout</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1317">#1317</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1318">#1318</a>). 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 <code>sql.end()</code>.</li>
<li><strong>A JSON key ending with <code>_</code> no longer makes <code>toCamel</code> and <code>toPascal</code> throw</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1313">#1313</a>). With <code>transform: postgres.camel</code>, such a key made the whole query throw. The trailing <code>_</code> is now kept, so <code>a_</code> stays <code>a_</code>, and an empty key stays empty instead of becoming <code>undefined</code>.</li>
</ul>
<hr />
<p><a href="https://github.com/porsager/postgres/compare/v4.1.0...v4.1.1">https://github.com/porsager/postgres/compare/v4.1.0...v4.1.1</a></p>
<h2>v4.1.0</h2>
<h3>New</h3>
<ul>
<li><strong><code>query_timeout</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1278">#1278</a>). Seconds a query may take, waiting for a connection and running together, before it is canceled and rejects with <code>QUERY_TIMEOUT</code>. Off by default. Unlike <code>statement_timeout</code> it also ends a query whose server or network has gone silent, which TCP alone takes many minutes to notice. Transaction control queries and <code>forEach</code> are limited too; cursors, streams and <code>sql.listen</code> are not.</li>
<li><strong><code>cancel_timeout</code></strong>, 5 seconds by default: how long a canceled query may take to end before its connection is closed.</li>
<li><strong><code>sql.batch([queries])</code></strong> sends queries in one round trip with a single Sync: outside a transaction they commit or roll back together, and the batch rejects with the failing query's position in <code>error.index</code>.</li>
<li><strong><code>json</code> on a transform</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1169">#1169</a>). The built-in transforms rename the keys of JSON values in results but send JSON values as they are. <code>json: false</code> leaves JSON values as they are both ways, and <code>json: true</code> renames their keys when sending too, with the transform's <code>column.to</code>. Without it nothing changes.</li>
<li><strong><code>eager_types</code></strong>: <code>true</code> reads array types and domains when the pool starts instead of when a query first meets one.</li>
<li><strong><code>sql.identifier(...parts)</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1292">#1292</a>). An identifier from its parts, each quoted as it is and joined with <code>.</code>, for a name that contains a dot, which <code>sql(name)</code> reads as a separator: <code>sql.identifier('acme.inc', 'users')</code> gives <code>&quot;acme.inc&quot;.&quot;users&quot;</code>. The <code>transform</code> is not applied. With no parts it throws <code>NO_PARTS</code>.</li>
<li><strong>Node.js 18</strong> is supported again: <code>engines</code> is <code>&gt;=18</code> and CI runs it. Nothing in Postgres.js needs 20; <code>using</code>, <code>await using</code> and tracing are used where the runtime has them. Loading it with <code>require</code> still needs Node.js 20.19 or 22.12.</li>
<li><strong><code>sql....parsers(parsers)</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1294">#1294</a>). A query's own parsers, for its rows only: by type, <code>{ [oid]: parse }</code>, on top of the instance's <code>types</code>, or a function that gets each column and returns the parser for it, <code>null</code> for the server's text. A library that knows how to decode some queries' columns can decode them once, inside the row reader, while every other query on the instance and its pool keeps the instance's parsers. Such a query receives every column as text, so <code>bytea</code> and the integer arrays otherwise read in binary reach its parsers as text. A query without <code>.parsers()</code> reads its rows as before.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><strong><code>sql.listen</code> keeps its connection after the last <code>unlisten()</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1298">#1298</a>). The connection was closed so the process could exit (<a href="https://redirect.github.com/porsager/postgres/issues/1022">#1022</a>), which made every following <code>listen()</code> connect again: about 3.5 ms instead of 0.1 ms per <code>listen</code>. It now stays open without keeping the process alive once nothing is listened.</li>
<li><strong><code>PGSSLMODE</code> is read</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1307">#1307</a>). It was ignored, so <code>PGSSLMODE=verify-full</code> connected in plain text without an error. This may change how existing setups connect: <code>require</code> now uses TLS and fails against a server without it, and <code>verify-ca</code> and <code>verify-full</code> check the certificate against Node's CAs, not <code>~/.postgresql/root.crt</code> or <code>PGSSLROOTCERT</code>. A url or an <code>ssl</code> option still comes first.</li>
<li><strong>An insert helper after a quoted schema and an unquoted table builds the insert</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1304">#1304</a>). In <code>insert into ${ sql('s') }.t ${ sql(row) }</code> or <code>insert into &quot;s&quot;.t</code>, the quoted schema and the table were read as two words, so the row was taken for a list of identifiers and threw <code>x.replace is not a function</code>.</li>
<li><strong><code>sql.listen</code> keeps reconnecting when its first reconnect fails</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1285">#1285</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1286">#1286</a>). After the listen connection closed, it was reopened once, and if that attempt failed, as it does while a restarting server still refuses connections, nothing tried again, so <code>onlisten</code> was never called and notifications were lost. A failed reconnect is now retried after <code>backoff</code>, until it succeeds, the channel is unlistened or the pool ends.</li>
<li><strong>A canceled query whose server never answers no longer waits forever.</strong> <code>.cancel()</code>, <code>.signal()</code> and now <code>query_timeout</code> send a cancel request and waited for the server to end the query, so a server or network gone silent left both the query and the promise <code>.cancel()</code> returns pending until TCP gave up. This applies to every cancel, also without <code>query_timeout</code>: when the server doesn't answer within <code>cancel_timeout</code>, the connection is closed and the pool connects again. Whether the queries on it ran is unknown, so they reject with <code>CONNECTION_DESTROYED</code> (a timed out one with <code>QUERY_TIMEOUT</code>) whose <code>cause</code> is <code>CANCEL_UNANSWERED</code>, not with <code>57014</code>. The cancel request's own connection is limited by <code>cancel_timeout</code> too, and a cancel is no longer sent for a query whose result has already arrived, where it could only hit the query after it. A cancel request whose own connection fails, as over TLS to a server gone silent, no longer crashes the process with an unhandled rejection. A query that times out while it waits behind another one on its connection is canceled only after it has had its own <code>query_timeout</code> once its turn comes, instead of the moment its turn comes, when it had usually finished and the cancel stopped the next query; if the server sends nothing for <code>cancel_timeout</code> while it waits, the connection is closed. A query waiting for types to be read rejects with <code>QUERY_TIMEOUT</code> without closing its connection, and the read of array types and domains is limited by <code>query_timeout</code> too.</li>
<li><strong><code>sslrootcert</code>, <code>sslcert</code> and <code>sslkey</code> in a url are used</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1308">#1308</a>). They were sent to the server as startup parameters, so <code>?sslrootcert=system</code> failed with <code>unrecognized configuration parameter</code>. Files are read into <code>ca</code>, <code>cert</code> and <code>key</code>. As in libpq, a root certificate with <code>require</code> or <code>verify-ca</code> checks the CA but not the host name, and <code>verify-full</code> checks both, as does <code>ssl: true</code>. A file without an <code>sslmode</code> means <code>require</code>.</li>
<li><strong>A transaction the server ends rejects with the server's error</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1283">#1283</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1284">#1284</a>). When a <code>transaction_timeout</code> (<code>25P04</code>), an <code>idle_in_transaction_session_timeout</code> (<code>25P03</code>) or <code>pg_terminate_backend</code> (<code>57P01</code>) ended the session, <code>sql.begin</code> rejected with <code>CONNECTION_CLOSED</code>, so a timeout or a termination looked the same as a network drop; it now rejects with the FATAL error the server sent before closing, as a query in flight already did, and a later query on that connection rejects with <code>CONNECTION_CLOSED</code> that has it as <code>cause</code>. A server restart or failover ends sessions with <code>57P01</code>, so code that retries a transaction on <code>CONNECTION_CLOSED</code> should retry on that code too. A FATAL in answer to <code>COMMIT</code> rejects with <code>CONNECTION_CLOSED</code> that has it as <code>cause</code>, as the outcome is unknown, as it is when the connection is lost during <code>COMMIT</code>.</li>
<li><strong>A server certificate is verified against an IP host</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1309">#1309</a>). With <code>ssl: 'verify-full'</code> or <code>ssl: true</code> and an IP as the host, a connection upgraded to TLS checked the certificate against <code>localhost</code>, so a certificate for <code>localhost</code> from a trusted CA passed for any IP and a correct certificate for the IP failed. Direct TLS was not affected.</li>
<li><strong>A savepoint or nested <code>begin</code> rejects when its transaction's connection is lost</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1281">#1281</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1282">#1282</a>). One whose callback was still running when the connection went resolved with the callback's result after the transaction had already rejected; it now rejects with the transaction's error.</li>
<li><strong>A connection closed while the pool reads its array and domain types counts as a failed connection attempt</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1279">#1279</a>). Reconnecting follows <code>backoff</code> and waiting queries reject once <code>connect_timeout</code> has passed, instead of reconnecting as fast as the server accepts for as long as it keeps closing. With <code>connect_timeout</code> set to 0, null or false the pool now keeps trying for as long as it takes, as the option says, also after a refused or closed startup, which used to reject the waiting queries at once.</li>
<li>A query failed by a <code>FATAL</code> error gives that error to the queries pipelined behind it as well, instead of <code>CONNECTION_CLOSED</code>.</li>
<li><strong>A FATAL error with the severity only in the <code>S</code> field is recognised as one.</strong> The non-localized <code>V</code> field is optional in the protocol: PostgreSQL sends it since 9.6, and a pooler that builds its own errors, such as PgBouncer, may send only the localized <code>S</code>. Such an error was not seen as FATAL, so the query, a <code>sql.begin</code> and the queries pipelined behind it rejected with <code>CONNECTION_CLOSED</code> without a <code>cause</code> instead of with the error. <code>error.severity</code> now falls back to <code>severity_local</code> when <code>V</code> is missing.</li>
<li><strong>Each query on a connection that closes gets its own error.</strong> They shared one error object, so every query pipelined on the connection reported the first one's <code>query</code> and <code>parameters</code>.</li>
<li><strong>A cached prepared statement no longer keeps the query that prepared it</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1287">#1287</a>). Each connection's entry for a prepared statement kept that query's values and rows for as long as the statement stayed cached, up to 1,000 statements per connection, so an app with many distinct statements grew by their results until every cache was full: about 1.1 GB with 10 connections and 50-row results. They are let go once the query settles. On 4.0.0, <code>prepare: false</code> avoids it.</li>
<li><strong>Destroying a <code>copy ... to stdout</code> stream frees the connection</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1306">#1306</a>). After <code>destroy()</code>, breaking out of <code>for await</code> or a failed <code>pipeline</code>, the connection stayed paused for good and the queries behind it never ran. The rest of the copy is now read and dropped, so the connection is free once the server has sent it. The query is not canceled, so in a transaction the next query still succeeds.</li>
</ul>
<h3>Performance</h3>
<ul>
<li><strong>An <code>ssl</code> object with a <code>ca</code> builds its TLS context once</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1280">#1280</a>). The connections made with it share one context instead of each parsing the whole <code>ca</code> list again, so with a provider's CA bundle a new connection takes about half the time and CPU, and a burst of them no longer blocks the event loop. Replacing one of the object's values, as with a renewed <code>cert</code>, builds a new context for the connections after it.</li>
<li>A new statement whose untyped values are all numbers or <code>null</code> is prepared, described and run in one round trip, as one whose parameter types are all known is, since those values are written the same for any type the server picks; one with other values only the server can type is still described first, once per connection.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/porsager/postgres/blob/master/CHANGELOG.md">postgres's changelog</a>.</em></p>
<blockquote>
<h2>v4.1.1 - 11 November 2026</h2>
<h3>Fixed</h3>
<ul>
<li><strong>A statement <code>sql.begin</code> sends after its own <code>COMMIT</code> or <code>ROLLBACK</code> is rejected</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1320">#1320</a>). A statement the callback did not await, sent between the transaction's <code>COMMIT</code> or <code>ROLLBACK</code> and the release of its connection, ran outside the transaction, and after a rollback its write was kept. It now rejects with <code>UNSAFE_TRANSACTION</code>, as a statement after the transaction has ended does.</li>
<li><strong>A command after a select in a multi-statement simple query has no columns</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1321">#1321</a>). In <code>sql.unsafe('select …; rollback')</code> the <code>ROLLBACK</code> result had the columns of the <code>SELECT</code> before it.</li>
<li><strong>A query queued behind one with an untyped string or boolean parameter resolves on Cloudflare Hyperdrive</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1319">#1319</a>). 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.</li>
<li><strong><code>.cursor()</code> yields the rows of <code>SHOW</code>, <code>EXPLAIN</code> and other commands without a row count.</strong> Their last batch was only passed on when the command tag had a count, so a cursor over them yielded nothing.</li>
<li><strong><code>PGSSLMODE</code> is kept when a url has <code>sslrootcert</code>, <code>sslcert</code> or <code>sslkey</code>.</strong> Such a url without an <code>sslmode</code> used <code>require</code> even if <code>PGSSLMODE</code> was set, so <code>PGSSLMODE=verify-full</code> dropped the host name check and <code>PGSSLMODE=disable</code> used TLS.</li>
<li><strong>A connection error without a <code>stack</code> rejects the waiting queries</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1312">#1312</a>). 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 <code>EAI_AGAIN</code> has no <code>stack</code>, so a query to a host that doesn't resolve hung forever.</li>
<li><strong>A canceled <code>sql.batch</code> no longer keeps the process alive for <code>cancel_timeout</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1317">#1317</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1318">#1318</a>). 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 <code>sql.end()</code>.</li>
<li><strong>A JSON key ending with <code>_</code> no longer makes <code>toCamel</code> and <code>toPascal</code> throw</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1313">#1313</a>). With <code>transform: postgres.camel</code>, such a key made the whole query throw. The trailing <code>_</code> is now kept, so <code>a_</code> stays <code>a_</code>, and an empty key stays empty instead of becoming <code>undefined</code>.</li>
</ul>
<h2>v4.1.0 - 5 November 2026</h2>
<h3>New</h3>
<ul>
<li><strong><code>query_timeout</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1278">#1278</a>). Seconds a query may take, waiting for a connection and running together, before it is canceled and rejects with <code>QUERY_TIMEOUT</code>. Off by default. Unlike <code>statement_timeout</code> it also ends a query whose server or network has gone silent, which TCP alone takes many minutes to notice. Transaction control queries and <code>forEach</code> are limited too; cursors, streams and <code>sql.listen</code> are not.</li>
<li><strong><code>cancel_timeout</code></strong>, 5 seconds by default: how long a canceled query may take to end before its connection is closed.</li>
<li><strong><code>sql.batch([queries])</code></strong> sends queries in one round trip with a single Sync: outside a transaction they commit or roll back together, and the batch rejects with the failing query's position in <code>error.index</code>.</li>
<li><strong><code>json</code> on a transform</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1169">#1169</a>). The built-in transforms rename the keys of JSON values in results but send JSON values as they are. <code>json: false</code> leaves JSON values as they are both ways, and <code>json: true</code> renames their keys when sending too, with the transform's <code>column.to</code>. Without it nothing changes.</li>
<li><strong><code>eager_types</code></strong>: <code>true</code> reads array types and domains when the pool starts instead of when a query first meets one.</li>
<li><strong><code>sql.identifier(...parts)</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1292">#1292</a>). An identifier from its parts, each quoted as it is and joined with <code>.</code>, for a name that contains a dot, which <code>sql(name)</code> reads as a separator: <code>sql.identifier('acme.inc', 'users')</code> gives <code>&quot;acme.inc&quot;.&quot;users&quot;</code>. The <code>transform</code> is not applied. With no parts it throws <code>NO_PARTS</code>.</li>
<li><strong>Node.js 18</strong> is supported again: <code>engines</code> is <code>&gt;=18</code> and CI runs it. Nothing in Postgres.js needs 20; <code>using</code>, <code>await using</code> and tracing are used where the runtime has them. Loading it with <code>require</code> still needs Node.js 20.19 or 22.12.</li>
<li><strong><code>sql....parsers(parsers)</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1294">#1294</a>). A query's own parsers, for its rows only: by type, <code>{ [oid]: parse }</code>, on top of the instance's <code>types</code>, or a function that gets each column and returns the parser for it, <code>null</code> for the server's text. A library that knows how to decode some queries' columns can decode them once, inside the row reader, while every other query on the instance and its pool keeps the instance's parsers. Such a query receives every column as text, so <code>bytea</code> and the integer arrays otherwise read in binary reach its parsers as text. A query without <code>.parsers()</code> reads its rows as before.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><strong><code>sql.listen</code> keeps its connection after the last <code>unlisten()</code></strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1298">#1298</a>). The connection was closed so the process could exit (<a href="https://redirect.github.com/porsager/postgres/issues/1022">#1022</a>), which made every following <code>listen()</code> connect again: about 3.5 ms instead of 0.1 ms per <code>listen</code>. It now stays open without keeping the process alive once nothing is listened.</li>
<li><strong><code>PGSSLMODE</code> is read</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1307">#1307</a>). It was ignored, so <code>PGSSLMODE=verify-full</code> connected in plain text without an error. This may change how existing setups connect: <code>require</code> now uses TLS and fails against a server without it, and <code>verify-ca</code> and <code>verify-full</code> check the certificate against Node's CAs, not <code>~/.postgresql/root.crt</code> or <code>PGSSLROOTCERT</code>. A url or an <code>ssl</code> option still comes first.</li>
<li><strong>An insert helper after a quoted schema and an unquoted table builds the insert</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1304">#1304</a>). In <code>insert into ${ sql('s') }.t ${ sql(row) }</code> or <code>insert into &quot;s&quot;.t</code>, the quoted schema and the table were read as two words, so the row was taken for a list of identifiers and threw <code>x.replace is not a function</code>.</li>
<li><strong><code>sql.listen</code> keeps reconnecting when its first reconnect fails</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1285">#1285</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1286">#1286</a>). After the listen connection closed, it was reopened once, and if that attempt failed, as it does while a restarting server still refuses connections, nothing tried again, so <code>onlisten</code> was never called and notifications were lost. A failed reconnect is now retried after <code>backoff</code>, until it succeeds, the channel is unlistened or the pool ends.</li>
<li><strong>A canceled query whose server never answers no longer waits forever.</strong> <code>.cancel()</code>, <code>.signal()</code> and now <code>query_timeout</code> send a cancel request and waited for the server to end the query, so a server or network gone silent left both the query and the promise <code>.cancel()</code> returns pending until TCP gave up. This applies to every cancel, also without <code>query_timeout</code>: when the server doesn't answer within <code>cancel_timeout</code>, the connection is closed and the pool connects again. Whether the queries on it ran is unknown, so they reject with <code>CONNECTION_DESTROYED</code> (a timed out one with <code>QUERY_TIMEOUT</code>) whose <code>cause</code> is <code>CANCEL_UNANSWERED</code>, not with <code>57014</code>. The cancel request's own connection is limited by <code>cancel_timeout</code> too, and a cancel is no longer sent for a query whose result has already arrived, where it could only hit the query after it. A cancel request whose own connection fails, as over TLS to a server gone silent, no longer crashes the process with an unhandled rejection. A query that times out while it waits behind another one on its connection is canceled only after it has had its own <code>query_timeout</code> once its turn comes, instead of the moment its turn comes, when it had usually finished and the cancel stopped the next query; if the server sends nothing for <code>cancel_timeout</code> while it waits, the connection is closed. A query waiting for types to be read rejects with <code>QUERY_TIMEOUT</code> without closing its connection, and the read of array types and domains is limited by <code>query_timeout</code> too.</li>
<li><strong><code>sslrootcert</code>, <code>sslcert</code> and <code>sslkey</code> in a url are used</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1308">#1308</a>). They were sent to the server as startup parameters, so <code>?sslrootcert=system</code> failed with <code>unrecognized configuration parameter</code>. Files are read into <code>ca</code>, <code>cert</code> and <code>key</code>. As in libpq, a root certificate with <code>require</code> or <code>verify-ca</code> checks the CA but not the host name, and <code>verify-full</code> checks both, as does <code>ssl: true</code>. A file without an <code>sslmode</code> means <code>require</code>.</li>
<li><strong>A transaction the server ends rejects with the server's error</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1283">#1283</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1284">#1284</a>). When a <code>transaction_timeout</code> (<code>25P04</code>), an <code>idle_in_transaction_session_timeout</code> (<code>25P03</code>) or <code>pg_terminate_backend</code> (<code>57P01</code>) ended the session, <code>sql.begin</code> rejected with <code>CONNECTION_CLOSED</code>, so a timeout or a termination looked the same as a network drop; it now rejects with the FATAL error the server sent before closing, as a query in flight already did, and a later query on that connection rejects with <code>CONNECTION_CLOSED</code> that has it as <code>cause</code>. A server restart or failover ends sessions with <code>57P01</code>, so code that retries a transaction on <code>CONNECTION_CLOSED</code> should retry on that code too. A FATAL in answer to <code>COMMIT</code> rejects with <code>CONNECTION_CLOSED</code> that has it as <code>cause</code>, as the outcome is unknown, as it is when the connection is lost during <code>COMMIT</code>.</li>
<li><strong>A server certificate is verified against an IP host</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1309">#1309</a>). With <code>ssl: 'verify-full'</code> or <code>ssl: true</code> and an IP as the host, a connection upgraded to TLS checked the certificate against <code>localhost</code>, so a certificate for <code>localhost</code> from a trusted CA passed for any IP and a correct certificate for the IP failed. Direct TLS was not affected.</li>
<li><strong>A savepoint or nested <code>begin</code> rejects when its transaction's connection is lost</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1281">#1281</a>, <a href="https://redirect.github.com/porsager/postgres/issues/1282">#1282</a>). One whose callback was still running when the connection went resolved with the callback's result after the transaction had already rejected; it now rejects with the transaction's error.</li>
<li><strong>A connection closed while the pool reads its array and domain types counts as a failed connection attempt</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1279">#1279</a>). Reconnecting follows <code>backoff</code> and waiting queries reject once <code>connect_timeout</code> has passed, instead of reconnecting as fast as the server accepts for as long as it keeps closing. With <code>connect_timeout</code> set to 0, null or false the pool now keeps trying for as long as it takes, as the option says, also after a refused or closed startup, which used to reject the waiting queries at once.</li>
<li>A query failed by a <code>FATAL</code> error gives that error to the queries pipelined behind it as well, instead of <code>CONNECTION_CLOSED</code>.</li>
<li><strong>A FATAL error with the severity only in the <code>S</code> field is recognised as one.</strong> The non-localized <code>V</code> field is optional in the protocol: PostgreSQL sends it since 9.6, and a pooler that builds its own errors, such as PgBouncer, may send only the localized <code>S</code>. Such an error was not seen as FATAL, so the query, a <code>sql.begin</code> and the queries pipelined behind it rejected with <code>CONNECTION_CLOSED</code> without a <code>cause</code> instead of with the error. <code>error.severity</code> now falls back to <code>severity_local</code> when <code>V</code> is missing.</li>
<li><strong>Each query on a connection that closes gets its own error.</strong> They shared one error object, so every query pipelined on the connection reported the first one's <code>query</code> and <code>parameters</code>.</li>
<li><strong>A cached prepared statement no longer keeps the query that prepared it</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1287">#1287</a>). Each connection's entry for a prepared statement kept that query's values and rows for as long as the statement stayed cached, up to 1,000 statements per connection, so an app with many distinct statements grew by their results until every cache was full: about 1.1 GB with 10 connections and 50-row results. They are let go once the query settles. On 4.0.0, <code>prepare: false</code> avoids it.</li>
<li><strong>Destroying a <code>copy ... to stdout</code> stream frees the connection</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1306">#1306</a>). After <code>destroy()</code>, breaking out of <code>for await</code> or a failed <code>pipeline</code>, the connection stayed paused for good and the queries behind it never ran. The rest of the copy is now read and dropped, so the connection is free once the server has sent it. The query is not canceled, so in a transaction the next query still succeeds.</li>
</ul>
<h3>Performance</h3>
<ul>
<li><strong>An <code>ssl</code> object with a <code>ca</code> builds its TLS context once</strong> (<a href="https://redirect.github.com/porsager/postgres/issues/1280">#1280</a>). The connections made with it share one context instead of each parsing the whole <code>ca</code> list again, so with a provider's CA bundle a new connection takes about half the time and CPU, and a burst of them no longer blocks the event loop. Replacing one of the object's values, as with a renewed <code>cert</code>, builds a new context for the connections after it.</li>
<li>A new statement whose untyped values are all numbers or <code>null</code> is prepared, described and run in one round trip, as one whose parameter types are all known is, since those values are written the same for any type the server picks; one with other values only the server can type is still described first, once per connection.</li>
<li>Array types and domains are read when a query first meets a type the pool does not know (an oid from 16384 up), instead of when the pool starts: a pool that only uses built-in types never sends that query, and a new pool's first query costs no more than any other. The connection that met the type waits for it, read on another connection. With custom types given by name they are still read at startup, as their oids are needed before the first query. Leases and values typed as a type the pool hasn't read yet still wait for it. A read whose connection fails is retried after <code>backoff</code>, and once <code>connect_timeout</code> has passed the connections waiting for it are closed and their queries reject, as for a failed startup. <code>eager_types: true</code> reads them when the pool starts, as before.</li>
<li><code>timestamptz</code>, and <code>timestamp</code> and <code>date</code> read as UTC, are decoded straight from the bytes when they use the built-in parsers, with the text parser for anything else (BC, <code>infinity</code>, years before 1000); about 20% more rows per second for rows with timestamps.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/porsager/postgres/commit/1cc66f42c06e328636952774852b63a8ee4620ed"><code>1cc66f4</code></a> 4.1.1</li>
<li><a href="https://github.com/porsager/postgres/commit/a82bf9d578707073154b8dcf7bfb1e2e03bd5dc0"><code>a82bf9d</code></a> v4.1.1 changelog</li>
<li><a href="https://github.com/porsager/postgres/commit/3d664d4f9c617b10388e69b59a47b417488f7317"><code>3d664d4</code></a> Changelog entries for <a href="https://redirect.github.com/porsager/postgres/issues/1313">#1313</a> and <a href="https://redirect.github.com/porsager/postgres/issues/1318">#1318</a></li>
<li><a href="https://github.com/porsager/postgres/commit/26c4b62e389fc3876b436384d5d0804e6d4fa03c"><code>26c4b62</code></a> A statement sql.begin sends after its own commit or rollback is rejected (<a href="https://redirect.github.com/porsager/postgres/issues/1320">#1320</a>)</li>
<li><a href="https://github.com/porsager/postgres/commit/28ec07d14ebf19faf45170457fe38e42c976555c"><code>28ec07d</code></a> A command after a select in a multi-statement simple query has no columns (<a href="https://redirect.github.com/porsager/postgres/issues/1">#1</a>...</li>
<li><a href="https://github.com/porsager/postgres/commit/672e52b935f6c3d8174d68c7c477924271d54cb0"><code>672e52b</code></a> On Cloudflare Workers, wait for a described query before sending the next (<a href="https://redirect.github.com/porsager/postgres/issues/1">#1</a>...</li>
<li><a href="https://github.com/porsager/postgres/commit/5b4b90cd895a56d9e75adf4186c8cbc1a449de80"><code>5b4b90c</code></a> Keep a trailing underscore in toCamel and toPascal</li>
<li><a href="https://github.com/porsager/postgres/commit/e94a4fddcc1a4a0ddeade3500cbedb603cf9f129"><code>e94a4fd</code></a> Document the sql.batch and AUTHENTICATION_INCOMPLETE error codes</li>
<li><a href="https://github.com/porsager/postgres/commit/ed087e75873f2645235628d764356f348993af91"><code>ed087e7</code></a> Yield the rows of commands without a row count from a cursor</li>
<li><a href="https://github.com/porsager/postgres/commit/15c074851da057c38de918cd1d8fd5f8495baf2e"><code>15c0748</code></a> fix: clear the cancel_timeout timer once a canceled sql.batch settles</li>
<li>Additional commits viewable in <a href="https://github.com/porsager/postgres/compare/v3.4.9...v4.1.1">compare view</a></li>
</ul>
</details>
<br />

Updates prettier from 3.9.6 to 3.10.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h2>3.10.1</h2>
<ul>
<li>GraphQL: Fix empty selection set with comments (<a href="https://redirect.github.com/prettier/prettier/pull/20504">#20504</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
</ul>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/3.10.1/CHANGELOG.md#3101">Changelog</a></p>
<h2>3.10.0</h2>
<p><a href="https://github.com/prettier/prettier/compare/3.9.10...3.10.0">diff</a></p>
<p>🔗 <a href="https://prettier.io/blog/2026/11/11/3.10.0">Prettier 3.10: New Flow syntax, new JavaScript syntax, and new plugin powered by Yuku</a></p>
<h2>3.9.10</h2>
<ul>
<li>Markdown: Update <code>micromark-extension-gfm-table</code> to fix the table parse issue on performance (<a href="https://redirect.github.com/prettier/prettier/pull/20266">#20266</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
</ul>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/3.9.10/CHANGELOG.md#3910">Changelog</a></p>
<h2>3.9.9</h2>
<ul>
<li>Markdown: Fix text with <code>$</code> been incorrectly parsed as math syntax (<a href="https://redirect.github.com/prettier/prettier/pull/20140">#20140</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
</ul>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/3.9.9/CHANGELOG.md#399">Changelog</a></p>
<h2>3.9.8</h2>
<ul>
<li>Markdown: Don't let Liquid objects interrupt paragraphs (<a href="https://redirect.github.com/prettier/prettier/pull/20087">#20087</a> by <a href="https://github.com/seiyab"><code>@​seiyab</code></a>)</li>
</ul>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/3.9.8/CHANGELOG.md#398">Changelog</a></p>
<h2>3.9.7</h2>
<ul>
<li>Support Angular 22.2</li>
<li>Fix regressions in v3.9</li>
</ul>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/3.9.7/CHANGELOG.md#397">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>3.10.1</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.10.0...3.10.1">diff</a></p>
<h4>GraphQL: Fix empty selection set with comments (<a href="https://redirect.github.com/prettier/prettier/pull/20504">#20504</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</h4>
<!-- raw HTML omitted -->
<pre lang="gql"><code># Input
fragment F on Query {
# x
}
<h1>Prettier 3.10.0</h1>
<p>Error: Comment &quot;x&quot; was not printed. Please report this error!</p>
<h1>Prettier 3.10.1</h1>
<p>fragment F on Query {</p>
<h1>x</h1>
<p>}<br />
</code></pre></p>
<h1>3.10.0</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.9.10...3.10.0">diff</a></p>
<p>🔗 <a href="https://prettier.io/blog/2026/11/11/3.10.0">Release Notes</a></p>
<h1>3.9.10</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.9.9...3.9.10">diff</a></p>
<h4>Markdown: Update <code>micromark-extension-gfm-table</code> to fix the table parse issue on performance (<a href="https://redirect.github.com/prettier/prettier/pull/20266">#20266</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</h4>
<p>See <a href="https://github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267">https://github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267</a> for details.</p>
<h1>3.9.9</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.9.8...3.9.9">diff</a></p>
<h4>Markdown: Fix text with <code>$</code> been incorrectly parsed as math syntax (<a href="https://redirect.github.com/prettier/prettier/pull/20140">#20140</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</h4>
<!-- raw HTML omitted -->
<pre lang="md"><code>&lt;!-- Input --&gt;
Uses $FOO from a.sh and b.sh, plus $BAR from c.sh, before anything else runs here.
<p>&lt;!-- Prettier 3.9.8 --&gt;<br />
<strong>Uses $FOO</strong> from <code>a.sh</code> and <code>b.sh</code>, plus <code>$BAR</code>from<code>c.sh</code>, before anything else runs here.</p>
<p>&lt;/tr&gt;&lt;/table&gt;<br />
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/prettier/prettier/commit/deda65fd47c285b974e2a4397f26a33cfc1746b8"><code>deda65f</code></a> Release 3.10.1</li>
<li><a href="https://github.com/prettier/prettier/commit/190cbd55f733cd8e1af0457aa3bfccc2e18bad42"><code>190cbd5</code></a> Fix GraphQL empty selection set with comments (<a href="https://redirect.github.com/prettier/prettier/issues/20504">#20504</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/8cd4ec1248fd8aa6ff8578caaf2fbc45ac52d042"><code>8cd4ec1</code></a> Restore release script</li>
<li><a href="https://github.com/prettier/prettier/commit/c01e24daa45b81d7073b8903b4ece29971fbf753"><code>c01e24d</code></a> Bump Prettier dependency to 3.10.0</li>
<li><a href="https://github.com/prettier/prettier/commit/bfa3b07039318b5c92e33bf48d2accef174711cd"><code>bfa3b07</code></a> Clean changelog_unreleased</li>
<li><a href="https://github.com/prettier/prettier/commit/3e2241f541d01758b79b4d02166bf644cf9b518e"><code>3e2241f</code></a> Comment out the finished steps</li>
<li><a href="https://github.com/prettier/prettier/commit/932d100a088b106996a79112abb77083451aebee"><code>932d100</code></a> Fix release script</li>
<li><a href="https://github.com/prettier/prettier/commit/4a7addba5ec24fc2fa6efdf13b5965943c265994"><code>4a7addb</code></a> Add blog post for v3.10 (<a href="https://redirect.github.com/prettier/prettier/issues/20490">#20490</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/b688380af847b008d9951d794b2990a59048922f"><code>b688380</code></a> Release 3.10.0</li>
<li><a href="https://github.com/prettier/prettier/commit/901fdfa8f1ac83418580a3abdebf75fc01fdfc99"><code>901fdfa</code></a> Release <code>@​prettier/plugin-hermes</code><a href="https://github.com/0"><code>@​0</code></a>.2.4, <code>@​prettier/plugin-oxc</code><a href="https://github.com/0"><code>@​0</code></a>.2.4, and <a href="https://github.com/prett"><code>@​prett</code></a>...</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/3.9.6...3.10.1">compare view</a></li>
</ul>
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR

  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it

  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency

  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)

  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)

  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)

  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency

  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions
  • </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: philippemnoel Review duration: 120m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #106"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%