Releases: vitaly-t/pg-promise
10.3.4
- Fixed #682
- Minor code refactoring + documentation updates
There has been a discrepancy with the driver, as it's undergone many changes when it comes to supporting connection timeouts.
Property connect_timeout
now has been removed from the defaults
of the driver, and property connectionTimeoutMillis
added to the connection parameters, which is the only correct way to set the connection timeout:
const db = pgp({
database: 'my-db'
/* other connection properties */
connectionTimeoutMillis: 2000 // set connection timeout to 2 seconds
});
Note that this change affects only TypeScript clients.
10.4.0-beta.3
- Updated the driver to v7.17.1
- The update includes changes from v10.3.3.
Note that if you are using pg-query-stream, it needs to be version 3.0.0 or later, which currently doesn't support Node.js v7 or earlier, which even further delays the release of v10.4.0.
10.3.3
- Implemented #692
Method proc had a limited functionality, without supporting procedures with output parameters. The method's signature has been revised, to let you get the output values + optionally transform them.
Example
Say, you have a procedure like this one:
CREATE OR REPLACE PROCEDURE test_proc(INOUT output1 INT, INOUT output2 TEXT)
LANGUAGE plpgsql AS $$
BEGIN
output1 := 123;
output2 := concat(output2, '-hello!');
END;$$;
Then the following calls can be made now:
await db.proc('test_proc', [null, 'world']);
//=> {output1: 123, output2: 'world-hello!'}
await db.proc('test_proc', [null, 'world'], a => a.output2);
//=> 'world-hello!'
10.4.0-beta.2
- Updated driver to v7.17.1
See #687
10.4.0-beta.1
- Updated driver to v7.17.0
See #687
10.4.0-beta0
10.3.2
- Migrated tests to PostgreSQL v11
- Documentation updates
- DEV dependencies updated
No code changes.
After some tests, and looking at what's going on with the driver, decided again upgrading, for now, until it becomes something better. Sometime in January 2020, perhaps.