From e9e2117046eb604fe14661825b1b1ca8c5355659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 2 Jan 2019 11:16:00 +0100 Subject: [PATCH 1/2] Update docs: Node.js and npm version --- HOWTO_RELEASE | 11 ++++------- NEWS.md | 3 +++ README.md | 12 ++++++++++-- package.json | 4 ++-- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/HOWTO_RELEASE b/HOWTO_RELEASE index f147f500..2701a545 100644 --- a/HOWTO_RELEASE +++ b/HOWTO_RELEASE @@ -1,12 +1,9 @@ 1. Test (make clean all check), fix if broken before proceeding -2. Ensure proper version in package.json +2. Ensure proper version in package.json and package-lock.json 3. Ensure NEWS section exists for the new version, review it, add release date -4. Drop npm-shrinkwrap.json -5. Run npm shrinkwrap to recreate npm-shrinkwrap.json -6. Commit package.json, npm-shrinwrap.json, NEWS -7. git tag -a Major.Minor.Patch # use NEWS section as content -8. Announce on cartodb@googlegroups.com -9. Stub NEWS/package for next version +4. Commit package.json, npm-shrinwrap.json, NEWS +5. git tag -a Major.Minor.Patch # use NEWS section as content +6. Stub NEWS/package for next version Versions: diff --git a/NEWS.md b/NEWS.md index 480f4a40..40dea13b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,9 @@ ## 2.3.2 Released 2018-mm-dd +Announcements: + * Update docs: compatible Node.js and npm versions + ## 2.3.1 Released 2018-12-23 diff --git a/README.md b/README.md index 1dba61e0..5dc17c33 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,27 @@ Provides a node.js based API for running SQL queries against CartoDB. core requirements ----------------- +* Node >= 10.14.2 or 6.9.2 +* npm >= 6.4.1 || 3.10.9 || 3.10.10 * Postgres `9.3+`. * Postgis `2.2`. * [CartoDB Postgres Extension](https://github.com/CartoDB/cartodb-postgresql/blob/0.19.2/README.md) `0.19+`. * GDAL `1.11.0` (bin utils). See [installing GDAL](http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries) * zip commandline tool. * Redis `3`, recommended reversion `3.0.2`. -* Node.js `6`, recommended reversion `6.9.2`. -* npm `3`, recommended version `3.10.9`. Install dependencies -------------------- +- Node.js >= 10.14.2: +``` +$ mv npm-shrinkwrap.json npm-shrinkwrap.json.backup +$ npm ci +$ mv npm-shrinkwrap.json.backup npm-shrinkwrap.json +``` + +- Node.js 6.9.2: ```sh npm install ``` diff --git a/package.json b/package.json index 6b68f62f..fc7ef15a 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "docker-bash": "./docker-bash.sh" }, "engines": { - "node": ">= 4.5.0", - "npm": ">=1.2.1" + "node": "6.9.2 || >= 10.14.2", + "npm": "3.10.9 || 3.10.10 || >= 6.4.1" } } From 3f6cccc50bfe3cc0bf408eb7bceb57a9f1c51679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 2 Jan 2019 12:52:53 +0100 Subject: [PATCH 2/2] Add deprecation warning --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 40dea13b..9af0c936 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # Changelog +**Deprecation warning**: Next major release will drop support for `Node.js 6 LTS` and `npm 3.x`. You'll be able to use the latest ES features as soon as we release 3.0.0. In the meantime, as a developer, you should keep compatibility with Node.js 6 LTS and keep updated both `package-lock.json` and `npm-shrinkwrap.json` files. + ## 2.3.2 Released 2018-mm-dd