github gajus/slonik @slonik/pg-driver@49.13.0

latest releases: slonik-sql-tag-raw@49.13.0, slonik-interceptor-query-cache@49.13.0
7 hours ago

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

Don't miss a new slonik release

NewReleases is sending notifications on new releases.