pg-promise 11.2.0 → 11.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "11.2.0",
3
+ "version": "11.4.0",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",
@@ -42,22 +42,22 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "assert-options": "0.8.0",
45
- "pg": "8.9.0",
45
+ "pg": "8.10.0",
46
46
  "pg-minify": "1.6.2",
47
47
  "spex": "3.2.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "18.11.18",
50
+ "@types/node": "18.15.0",
51
51
  "bluebird": "3.7.2",
52
52
  "coveralls": "3.1.1",
53
- "cspell": "6.19.2",
54
- "eslint": "8.32.0",
53
+ "cspell": "6.28.0",
54
+ "eslint": "8.35.0",
55
55
  "istanbul": "0.4.5",
56
56
  "jasmine-node": "3.0.0",
57
- "jsdoc": "4.0.0",
57
+ "jsdoc": "4.0.2",
58
58
  "JSONStream": "1.3.5",
59
- "pg-query-stream": "4.3.0",
59
+ "pg-query-stream": "4.4.0",
60
60
  "tslint": "6.1.3",
61
- "typescript": "4.9.4"
61
+ "typescript": "4.9.5"
62
62
  }
63
63
  }
@@ -95,7 +95,19 @@ declare namespace pg {
95
95
  idleTimeoutMillis?: number
96
96
  parseInputDatesAsUTC?: boolean
97
97
  rows?: number
98
+
99
+ // Max milliseconds any query using this connection will execute for before timing out in error.
100
+ // false = unlimited
98
101
  statement_timeout?: boolean | number
102
+
103
+ // Abort any statement that waits longer than the specified duration in milliseconds
104
+ // while attempting to acquire a lock; false = unlimited
105
+ lock_timeout?: boolean | number
106
+
107
+ // Terminate any session with an open transaction that has been idle for longer than
108
+ // the specified duration in milliseconds; false = unlimited
109
+ idle_in_transaction_session_timeout?: boolean | number
110
+
99
111
  query_timeout?: boolean | number
100
112
  connectionTimeoutMillis?: number
101
113
  keepAliveInitialDelayMillis?: number
@@ -246,10 +258,18 @@ declare namespace pg {
246
258
 
247
259
  parseInputDatesAsUTC: boolean
248
260
 
249
- // max milliseconds any query using this connection will execute for before timing out in error.
250
- // false=unlimited
261
+ // Max milliseconds any query using this connection will execute for before timing out in error.
262
+ // false = unlimited
251
263
  statement_timeout: boolean | number
252
264
 
265
+ // Abort any statement that waits longer than the specified duration in milliseconds
266
+ // while attempting to acquire a lock; false = unlimited
267
+ lock_timeout: boolean | number
268
+
269
+ // Terminate any session with an open transaction that has been idle for longer than
270
+ // the specified duration in milliseconds; false = unlimited
271
+ idle_in_transaction_session_timeout: boolean | number
272
+
253
273
  // max milliseconds to wait for query to complete (client side)
254
274
  query_timeout: boolean | number
255
275
 
@@ -269,6 +289,8 @@ declare namespace pg {
269
289
 
270
290
  end(cb: (err: Error) => any): any;
271
291
 
292
+ log: () => void;
293
+
272
294
  readonly options: { [name: string]: any }; // connection options
273
295
 
274
296
  readonly ended: boolean;
@@ -277,6 +299,7 @@ declare namespace pg {
277
299
  readonly waitingCount: number;
278
300
  readonly idleCount: number;
279
301
  readonly totalCount: number;
302
+ readonly expiredCount: number;
280
303
  }
281
304
 
282
305
  interface IQuery {