Closed PopGoesTheWza closed 4 years ago
Agree. Time to drop non LTS node versions. Feel free to action.
I can PR with node >= 8.6.0 in package.json and travis to run tests on 8, 10 and 12 (NodeJS 13 is currently not fresh enough to bother with)
Following this, additional PRs could come to incrementally bring code base to ES2016
In article Fun with Stamps. Episode 20. Stampit v4 it is mentioned:
This is mentioned nowhere in any of the
README.md
of the@stamp
monorepo.Furthermore, current
package.json
requires a node engine>= 6.4.0
and.travis.yml
setup test against node version 6, 7, 8, 10 and 12, but NodeJS Releases page no longer lists version 6 and 7.By defining the minimal supported NodeJS version, we define the proper ES version to expect and can clean/simplify/harden the code base in several places (get rid of
__proto__
, rely onSymbol
,Reflect
andProxy
primitives, spread and rest operators, etc.)Also, since odd numbered releases of NodeJS are not considered long-lived,
.travis.yml
might be better limited to testing only even numbered version plus:>= 7.5.0
inpackage.json
)source: node.green