Skip to content

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

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.

3 participants