Skip to content

Conversation

@Shaharyar07
Copy link

@Shaharyar07 Shaharyar07 commented Jan 24, 2026

Summary of changes

This PR adds a safe fallback when URL.canParse is not available in the runtime environment.
Some environments (older Node.js / browsers) do not implement URL.canParse, which caused sanitizeUrl to throw a TypeError.

Checklist

  • Added a changelog entry
  • Relevant test coverage
  • Tested and confirmed flows affected by this change are functioning as expected

Authors

@Shaharyar07

List GitHub usernames for everyone who contributed to this pull request.

Reviewers

@braintree/team-sdk-js

@Shaharyar07 Shaharyar07 requested a review from a team as a code owner January 24, 2026 14:56
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.

1 participant