[AUTOMATIC BUMP] Updates purchases-hybrid-common to 18.22.0#1849
Closed
RCGitBot wants to merge 3 commits into
Closed
[AUTOMATIC BUMP] Updates purchases-hybrid-common to 18.22.0#1849RCGitBot wants to merge 3 commits into
RCGitBot wants to merge 3 commits into
Conversation
ajpallares
approved these changes
Jul 17, 2026
3 tasks
ajpallares
added a commit
to RevenueCat/purchases-hybrid-common
that referenced
this pull request
Jul 17, 2026
…lds (#1755) ### Description Reverts #1748. purchases-js 1.47.3 bundles purchases-ui-js 4.8.6, whose `web_view` host loader added a bare dynamic `import(<variable>)`. Metro's `collectDependencies` rejects a non-static `import()` at build time with no escape hatch, so React Native/Expo **Release** builds that bundle `@revenuecat/purchases-js-hybrid-mappings` fail with `TransformError: Invalid call ... import(...)` (surfaced in RevenueCat/react-native-purchases#1849). Pinning back to 1.47.2 (ui-js 4.8.4) removes the construct: verified the rebuilt `dist/index.js` and `dist/index.umd.js` contain zero `import(` calls, and all 54 mapping tests pass. Interim mitigation while the root cause is fixed upstream in RevenueCat/purchases-ui-js#346. ### Checklist - [x] Description of what and why - [x] Related PRs linked (#1748, RevenueCat/purchases-ui-js#346, RevenueCat/react-native-purchases#1849) - [x] Covered by existing unit tests <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Dependency-only downgrade with no application source changes; main risk is missing fixes from 1.47.3 until the upstream Metro issue is resolved. > > **Overview** > **Reverts the `@revenuecat/purchases-js` bump from 1.47.3 to 1.47.2** in `purchases-js-hybrid-mappings` (and the matching `yarn.lock` entry). > > 1.47.3 pulls in purchases-ui-js 4.8.6, whose `web_view` loader uses a non-static dynamic `import()`, which Metro rejects when bundling this package for React Native/Expo release builds. Pinning 1.47.2 restores a dependency tree without that pattern until upstream fixes it. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0118ecf. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Cursor <cursoragent@cursor.com>
Member
|
Closing: new PHC version incoming... |
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 is an automatic bump.
Updates purchases-hybrid-common to 18.22.0
Note
Medium Risk
Purchase and subscription behavior can change via upstream native and JS SDKs even though this PR only updates dependency versions; smoke-test purchase, restore, and paywalls on iOS and Android.
Overview
Automatic dependency bump from
purchases-hybrid-common18.21.0 to 18.22.0 across the monorepo. No React Native bridge or TypeScript API changes in this repo—only version pins and lockfiles.Native: iOS
RNPurchases/RNPaywallspodspecs and Android Gradle (purchases-hybrid-common,purchases-hybrid-common-ui,purchases-hybrid-common-store-galaxy) now require 18.22.0.JS: Root and workspace
package.jsonfiles pin@revenuecat/purchases-js-hybrid-mappingsand@revenuecat/purchases-typescript-internalto 18.22.0;yarn.lockalso moves@revenuecat/purchases-js1.47.1 → 1.47.3.Example app:
examples/purchaseTesterTypescript/ios/Podfile.lockreflects RevenueCat / RevenueCatUI 5.81.0 (from 5.80.3) and updated pod checksums.Reviewed by Cursor Bugbot for commit 3c565ff. Bugbot is set up for automated code reviews on this repo. Configure here.