Skip to content

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 18.22.0#1849

Closed
RCGitBot wants to merge 3 commits into
mainfrom
bump-phc/18.22.0
Closed

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 18.22.0#1849
RCGitBot wants to merge 3 commits into
mainfrom
bump-phc/18.22.0

Conversation

@RCGitBot

@RCGitBot RCGitBot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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-common 18.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 / RNPaywalls podspecs 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.json files pin @revenuecat/purchases-js-hybrid-mappings and @revenuecat/purchases-typescript-internal to 18.22.0; yarn.lock also moves @revenuecat/purchases-js 1.47.1 → 1.47.3.

Example app: examples/purchaseTesterTypescript/ios/Podfile.lock reflects 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.

@RCGitBot
RCGitBot requested a review from a team as a code owner July 17, 2026 08:11
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>
@ajpallares

Copy link
Copy Markdown
Member

Closing: new PHC version incoming...

@ajpallares ajpallares closed this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants