unstale

npm / react-native-url-polyfill

react-native-url-polyfill

What changed in react-native-url-polyfill 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

2 breaking2 new APIs and options1 performance1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

react-native-url-polyfill 43 changes

Breaking changes 1

  • The purpose-built implementation has stronger standards compliance; applications relying on undocumented quirks of the previous implementation should verify their URL handling.

    4.0.0release notes

New APIs and options 1

  • Adds URL.parse(), which returns a parsed URL or null when the input is invalid.

    4.0.0release notes

Performance 1

  • The polyfill is substantially smaller and faster on Hermes, reducing added bundle size by 65.1% compared with v3.0.0.

    4.0.0release notes

react-native-url-polyfill 32 changes

New APIs and options 1

  • Implements URL.canParse() so developers can check whether a value can be parsed as a URL.

    3.0.0release notes

Fixes and other changes 1

  • Updates BlobModule usage to support latest versions.

    3.0.0release notes

react-native-url-polyfill 21 changes

Breaking changes 1

  • The auto entry point no longer applies the polyfill on web; use setupURLPolyfill directly if you still want to apply it there.

    2.0.0release notes