Skip to content

Bumps minimum node engine to 8+ #4474

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

Merged
merged 10 commits into from
May 18, 2018
Merged

Bumps minimum node engine to 8+ #4474

merged 10 commits into from
May 18, 2018

Conversation

flovilmart
Copy link
Contributor

  • Adds package-lock
  • Adds .nvmrc in order to select proper node version
  • Keep deployment / transpilation to node 6

@flovilmart flovilmart requested a review from dplewis December 30, 2017 19:06
.travis.yml Outdated
matrix:
- MONGODB_VERSION=3.2.13
- MONGODB_VERSION=3.4.4
- PARSE_SERVER_TEST_DB=postgres
- PARSE_SERVER_TEST_CACHE=redis
- NODE_VERSION=8.7
- NODE_VERSION=9.3.0
Copy link
Contributor

@vitaly-t vitaly-t Dec 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Node 9.x versions thus far are a complete unusable crap, because their distribution comes with the version of NPM that doesn't work right with Node 9.x. Hopefully, Node 9.4 will finally fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be fine, as the tests are passing. The goal of that line is to make sure it’s all forward compatible

@vitaly-t
Copy link
Contributor

vitaly-t commented Dec 30, 2017

Why not move entirely into Node 8.x?

If we did, we could replace all the promises stuff with async/await 😉

@flovilmart
Copy link
Contributor Author

Because steps by steps, and with async await, you’ll probably need to re introduce Babel regenerator to target back 6.x as of today.

What you mention is purely a full rewrite that has no direct benefits, and I’m not willing to just do reviews for the next 3 weeks about small refractors. For now, it’s a no go.

As for the why node 8, the push adapter leveraging node-apn will require it for http2 in a foreseeable future, as the package is in alpha now. I’m against bumping a min engine version just for the sake of bumping it and rewrites for the sake of using a ‘nicer’ api.

Writing code twice don’t make it more maintainable :)

@flovilmart flovilmart requested a review from marvelm January 24, 2018 19:41
@codecov
Copy link

codecov bot commented Jan 24, 2018

Codecov Report

Merging #4474 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4474      +/-   ##
==========================================
+ Coverage   92.65%   92.67%   +0.02%     
==========================================
  Files         119      119              
  Lines        8659     8659              
==========================================
+ Hits         8023     8025       +2     
+ Misses        636      634       -2
Impacted Files Coverage Δ
src/Routers/PushRouter.js 92.85% <0%> (-3.58%) ⬇️
src/RestWrite.js 93.79% <0%> (+0.54%) ⬆️

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 95550f4...5697da9. Read the comment docs.

@flovilmart flovilmart changed the title Use node 8 as development environment Bumps minimum node engine to 8+ May 18, 2018
@flovilmart
Copy link
Contributor Author

@dplewis I updated it all, we could use that as a baseline, or on a side branch. what do you think?

@dplewis
Copy link
Member

dplewis commented May 18, 2018

As for the why node 8, the push adapter leveraging node-apn will require it for http2 in a foreseeable future, as the package is in alpha now. I’m against bumping a min engine version just for the sake of bumping it...

I agree with you and I would like to see if there are any performance increase in production.

Do you see any issues using this as a baseline?

@flovilmart
Copy link
Contributor Author

@dplewis I bumped it , the comment was from december :)

@dplewis
Copy link
Member

dplewis commented May 18, 2018

@flovilmart Oops sorry. I keep forgetting Node ages faster than milk.

@flovilmart
Copy link
Contributor Author

What do you think? It's reasonable I believe as 6 is not supported anymore.

@dplewis
Copy link
Member

dplewis commented May 18, 2018

I think this is reasonable. Lets do it.

@flovilmart flovilmart merged commit a619119 into master May 18, 2018
@flovilmart flovilmart deleted the node-8 branch May 18, 2018 19:49
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* Use node 8 as development environment

* fixup! Use node 8 as development environment

* bump node to 8.10

* Targets node 8 for everything

* Run npm install so lock file is up to date

* Use push adapter v3

* Deflake a test on ParseUser

* Adds slight delay after logout

* Ensure we wait even if call fails

* Use node carbon
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