Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: brianc/node-postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: pg@8.7.0
Choose a base ref
...
head repository: brianc/node-postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pg@8.7.1
Choose a head ref
  • 2 commits
  • 6 files changed
  • 1 contributor

Commits on Jul 27, 2021

  1. Only call client.ref if it exists

    * Only call client.ref if it exists. Fixes #2582
    
    * Make test requiring port less flakey
    
    * Bump port range
    
    Fixes #2582
    Fixes #2584
    brianc authored Jul 27, 2021
    Copy the full SHA
    86d31a6 View commit details
  2. Publish

     - pg-cursor@2.7.1
     - pg-pool@3.4.1
     - pg-query-stream@4.2.1
     - pg@8.7.1
    brianc committed Jul 27, 2021
    Copy the full SHA
    92b4d37 View commit details
4 changes: 2 additions & 2 deletions packages/pg-cursor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-cursor",
"version": "2.7.0",
"version": "2.7.1",
"description": "Query cursor extension for node-postgres",
"main": "index.js",
"directories": {
@@ -18,7 +18,7 @@
"license": "MIT",
"devDependencies": {
"mocha": "^7.1.2",
"pg": "^8.7.0"
"pg": "^8.7.1"
},
"peerDependencies": {
"pg": "^8"
2 changes: 1 addition & 1 deletion packages/pg-pool/index.js
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ class Pool extends EventEmitter {
const idleItem = this._idle.pop()
clearTimeout(idleItem.timeoutId)
const client = idleItem.client
client.ref()
client.ref && client.ref()
const idleListener = idleItem.idleListener

return this._acquireClient(client, pendingItem, idleListener, false)
2 changes: 1 addition & 1 deletion packages/pg-pool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-pool",
"version": "3.4.0",
"version": "3.4.1",
"description": "Connection pool for node-postgres",
"main": "index.js",
"directories": {
6 changes: 3 additions & 3 deletions packages/pg-query-stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-query-stream",
"version": "4.2.0",
"version": "4.2.1",
"description": "Postgres query result returned as readable stream",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -37,13 +37,13 @@
"concat-stream": "~1.0.1",
"eslint-plugin-promise": "^3.5.0",
"mocha": "^7.1.2",
"pg": "^8.7.0",
"pg": "^8.7.1",
"stream-spec": "~0.3.5",
"stream-tester": "0.0.5",
"ts-node": "^8.5.4",
"typescript": "^4.0.3"
},
"dependencies": {
"pg-cursor": "^2.7.0"
"pg-cursor": "^2.7.1"
}
}
4 changes: 2 additions & 2 deletions packages/pg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg",
"version": "8.7.0",
"version": "8.7.1",
"description": "PostgreSQL client - pure javascript & libpq with the same API",
"keywords": [
"database",
@@ -23,7 +23,7 @@
"buffer-writer": "2.0.0",
"packet-reader": "1.0.0",
"pg-connection-string": "^2.5.0",
"pg-pool": "^3.4.0",
"pg-pool": "^3.4.1",
"pg-protocol": "^1.5.0",
"pg-types": "^2.1.0",
"pgpass": "1.x"
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ const suite = new helper.Suite()

const options = {
host: 'localhost',
port: 54321,
port: Math.floor(Math.random() * 2000) + 2000,
connectionTimeoutMillis: 2000,
user: 'not',
database: 'existing',