Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Revert "url: support path for url.format" #9109

Closed
wants to merge 1 commit into from

Conversation

misterdjules
Copy link

This reverts commit d312b6d.

d312b6d introduced some confusion in
the existing API of url.format and url.parse.

The way the 'path' property overrides other properties in url.format's
input is too confusing for existing users compared to the issues it
fixes.

Fixes such as #9081 have been
proposed, but they do not make the API less confusing.

Instead, this change just reverts the original breaking change so that
it gives us more time after v0.12.0 is released to come up with a better
API for url.format, url.parse and other related APIs in the v0.13
development branch.

Fixes #9070.

Conflicts:
doc/api/url.markdown

This reverts commit d312b6d.

d312b6d introduced some confusion in
the existing API of url.format and url.parse.

The way the 'path' property overrides other properties in url.format's
input is too confusing for existing users compared to the issues it
fixes.

Fixes such as nodejs#9081 have been
proposed, but they do not make the API less confusing.

Instead, this change just reverts the original breaking change so that
it gives us more time after v0.12.0 is released to come up with a better
API for url.format, url.parse and other related APIs in the v0.13
development branch.

Fixes nodejs#9070.

Conflicts:
	doc/api/url.markdown
@misterdjules
Copy link
Author

@chrisdickinson @cjihrig @trevnorris @tjfontaine @jasnell As discussed recently, please let me know what you think!

@misterdjules
Copy link
Author

Also, all tests pass on UNICes and on Windows. The tests haven't run yet on Windows 64 bits, but I don't expect any issue. I'll make sure they all pass on that target too though.

@tjfontaine
Copy link

LGTM

@misterdjules
Copy link
Author

Ok, tests pass on Windows too. Landing asap, thanks!

misterdjules pushed a commit to misterdjules/node that referenced this pull request Jan 29, 2015
This reverts commit d312b6d.

d312b6d introduced some confusion in
the existing API of url.format and url.parse.

The way the 'path' property overrides other properties in url.format's
input is too confusing for existing users compared to the issues it
fixes.

Fixes such as nodejs#9081 have been
proposed, but they do not make the API less confusing.

Instead, this change just reverts the original breaking change so that
it gives us more time after v0.12.0 is released to come up with a better
API for url.format, url.parse and other related APIs in the v0.13
development branch.

Fixes nodejs#9070.

Conflicts:
	doc/api/url.markdown

PR: nodejs#9109
PR-URL: nodejs#9109
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
misterdjules pushed a commit to misterdjules/node that referenced this pull request Jan 29, 2015
This reverts commit d312b6d.

d312b6d introduced some confusion in
the existing API of url.format and url.parse.

The way the 'path' property overrides other properties in url.format's
input is too confusing for existing users compared to the issues it
fixes.

Fixes such as nodejs#9081 have been
proposed, but they do not make the API less confusing.

Instead, this change just reverts the original breaking change so that
it gives us more time after v0.12.0 is released to come up with a better
API for url.format, url.parse and other related APIs in the v0.13
development branch.

Fixes nodejs#9070.

Conflicts:
	doc/api/url.markdown

PR: nodejs#9109
PR-URL: nodejs#9109
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
@misterdjules
Copy link
Author

Landed in 3b392d3.

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

Successfully merging this pull request may close these issues.

4 participants