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

Remove URL import from Node.js types #2

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

sirreal
Copy link
Contributor

@sirreal sirreal commented Jul 1, 2024

URL is available as a global in Node and in the browser.

This package uses the global value, but import the node.js type.

The type declarations should use the same global URL type instead of requiring a Node.js type.

This fixes issues where this package is used in a browser environment: WordPress/gutenberg#62913 (comment)

`URL` is available as a global in Node and in the browser.

This package uses the global value, but import the node.js type.

The type declarations should use the same global URL type instead of requiring a Node.js type.
@strarsis
Copy link
Owner

strarsis commented Jul 1, 2024

Thank you!

@sirreal sirreal deleted the patch-1 branch July 2, 2024 17:02
@sirreal
Copy link
Contributor Author

sirreal commented Jul 2, 2024

Thanks @strarsis. Do you have any idea when will be released to npm?

@strarsis
Copy link
Owner

strarsis commented Jul 2, 2024

@sirreal: Published as v1.4.0.

@sirreal
Copy link
Contributor Author

sirreal commented Jul 3, 2024

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants