Skip to content

Releases: charpeni/react-native-url-polyfill

v2.0.0

13 Jul 23:05
Compare
Choose a tag to compare

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

v1.3.0

04 Mar 14:37
Compare
Choose a tag to compare

v1.2.0

24 Jul 00:36
Compare
Choose a tag to compare

This is a significant release that improved the stability of react-native-url-polyfill by making sure it's working well on older versions of React Native and newer as well. As always, this is backed by Detox tests. 🎉

  • Added Detox tests for React Native 0.62 (#185 by @charpeni).
  • Added support for React Native 0.59, 0.60—probably earlier versions as well—and Detox tests for RN 0.60 (#186 by @charpeni, see #154 for further info, and thanks to @chrisbobbe for reporting it).
  • Added buffer as a dependency of whatwg-url-without-unicode, instead of relying on a global definition (charpeni/whatwg-url#3 and #189 by @chrisbobbe).
  • Added punycode as a dependency of whatwg-url-without-unicode (#200, thanks to @donavon for reporting it in #140).
  • Fixed an incompatibility issue with iOS 10's JavaScript Core (#203 by @charpeni, thanks to @xseignard for reporting it in #190).
  • Added Detox tests for React Native 0.63 (#207 by @charpeni).

Thanks to everyone who reported issues and contributed to it. 👏

v1.1.2

29 May 01:13
Compare
Choose a tag to compare
  • Fixed an incompatibility with Hermes. (See #77).

v1.1.1

10 Feb 17:10
Compare
Choose a tag to compare
  • Updated bundle sizes in the README. (5843f96).

v1.1.0

10 Feb 17:10
Compare
Choose a tag to compare
  • Removed lodash.sortby dependency to save up to 13 KB. (#12, #66).
  • Updated to whatwg-url 8.0.0.

v1.0.0

18 Dec 16:03
Compare
Choose a tag to compare

Initial release.