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

core: rename url-shim to url-utils, stop extending global URL #14360

Merged
merged 4 commits into from Sep 7, 2022

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Sep 6, 2022

ref #14353 (comment)

Since URL is now a Node global, we don't have to import it from our utility class to use it anywhere. Removing extends URL from url-shim and changing the fews places where new URL (aka our "shim") was being called was straight forward. The rest of the changes here are dropping some imports (files that only need the global URL) and renames (it's not a shim any more so.... UrlUtils seems fine as a name?)

@connorjclark connorjclark requested a review from a team as a code owner September 6, 2022 23:48
@connorjclark connorjclark requested review from adamraine and removed request for a team September 6, 2022 23:48
core/scripts/gcp-collection/README.md Outdated Show resolved Hide resolved
core/scripts/gcp-collection/gcp-run-on-url.sh Outdated Show resolved Hide resolved
import {Util} from '../util.cjs';
import {LighthouseError} from '../lib/lh-error.js';
import {LighthouseError} from './lh-error.js';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol i didn't make this change, I guess vscode did some house cleaning during the File Rename refactor.

@connorjclark connorjclark changed the title core: rename url-shim to url-utils, stop extending native URL core: rename url-shim to url-utils, stop extending global URL Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants