Update to ES6+ / Node v6+
See original GitHub issueI’d like to update the code to be ES6+ and beyond to make x-ray
more modern. In tandem with that, it’d be great to update the engine in package.json
to require Node v6.0 or above since v4.0 was recently deprecated.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Upgrade your Node app: From CommonJS to ES Modules
Install the latest Node.js version (at least the current LTS) and verify that your app is running smoothly after the update. Commit all...
Read more >ECMAScript 2015 (ES6) and beyond - Node.js
Node.js is built against modern versions of V8. By keeping up-to-date with the latest releases of this engine, we ensure new features from...
Read more >How to use an ES6 import in Node.js? - GeeksforGeeks
Introduction to ES6 import: The import statement is used to import modules that are exported by some other module. A module is a...
Read more >How to check if Node.js supports ES6 language feature
New language features trickle down to Node.js in phases. Node uses Google's V8 JavaScript engine for language implementation. New language features in Node...
Read more >How to enable ES6 (and beyond) syntax with Node and Express
TL;DR · Make a new project using express your-project-name terminal command. · Move the bin/ , routes/ and app into a new folder...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @matthewmueller - thanks for the quick response and interest!
As a library maintainer, the risk of not upgrading your ES/node version is that your code will diverge from the rest of the ecosystem - the syntax becomes so different that it’s like writing in a different language. I don’t think too many people are using v0.10 or v0.12 of node these days anyway, so it’s almost a self-imposed limitation! Additionally, end-of-life generally means that that major version will stop receiving security updates.
That being said, I’m happy to target v4 instead of v6 if you’d like to be more conservative with compatibility (v4 and v6 both have similar support for promises, by the way)
So … @blewisio … we’re now targeting LTS (V6) and above. You’ve likely lost interest in this, but if you’re still interested I think we’d be open to it…