Skip to content

@slonik/pg-driver@49.13.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 00:01
· 4 commits to main since this release
3a5d730

Minor Changes

  • #829 bed6b20 Thanks @gajus! - fix: InvalidInputError raised for SQLSTATE 22P02 (invalid text representation) includes the original error as cause, like the other errors that the driver maps.

  • #829 bed6b20 Thanks @gajus! - fix: stream() rejects with the error of a transformRow or transformRowAsync interceptor (e.g. a SchemaValidationError of 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. an async function that uses for 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

  • Updated dependencies []:
    • @slonik/driver@49.13.0
    • @slonik/errors@49.13.0
    • @slonik/sql-tag@49.13.0
    • @slonik/types@49.13.0
    • @slonik/utilities@49.13.0