From cb84e679857eb41edf4fd068261d0c82a663f600 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 25 May 2017 08:57:23 -0700 Subject: [PATCH] Require node 6; permit default and rest params and destructuring --- CONTRIBUTING.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8c6f5e60a94..10e79b234d7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -109,11 +109,11 @@ See [`bench/README.md`](https://github.com/mapbox/mapbox-gl-js/blob/master/bench * Classes * Template strings * Computed and shorthand object properties -* The following ES6 features are not to be used, in order to maintain support for Node 4.x, IE 11, and older mobile browsers. This may change in the future. * Default parameters * Rest parameters - * Spread (`...`) operator * Destructuring +* The following ES6 features are not to be used, in order to maintain support for IE 11 and older mobile browsers. This may change in the future. + * Spread (`...`) operator (because it requires Object.assign) * Iterators and generators * "Library" features such as `Map`, `Set`, `array.find`, etc. * Modules diff --git a/package.json b/package.json index f5cdc4d0b67..bb8424c562d 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "url": "git://github.com/mapbox/mapbox-gl-js.git" }, "engines": { - "node": ">=4.0.0" + "node": ">=6.4.0" }, "dependencies": { "@mapbox/gl-matrix": "^0.0.1",