From 1347c9620976af2cda13cf01ff998f2637f33464 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Thu, 17 Nov 2022 06:29:15 +0000 Subject: [PATCH] increase Node requirement to v12 --- lib/index.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/index.js b/lib/index.js index 288d5348b..caef7f7e1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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`); diff --git a/package.json b/package.json index 2a9b888fe..37f8139d9 100644 --- a/package.json +++ b/package.json @@ -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",