Skip to content

Releases: vitaly-t/pg-promise

10.3.4

12 Jan 11:08
Compare
Choose a tag to compare
  • 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

11 Jan 12:20
Compare
Choose a tag to compare
10.4.0-beta.3 Pre-release
Pre-release
  • 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

11 Jan 11:59
Compare
Choose a tag to compare

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

10 Jan 21:55
Compare
Choose a tag to compare
10.4.0-beta.2 Pre-release
Pre-release
  • Updated driver to v7.17.1

See #687

10.4.0-beta.1

29 Dec 18:06
Compare
Choose a tag to compare
10.4.0-beta.1 Pre-release
Pre-release
  • Updated driver to v7.17.0

See #687

10.4.0-beta0

28 Dec 17:40
Compare
Choose a tag to compare
10.4.0-beta0 Pre-release
Pre-release
  • Initial update of the re-packaged driver to v7.16.1

See #687

10.3.2

26 Dec 15:08
Compare
Choose a tag to compare
  • 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.

10.3.1

23 Nov 20:51
Compare
Choose a tag to compare
  • Removed now obsolete min connection option from the TypeScript. The connection pool no longer supports it.

10.3.0

23 Nov 20:41
Compare
Choose a tag to compare
  • Driver updated to v7.14.0
  • DEV dependencies updated

10.2.1

12 Nov 14:53
Compare
Choose a tag to compare

pg-native crawled into 10.2.0 package, yet again, after my local tests, thanks to the npm's damn auto-save feature, and it got published unknowingly 😠

This update just throws pg-native away from the package, as it doesn't belong there.