From 309d2b49a11628d2a8f052c5587e7459968cd705 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 2 Apr 2020 19:15:33 +0100 Subject: [PATCH] chore: set Node.js compatibility to v6+ - drop support for versions less than Node v6 via engines - update integration tests to also test newer versions --- README.markdown | 2 +- integration-testing/multi-nodejs-test/test.sh | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index 5450f9cd2..2b49bca56 100644 --- a/README.markdown +++ b/README.markdown @@ -79,7 +79,7 @@ Supported Environments Handlebars has been designed to work in any ECMAScript 3 environment. This includes -- Node.js +- Node.js v6+ - Chrome - Firefox - Safari 5+ diff --git a/integration-testing/multi-nodejs-test/test.sh b/integration-testing/multi-nodejs-test/test.sh index 99682b453..d38b14ffa 100755 --- a/integration-testing/multi-nodejs-test/test.sh +++ b/integration-testing/multi-nodejs-test/test.sh @@ -17,7 +17,7 @@ cd "$( dirname "$( readlink -f "$0" )" )" || exit 1 unset npm_config_prefix echo "Handlebars should be able to run in various versions of NodeJS" -for i in 0.10 0.12 4 5 6 7 8 9 10 11 ; do +for i in 6 7 8 9 10 11 12 13; do rm target node_modules package-lock.json -rf mkdir target nvm install "$i" diff --git a/package.json b/package.json index 6a0a1da93..223011a61 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "license": "MIT", "readmeFilename": "README.md", "engines": { - "node": ">=0.4.7" + "node": ">=6" }, "dependencies": { "neo-async": "^2.6.0",