- Fix: subtle bug in encoding buffer values on update.
- Fix: do not allow extraneous fields in update to cause silent error.
- Polish: make authorization parameters in connection URL optional.
- Fix: ensure that DeprecationWarning regarding Buffer constructor usage is removed.
- Polish: ensure that
client_min_messages
is set before attempting to create tables for each client. - Polish: update dependencies.
- Fix: invalid format for JSON arrays.
- Fix: use a single client instance during a transaction.
- Bump
pg
dependency major version.
- Fix: inconsistent behavior when casting buffers.
- Polish: ignore creating non-enumerable fields if they are not denormalized inverse fields.
- Polish: allow
sslmode=require
query parameter for SSL.
- Fix: ignore errors that may occur if default database
postgres
does not exist.
- Feature: attempt to automatically create the database, so that this setup does not need to be done beforehand.
- Fix: alias
adapter.client
toadapter.pool
for backwards compatibility. However, this should be considered private API.
- Feature: allow connection object or an instance of
node-pg-pool
to be passed in directly.
- Refactor: use
pool
API.
- Feature: proper support for custom types.
- Fix: check for type constructor.
- Polish: update dependencies.
- Polish: update dependencies.
- Polish: update dependencies.
- Fix: add default value as empty array when altering array columns.
- Feature: implement transactions.
- Feature: implement
range
option. - Feature: implement
exists
option. - Polish: add
not null
constraint on array fields. - Polish: remove transpiler.
- Polish: make common table expression optional in create method.
- Fix: assign primary key after creating records if they are not supplied.
- Fix: improve support for numeric primary key types.
- Fix: change type of foreign keys for serial primary keys.
- Fix: omit
primaryKey
in create method if all IDs are missing.
- Feature: allow strings for
primaryKeyType
. - Feature: allow
generatePrimaryKey
to be disabled.
- Fix: sort array fields by array length.
- Add parameters as second argument to
query
function.
- Breaking change:
query
field now accepts a function.
- Fix array containment query.
- Fix array of buffers input/output.
- Rename
typeMapping
totypeMap
.
- Fix:
null
option bug.
- Feature: add missing columns on table if they don't exist yet.
- Bump dependency versions, use semver.
- Feature: add
typeMapping
option.
- Bump versions.
- Renamed package to
fortune-postgres
.
- Add option for foreign key constraint on non-array links. PostgreSQL itself may support foreign keys for array values in the future.
- Fix sort input.
- Fix update no-op.
- Moved
pg-native
as an optional dependency, no longer default.
- Initial release.