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

refactor: drop support for versions below Node.js 6 #125

Merged
merged 1 commit into from
Aug 20, 2019
Merged

refactor: drop support for versions below Node.js 6 #125

merged 1 commit into from
Aug 20, 2019

Conversation

Siilwyn
Copy link
Contributor

@Siilwyn Siilwyn commented Aug 19, 2019

No description provided.

@ehmicky
Copy link
Contributor

ehmicky commented Aug 19, 2019

Thanks @Siilwyn for taking a hit at this!

A couple of notes:

@satazor
Copy link
Contributor

satazor commented Aug 19, 2019

@Siilwyn This looks good!

I think we can remove support for node 6 as well. Its maintenance period ended in April.

Also, can you add a note on the readme saying to install cross-spawn@6 to support older node versions?

.travis.yml Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 19, 2019

Codecov Report

Merging #125 into master will decrease coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #125      +/-   ##
==========================================
- Coverage   98.88%   98.77%   -0.12%     
==========================================
  Files           7        7              
  Lines         180      163      -17     
  Branches       39       33       -6     
==========================================
- Hits          178      161      -17     
  Misses          2        2
Impacted Files Coverage Δ
lib/parse.js 100% <100%> (+3.77%) ⬆️
lib/util/readShebang.js 84.61% <0%> (-15.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48bee1d...fe58a97. Read the comment docs.

@codecov
Copy link

codecov bot commented Aug 19, 2019

Codecov Report

Merging #125 into master will increase coverage by 1.11%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #125      +/-   ##
========================================
+ Coverage   98.88%   100%   +1.11%     
========================================
  Files           7      7              
  Lines         180    160      -20     
  Branches       39     32       -7     
========================================
- Hits          178    160      -18     
+ Misses          2      0       -2
Impacted Files Coverage Δ
lib/util/readShebang.js 100% <100%> (ø) ⬆️
lib/parse.js 100% <100%> (+3.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48bee1d...9cec2a7. Read the comment docs.

@Siilwyn
Copy link
Contributor Author

Siilwyn commented Aug 19, 2019

👍 I've changed to code following your feedback, please take another look!

@satazor
Copy link
Contributor

satazor commented Aug 19, 2019

Looks good! @ehmicky wanna give any final feedback?

@ehmicky
Copy link
Contributor

ehmicky commented Aug 19, 2019

Looks good to me, except one thing: shouldn't Travis run both for node (i.e. latest version) and 8?

@satazor
Copy link
Contributor

satazor commented Aug 19, 2019

You are right, we need to define 8 explicitly in travis.yml.

@satazor
Copy link
Contributor

satazor commented Aug 19, 2019

Also, appveyor.yml needs to be updated accordingly.

@Siilwyn
Copy link
Contributor Author

Siilwyn commented Aug 19, 2019

Thinking about this I would propose to be explicit for all tested versions, this way the CI doesn't suddenly break and it is easy to see which versions are tested. Plus it is easy to compare Travis and AppVeyor. Thoughts?

@satazor satazor merged commit 16feb53 into moxystudio:master Aug 20, 2019
@ehmicky
Copy link
Contributor

ehmicky commented Aug 20, 2019

I think #123 can be closed accordingly.

@Siilwyn Siilwyn deleted the the-future-is-now branch August 20, 2019 09:34
ijjk added a commit to vercel/next.js that referenced this pull request Feb 14, 2023
The PR upgrades `cross-spawn` to `7.0.3`. The precompiled has also been
updated. The `cross-spawn` version is still pinned after the PR.

-----

So I have been working on improving Next.js build performance recently.
One thing that catches my eye is this:

<img width="1751" alt="image"
src="https://user-images.githubusercontent.com/40715044/218383194-5b24c737-0d97-4434-bbbf-ba5752072882.png">

The flamegraph shows the `semver` inside `cross-spawn` is one of the
hottest functions.

Then I take a look at the `cross-spawn`, turns out that `cross-spawn`
has `semver` already removed:
moxystudio/node-cross-spawn#125

According to the CHANGELOG of `cross-spawn`, the only breaking change is
that `cross-spawn@7` is dropping `Node.js < 8` support. So I assume it
would be fine to upgrade `cross-spawn` to the latest version `7.0.3`,
thus eliminating the extra performance overhead introduced by `semver`.

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants