feat: add support for Node 17#7710
feat: add support for Node 17#7710marvinroger wants to merge 16 commits intoparse-community:alphafrom
Conversation
Thanks for opening this pull request!
|
c4d30cb to
217c526
Compare
Codecov Report
@@ Coverage Diff @@
## alpha #7710 +/- ##
==========================================
- Coverage 93.98% 93.95% -0.03%
==========================================
Files 183 183
Lines 13655 13655
==========================================
- Hits 12833 12830 -3
- Misses 822 825 +3
Continue to review full report at Codecov.
|
|
Should be good @mtrezza |
|
@marvinroger kindly let me know when this is ready for review |
|
@mtrezza This is ready for review, and all relevant tests pass. |
|
@davimacedo do you see any issue replacing If we make a change like this: -options.serverURL = `http://localhost:${options.port}${options.mountPath}`;
+options.serverURL = `http://127.0.0.1:${options.port}${options.mountPath}`;
|
|
@mtrezza sorry for the delay. I'm ok in replacing |
|
We may create an issue here if we require developers to not use I understand from the previous comments that If we set |
|
No, if you set |
|
I may have misread your previous comment, apologies. If setting In 217c526 this option is only added to the test helper, but I think with the change in |
|
Closing in favor of #7896 Thanks for the investigation @marvinroger, after some more investigation I'll continue in #7896 with only setting the setDefaultResultOrder. That seems to be the most sustainable change. |
New Pull Request Checklist
Issue Description
Related issue: #7708
Approach
Every test was failing, because (
dns.lookupon Node.17 does not prioritize IPv4 addresses anymore), so reaching for example MongoDB onlocalhostresulted in aconnect ECONNREFUSED ::1error, because Mongo is not listening on the IPv6 interface.I fixed it by manually overriding the resolution order in
helper.jsin tests.TODOs before merging