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

SDK: Fallback to url-parse if URL is not available #800

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

lukasz-zimnoch
Copy link
Member

In some environments (e.g. Cloudflare Workers), the URL component cannot be resolved altogether. It is neither available as nodejs url module nor as browser's window.URL object. To handle this extreme case, we are adding a last resort fallback to url-parse.

In some environments (e.g. Cloudflare Workers), the `URL` component
cannot be resolved altogether. It is neither available as nodejs `url`
module nor as browser's `window.URL` object. To handle this extreme
case, we are adding a last resort fallback to `url-parse`.
@lukasz-zimnoch lukasz-zimnoch self-assigned this Mar 20, 2024
@lukasz-zimnoch lukasz-zimnoch added the 🔌 typescript TypeScript library label Mar 20, 2024
@lukasz-zimnoch lukasz-zimnoch added this to the typescript/v2.4.0 milestone Mar 20, 2024
@tomaszslabon tomaszslabon merged commit fd88dd9 into main Mar 20, 2024
37 of 38 checks passed
@tomaszslabon tomaszslabon deleted the fallback-url branch March 20, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌 typescript TypeScript library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants