Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to requiring Node 6 when LTS #449

Closed
brendankenny opened this issue Jun 17, 2016 · 9 comments · Fixed by #1519
Closed

move to requiring Node 6 when LTS #449

brendankenny opened this issue Jun 17, 2016 · 9 comments · Fixed by #1519

Comments

@brendankenny
Copy link
Member

brendankenny commented Jun 17, 2016

With the release of 6.2.2, I think it may be time.

  • Node 6 will be the next LTS version (skipping 5)
  • it will give us a few more es6 features like
    • default parameters (avoiding the || defaultValue dance and especially eliminating the verbose cases of checking a value that may be falsy since default parameters always check against undefined)
    • rest parameters (allowing us to avoid noise like this and this)
    • Array.prototype.includes
    • destructuring (which I'm a bit wary of because every person I've seen use it quickly starts abusing readability for the sake of cool destructuring, but there's no way up but through :)
  • there are no notable language changes in the pipeline for Node 7 (sorry **), which means lighthouse devs can use node 6+ and any language feature used will be compatible with a node 6 baseline (modulo performance improvements). This has been a problem in a few PRs in the past, where someone running node 6 has to rewrite when their change breaks in testing on node 5. Only caveat here is async/await, which has enough demand that we may need to upgrade when that's turned on.
  • I assume the new DevTools debugging? Is this going to be in 6 or skip to 7?
@wardpeet
Copy link
Collaborator

wardpeet commented Jun 20, 2016

maybe add a .nvmrc file as well for the nvm users while helping out :)

@addyosmani
Copy link
Member

I assume the new DevTools debugging? Is this going to be in 6 or skip to 7?

I believe this is being skipped to 7

@paulirish
Copy link
Member

I don't think we need to be in a rush here. A few folks who want to use Lighthouse are on v4 still, and v5 is a challenge for them.

Once LTS ships in october, we'll be in a better place for this sort of upgrade. But until then, I'm in favor of staying with 5.

@brendankenny
Copy link
Member Author

I'd be ok waiting on 6 until it hits LTS

@wardpeet
Copy link
Collaborator

@brendankenny @paulirish we have hit lts for node 6, should we move on?

@wardpeet
Copy link
Collaborator

wardpeet commented Dec 2, 2016

i'll close this, we will move whenever we are ready :)

@wardpeet wardpeet closed this as completed Dec 2, 2016
@brendankenny
Copy link
Member Author

resurrecting this issue. I think we're ready to drop anything before v6.9. We don't want to go tooooo crazy with new features, but dropping older versions from Travis, dropping $__node_harmony, etc can proceed.

@brendankenny brendankenny reopened this Jan 24, 2017
@brendankenny
Copy link
Member Author

@XhmikosR hopefully this makes your life much easier :)

@XhmikosR
Copy link
Contributor

XhmikosR commented Jan 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants