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

url: move originFor, domainToAscii and domainToUnicode #10512

Closed
wants to merge 1 commit into from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Dec 28, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

url

Description of change

Move non-standard methods from the new experimental URL implementation
to url module instead of exposing as static methods on the URL object.

@jasnell jasnell added the url Issues and PRs related to the legacy built-in url module. label Dec 28, 2016
@domenic
Copy link
Contributor

domenic commented Dec 29, 2016

It's still unclear to me why originFor exists, instead of just using new URL(string).origin? I see, it returns the non-serialized version, OK. Could be useful I guess.

@jasnell
Copy link
Member Author

jasnell commented Dec 29, 2016

Yeah, returning the non-serialized version is precisely the point. Still, I consider it to still be speculative as a public API.

@jasnell
Copy link
Member Author

jasnell commented Dec 30, 2016

Rebased and updated

@jasnell
Copy link
Member Author

jasnell commented Dec 30, 2016

@jasnell
Copy link
Member Author

jasnell commented Dec 30, 2016

Failures in freebsd are unrelated

@Trott
Copy link
Member

Trott commented Dec 30, 2016

Cleaned up some stale processes on a FreeBSD host in CI. Let's try FreeBSD CI again: https://ci.nodejs.org/job/node-test-commit-freebsd/6141/

Move non-standard methods to `url` module instead of exposing as
static methods on the `URL` object.
jasnell added a commit that referenced this pull request Dec 30, 2016
Move non-standard methods to `url` module instead of exposing as
static methods on the `URL` object.

PR-URL: #10512
Reviewed-By: Italo A. Casas <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@jasnell
Copy link
Member Author

jasnell commented Dec 30, 2016

Landed in abc1633

@jasnell jasnell closed this Dec 30, 2016
evanlucas pushed a commit that referenced this pull request Jan 3, 2017
Move non-standard methods to `url` module instead of exposing as
static methods on the `URL` object.

PR-URL: #10512
Reviewed-By: Italo A. Casas <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
evanlucas pushed a commit that referenced this pull request Jan 4, 2017
Move non-standard methods to `url` module instead of exposing as
static methods on the `URL` object.

PR-URL: #10512
Reviewed-By: Italo A. Casas <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@joyeecheung joyeecheung added the whatwg-url Issues and PRs related to the WHATWG URL implementation. label Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
url Issues and PRs related to the legacy built-in url module. whatwg-url Issues and PRs related to the WHATWG URL implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants