Skip to content

fix: replace url-parse with native URL API#4033

Merged
adids1221 merged 1 commit into
masterfrom
fix/remove-url-parse-use-native-url
Jul 19, 2026
Merged

fix: replace url-parse with native URL API#4033
adids1221 merged 1 commit into
masterfrom
fix/remove-url-parse-use-native-url

Conversation

@alexandergolbergwix

@alexandergolbergwix alexandergolbergwix commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the url-parse dependency from react-native-ui-lib and uses the native URL / URLSearchParams APIs in AvatarHelper instead.

  • isGravatarUrl and patchGravatarUrl now use the global URL constructor (no import shadowing)
  • patchGravatarUrl sets d=404 and removes default via searchParams
  • Drops url-parse and @types/url-parse from package manifests and lockfile

This fully resolves the OSV supply-chain issue without needing to bump url-parse (see #4031).

Changelog

AvatarHelper — Removed url-parse dependency; Gravatar URL helpers now use native URL APIs.

Additional info

All existing AvatarHelper tests pass (yarn workspace react-native-ui-lib test AvatarHelper.spec.js).

Remove the url-parse dependency and use the built-in URL and
URLSearchParams APIs in AvatarHelper instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ PR Description Validation Passed

All required sections are properly filled out:

  • Description
  • Changelog
  • Additional info

Your PR is good for review! 🚀


This validation ensures all sections from the PR template are properly filled.

@adids1221 adids1221 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@adids1221
adids1221 merged commit 5110454 into master Jul 19, 2026
4 checks passed
@adids1221
adids1221 deleted the fix/remove-url-parse-use-native-url branch July 19, 2026 14:10
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