pg-promise v10.3.4 Release Notes

Release Date: 2020-01-12 // over 4 years ago
    • ๐Ÿ›  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.