- Invalid npm published module
- Requires Node v8.1.4 and above
- No longer mutates pg.Pool and pg.Client
- Uses es6
class extends
- Does not directly extends pg.Pool, instead requires
pg-pool
and extends it. - It extends pg.Pool and pg.Client with the helpers and put them on pg._Pool and pg._Client.
- No longer automatically initializes Pool, a third argument with {singleton:true} is required to auto initiaze and returns
pool
Otherwise, it does not returnpool
, and you must initialize it your self. - Errors are now an instance of
PgLazyError
- Configuration now accepts String and Object. String configurations are treated as a connectionString.
- If no configuration is passed, uses Environment variables if available, otherwise it throws.
- Code modularization
- Sql statement minification using
pg-minify
- Change unit test from
Jest
toMocha
andChai
- Added nyc for coverage testing
- Change standard to semistandard
- Replace
npm
withyarn
- Fix one method to allow less than 1 result
- Removed
timertask
that used to call a function given and returns thepool.totalCount, pool.idleCount, pool.waitingCount
Since those are still exposed via pg, let the user call them if needed. - Added
await pool.isConnected()
andawait client.isConnected()
This returns a Boolean(true,false) if the pool/client is able to connect successfully to the given configuration - Make helpers more stricter, will throw if conditions are not met
- Change test module from Ava to Jest
- Added Standard badge
- Change engine spec to Node
^7.10.1 || >= 8.1.4
- Added Sanity check before exporting. Will throw if Node or Pg versions mismatch
- Added more test
- Fix Badges on README.md
- Added Greenkeeper