yarn react-native-url-polyfill 2.0.0
v2.0.0

10 months ago

Highlights

⚠️ It was released as a major version because it contains significant changes, but we don't expect any breaking changes. The upgrade should be seamless.

Official support for Expo & web.

We're now testing react-native-url-polyfill against latest versions of Expo to prevent any issues.

Also, previously, relying on react-native-url-polyfill/auto would also apply the polyfill if executed on the web (e.g., via react-native-web). Starting from now, react-native-url-polyfill/auto won't apply on the web platform and will be a no-op. If you would like to still apply it on web, you'll need to rely on setupPolyfill directly as such:

import { setupURLPolyfill } from 'react-native-url-polyfill';

setupURLPolyfill();

Moving away from React Native's internals

To better support different versions of React Native and web usages, we moved away from using polyfillGlobal, which is part of React Native's internals. Instead, we use globalThis. See #373 and #413.

What's Changed

New Contributors

Full Changelog: v1.3.0...v2.0.0

Don't miss a new react-native-url-polyfill release

NewReleases is sending notifications on new releases.