ts-postgres
Advanced tools
Changelog
v1.4.0 (2023-11-10)
A statement error during the processing of a prepared statement is now handled correctly (#73).
An internal error now cancels all queries.
The ts-typed-events dependency was updated to version 3.0.0.
Changelog
v1.3.1 (2023-06-19)
Changelog
v1.3.0 (2022-08-22)
Changelog
v1.2.1 (2021-12-23)
Fix range error that could occur when parsing an incomplete data row after one or more previous messages had already been processed.
The stack trace of a query error now originates in calling code, rather than an async listening thread.
Fix error handling for queries that return no data.
Fix error handling during connection attempts such that promise
returned by connect()
is rejected in case of an error.
Add support for SCRAM-SHA-256 authentication.
Fix issue where a query with multiple columns would yield incomplete rows when protocol data spans multiple receive buffers.
Changelog
v1.2.0 (2021-11-19)
The "execute" method is now public and must be used now when passing a query object rather than individual arguments when querying.
Add support for streaming binary column data.
Add SSL support.
Fix buffer race condition that could lead to data corruption.
Fix issue with BYTEA
where a returned buffer would incorrectly be
a slice into an internal buffer.
The environment variables PGHOST
and PGPORT
can now be set to
override the static defaults "localhost" and 5432.
Fixed an issue where a connection error would not reject the connect promise.
Added optional connectionTimeout
configuration setting (in
milliseconds).
Updated dependency on "ts-typed-events".
Changelog
v1.1.2 (2019-12-28)
Changelog
v1.1.1 (2019-12-06)
Fixed ECONNRESET
deprecation.
Enable parsing of jsonb
and uuid
arrays. [matthieusieben]
Fixed error when parsing null arrays. [matthieusieben]
Encoding argument now uses BufferEncoding
type.
Changelog
v1.1.0 (2019-06-24)
The rejection value is now a DatabaseError
object which inherits
from Error
. Previously, this value was a plain string.
Add command status string to result object.
Fix password authentication.
Add support for MD5 authentication.
Handle JSONB
and null values.
Changelog
v1.0.2 (2019-02-08)
Connection state variable 'closed' is now public. This should be checked before using the connection to make sure that an unexpected error has not occurred which would close the connection.
Handle protocol errors gracefully, passing error to open data handlers and marking the connection as 'closed'.