pg-promise 10.14.2 → 10.15.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.
Files changed (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -12,16 +12,16 @@ var v = process.versions.node.split(`.`),
12
12
  highVer = +v[0];
13
13
 
14
14
  // istanbul ignore next
15
- if (highVer < 8) {
15
+ if (highVer < 12) {
16
16
 
17
- // From pg-promise v10.4.0, the oldest supported Node.js is v8.0.0,
18
- // which among other things, adds method 'destroy' to streams.
17
+ // From pg-promise v10.15.0, the oldest supported Node.js is v12.0.0
19
18
 
19
+ // Node.js v8.0.0 was supported up to pg-promise v10.14.2
20
20
  // Node.js v7.6.0 was supported up to pg-promise v10.3.5
21
21
  // Node.js v4.5.0 was supported up to pg-promise v8.7.5
22
22
  // Node.js v0.10 was supported up to pg-promise v5.5.8
23
23
 
24
- throw new Error(`Minimum Node.js version supported by pg-promise is 8.0.0`);
24
+ throw new Error(`Minimum Node.js version supported by pg-promise is 12.0.0`);
25
25
  }
26
26
 
27
27
  module.exports = require(`./main`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "10.14.2",
3
+ "version": "10.15.0",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",