From 69a1ff7817d592666357edd0b35c69e23ad79d58 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 21 Aug 2019 19:17:16 +0200 Subject: [PATCH] Use Node.js version 10 Update instructions, Dockerfile and Travis CI to use Node.js 10. Specify that Node.js version 10 or greater is needed in the engines section of package.json (note that this is only advisory.) And document this as a breaking change in CHANGELOG.md. --- .travis.yml | 2 +- CHANGELOG.md | 6 ++++++ Dockerfile | 2 +- README.md | 4 ++-- package.json | 3 +++ 5 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.travis.yml b/.travis.yml index a427a119..0340e2d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "9" + - 10 before_install: - curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 - tar -xf factorio.tar.gz diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..ecd3e298 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +Version 2.0.0 +============= + +Breaking Changes +---------------- +- Node.js versions below 10 are no longer supported. diff --git a/Dockerfile b/Dockerfile index c9892b74..4aefeac4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:9.11.2 +FROM node:10 RUN apt-get update && apt install git curl tar -y RUN mkdir factorioClusterio diff --git a/README.md b/README.md index 3a03625e..9522d40a 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ NodeJS does not support EOL ubuntu releases. Make sure you are on the most recen Master and all slaves: - sudo curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - + sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt install -y nodejs python-dev git wget curl tar build-essential sudo npm install pm2 -g git clone https://github.com/clusterio/factorioClusterio.git @@ -159,7 +159,7 @@ Game Client = The people connecting to the server **Requirements** -download and install nodeJS 8 or 9 from http://nodejs.org +download and install nodeJS 10 from http://nodejs.org download and install git from https://git-scm.com/ diff --git a/package.json b/package.json index 2542ad3a..b041857d 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,9 @@ ], "author": "Danielv123", "license": "ISC", + "engines": { + "node": ">=10" + }, "dependencies": { "as-table": "^1.0.31", "averaged-timeseries": "^1.4.0",