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

doc: remove superfluous URL require statement #20364

Conversation

MarkTiedemann
Copy link
Contributor

Since v10.0.0, the URL class is available on the global object, so
using a require statement to access it is no longer necessary.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. url Issues and PRs related to the legacy built-in url module. labels Apr 27, 2018
@MarkTiedemann MarkTiedemann changed the title doc: remove superflous URL require statement doc: remove superfluous URL require statement Apr 27, 2018
@addaleax addaleax added the fast-track PRs that do not need to wait for 48 hours to land. label Apr 27, 2018
@addaleax
Copy link
Member

addaleax commented Apr 27, 2018

I think this can be fast-tracked, please 👍 if you agree.

CI lite: https://ci.nodejs.org/job/node-test-commit-lite/786/ (edit: green)

@MarkTiedemann
Copy link
Contributor Author

Just noticed I misspelled "superfluous" in the commit message. May I ask: What is the recommended way of fixing this?

@addaleax
Copy link
Member

@MarkTiedemann You can either try to change the commit message yourself (running git commit --amend && git push --force-with-lease on the branch for this PR should do the trick), or just make sure that whoever merges this takes care of it, because we’re going to modify the commit message anyway as part of our regular merging process.

Since v10.0.0, the `URL` class is available on the global object, so
using a `require` statement to access it is no longer necessary.
@MarkTiedemann MarkTiedemann force-pushed the doc-remove-superflous-url-require branch from 53b0a37 to 707b5c9 Compare April 27, 2018 17:41
@MarkTiedemann
Copy link
Contributor Author

@addaleax Thank you for the help! I fixed the typo and pushed with --force-with-lease. :)

@addaleax addaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 27, 2018
@addaleax
Copy link
Member

Landed in 6c6f313

@addaleax addaleax closed this Apr 27, 2018
addaleax pushed a commit that referenced this pull request Apr 27, 2018
Since v10.0.0, the `URL` class is available on the global object, so
using a `require` statement to access it is no longer necessary.

PR-URL: #20364
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
MylesBorins pushed a commit that referenced this pull request May 4, 2018
Since v10.0.0, the `URL` class is available on the global object, so
using a `require` statement to access it is no longer necessary.

PR-URL: #20364
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
@MylesBorins MylesBorins mentioned this pull request May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. fast-track PRs that do not need to wait for 48 hours to land. url Issues and PRs related to the legacy built-in url module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants