-
Notifications
You must be signed in to change notification settings - Fork 30k
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
url: make path in resolveObject the same as parse #11395
Conversation
/cc @mscdex |
Added semver-major because of the change in output. I don't have an opinion way or the other on the actual change. |
@watilde ... can you rebase this? |
url.resolveObject should not add `/` automatically to have a compatibility with url.parse if provided value doesn't have any path.
e23d50e
to
128ef4e
Compare
@jasnell done! |
Does anyone have an opinion on this change? @nodejs/collaborators |
Maybe @TimothyGu or @joyeecheung might have an opinion? |
I'm not convinced the added value justifies breaking apps in the wild. In the very list I'd like to see a citgm run here. |
ping @mscdex |
+1 on a CITGM run...so:
(The citgm-smoker is all-red now so I am not sure if we need to launch another one against master for comparison?) |
None of the failures in the CITGM run should be related to this PR, they also show up in the other runs. |
We still have a chance to put this into |
Now I think this is a very small thing, and we can look back at here when it's needed. I'm going to close this. Thanks for your all comments anyway :) |
url.resolveObject
should not add/
automatically to have a compatibility withurl.parse
if provided value doesn't have any path.I've also added a test for it. It increases the coverage of url.js,
and it will cover these lines:
node/lib/url.js
Lines 830 to 842 in e4e7cd5
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
url, test