fix(deps): update dependency react-native-url-polyfill to v4 - #999
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.0→^4.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
charpeni/react-native-url-polyfill (react-native-url-polyfill)
v4.0.0Compare Source
v4 replaces the
whatwg-url-without-unicodedependency with a purpose-built, dependency-free implementation of the WHATWG URL Standard.The result is a polyfill that is substantially smaller and faster on Hermes, with stronger standards compliance and test coverage.
65% Smaller
Measured in a production Metro bundle with React Native 0.86.0:
That is 47.52 kB less, a 65.1% reduction in added bundle size.
Faster Than v3 on Hermes
Using the standalone Hermes runtime from React Native 0.81.4, v4 was faster than v3's
whatwg-url-without-unicodeimplementation in every comparable workload.URLSearchParamsparsingURLSearchParamsstringificationURLSearchParamsmanipulationURLSearchParamsmutationsearchParams.append()Most comparable workloads improved by 2.4x to 7.8x.
Faster Than Expo on Hermes
v4 was also faster than Expo's
whatwg-url-minimum@0.1.2implementation in 13 of 14 workloads.URL.canParse()with valid inputURL.parse()URLSearchParamsparsingsearchParams.append()Expo was 1.49x faster in the isolated repeated
URLSearchParams.set()/delete()workload. URL property getters were effectively tied, with v4 measuring 1.04x faster.These benchmarks use the desktop standalone Hermes runtime bundled with React Native 0.81.4. They are useful for comparing implementations under the same runtime, but are not representative of device performance.
More Trustworthy
v4 considerably expands standards and runtime coverage:
URLandURLSearchParams.whatwg-url.The release passes 1,703 tests, including all 28 pinned WPT files and variants. The only documented exceptions require IDNA processing, which remains intentionally excluded to keep the polyfill lightweight.
New API
Added
URL.parse(), which returns a parsedURLornullwhen the input is invalid.Upgrading
The documented
URL,URLSearchParams,setupURLPolyfill(), andreact-native-url-polyfill/autoAPIs remain available.Applications relying on undocumented quirks of the previous
whatwg-url-based implementation should verify their URL handling after upgrading.As before, Unicode/IDNA hostname processing is intentionally unsupported.
What's Changed
URLSearchParamsmutations in #502URLSearchParamsappends in #503URL.canParse()and normalized parsing in #505URLSearchParamsmutations and benchmarks in #506Full Changelog: charpeni/react-native-url-polyfill@v3.0.0...v4.0.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.