Repository navigation
Version Packages - #827
Merged
Merged
Version Packages#827
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 5, 2026 22:31
0dfb61c to
1b64c6e
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 5, 2026 23:41
1b64c6e to
6bf84ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@slonik/pg-driver@49.13.0
Minor Changes
#829
bed6b20Thanks @gajus! - fix:InvalidInputErrorraised for SQLSTATE 22P02 (invalid text representation) includes the original error ascause, like the other errors that the driver maps.#829
bed6b20Thanks @gajus! - fix:stream()rejects with the error of atransformRowortransformRowAsyncinterceptor (e.g. aSchemaValidationErrorof a result parser). Previously, the error was an unhandled rejection,stream()never settled, and the connection was never released.stream()also waits for the promise returned by the stream handler (e.g. anasyncfunction that usesfor await). When the consumer of a stream fails, the driver closes the cursor, so that the connection can be used again (e.g. to roll back the transaction).Patch Changes
slonik@49.13.0
Minor Changes
#826
4f74b91Thanks @gajus! - fix:UnexpectedForeignConnectionErroris raised only while the transaction is open. Previously, async work that was started inside of a transaction (e.g. a deferred side effect, or acommit/rollbackevent listener) raised the error for any query that it ran on another connection, even after the transaction had ended. AddrunOutsideTransaction(routine)to run queries on other connections while a transaction is open, e.g.await runOutsideTransaction(() => pool.query(auditLogQuery)).#826
4f74b91Thanks @gajus! - addforeignConnectionsconfiguration ("reject"(default) or"allow"), which replacesdangerouslyAllowForeignConnections.dangerouslyAllowForeignConnections: truekeeps working as a deprecated alias offoreignConnections: "allow";foreignConnectionstakes precedence when both are provided.#829
bed6b20Thanks @gajus! - fix:oneFirstthrowsDataIntegrityError(instead ofUnexpectedStateError) when the query returns multiple columns, likemaybeOneFirst,anyFirstandmanyFirst.#829
bed6b20Thanks @gajus! - remove thevaluesparameter from the types of the query methods (e.g.pool.query(query, values)). The parameter was accepted, but ignored; values are bound using thesqltag.#829
bed6b20Thanks @gajus! - fix: a query that fails withNotFoundError,DataIntegrityErrororSchemaValidationError(e.g.pool.one()that finds no rows) no longer destroys its connection; the connection is returned to the pool. This applies to queries and transactions on the pool. Connections used bypool.connect()are still destroyed when the routine fails.#829
bed6b20Thanks @gajus! - fix:stream()rejects with the error of atransformRowortransformRowAsyncinterceptor (e.g. aSchemaValidationErrorof a result parser). Previously, the error was an unhandled rejection,stream()never settled, and the connection was never released.stream()also waits for the promise returned by the stream handler (e.g. anasyncfunction that usesfor await). When the consumer of a stream fails, the driver closes the cursor, so that the connection can be used again (e.g. to roll back the transaction).#829
bed6b20Thanks @gajus! - add theretryLimitoption totransaction(), e.g.pool.transaction(handler, { retryLimit: 3 }). Passing the retry limit as the second argument (pool.transaction(handler, 3)) is deprecated. Also fixespool.transaction()dropping the retry limit when abeforePoolConnectioninterceptor returns another pool: the options are now passed to that pool.Patch Changes
bed6b20,bed6b20]:slonik-interceptor-field-name-transformation@49.13.0
Minor Changes
370c0d3Thanks @gajus! - improvetransformRowperformance: rows are copied by a function that is compiled once per set of fields into an object literal, instead of being assembled one property at a time on a null-prototype object (which V8 keeps in slower dictionary mode). Transforming 200,000 rows of 12 fields is ~25x faster, and reading fields of the transformed rows ~12x faster. Rows are now plain objects, and rows whose field names do not need to be transformed are returned as they are. Also fixes reusing the transformation of a different set of fields when field names contain commas, or whentestdepends on the field type.@slonik/driver@49.13.0
Patch Changes
@slonik/errors@49.13.0
Patch Changes
slonik-sql-tag-raw@49.13.0
Patch Changes
@slonik/sql-tag@49.13.0
Patch Changes
@slonik/utilities@49.13.0
Patch Changes
@slonik/dataloaders@49.13.0
slonik-interceptor-query-cache@49.13.0
slonik-interceptor-query-logging@49.13.0
@slonik/test-ssls@49.13.0
@slonik/types@49.13.0
@slonik/benchmark@49.13.0
Patch Changes
4f74b91,4f74b91,bed6b20,bed6b20,bed6b20,bed6b20,bed6b20]: