question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update to ES6+ / Node v6+

See original GitHub issue

I’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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
blewisiocommented, Jul 11, 2018

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)

1reaction
lathropdcommented, Jul 15, 2019

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found