Skip to content

Commit

Permalink
increase Node requirement to v12
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Nov 17, 2022
1 parent 240c50a commit 1347c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ var v = process.versions.node.split(`.`),
highVer = +v[0];

// istanbul ignore next
if (highVer < 8) {
if (highVer < 12) {

// From pg-promise v10.4.0, the oldest supported Node.js is v8.0.0,
// which among other things, adds method 'destroy' to streams.
// From pg-promise v10.15.0, the oldest supported Node.js is v12.0.0

// Node.js v8.0.0 was supported up to pg-promise v10.14.2
// Node.js v7.6.0 was supported up to pg-promise v10.3.5
// Node.js v4.5.0 was supported up to pg-promise v8.7.5
// Node.js v0.10 was supported up to pg-promise v5.5.8

throw new Error(`Minimum Node.js version supported by pg-promise is 8.0.0`);
throw new Error(`Minimum Node.js version supported by pg-promise is 12.0.0`);
}

module.exports = require(`./main`);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-promise",
"version": "10.14.2",
"version": "10.15.0",
"description": "PostgreSQL interface for Node.js",
"main": "lib/index.js",
"typings": "typescript/pg-promise.d.ts",
Expand Down

0 comments on commit 1347c96

Please sign in to comment.