Skip to content

Commit 69b2e18

Browse files
committed
14.4.0
1 parent 53efc83 commit 69b2e18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+8630
-239
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<img src="https://hyochan.github.io/react-native-iap/img/icon.png" alt="React Native IAP Logo" width="150" />
55

66
[![Version](http://img.shields.io/npm/v/react-native-iap.svg?style=flat-square)](https://npmjs.org/package/react-native-iap)
7-
[![Next Version](https://img.shields.io/npm/v/react-native-iap/next)](https://npmjs.org/package/react-native-iap)
87
[![Download](http://img.shields.io/npm/dm/react-native-iap.svg?style=flat-square)](https://npmjs.org/package/react-native-iap)
98
[![Backers and Sponsors](https://img.shields.io/opencollective/all/react-native-iap.svg)](https://opencollective.com/react-native-iap)
109
[![CI - Test](https://github.com/hyochan/react-native-iap/actions/workflows/ci-test.yml/badge.svg)](https://github.com/hyochan/react-native-iap/actions/workflows/ci-test.yml)

docs/blog/2025-09-03-release-14.0.1.md renamed to docs/blog/2025-09-03-release-14.0.0.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
slug: release-14-0-1
3-
title: v14.0.1 - Expo Plugin Fixes
2+
slug: release-14-0-0
3+
title: Release 14.0.0 - Expo Plugin Fixes
44
authors: [hyochan]
55
tags: [release, react-native-iap]
66
date: 2025-09-03
77
---
88

9-
We've just released React Native IAP 14.0.1 with important fixes for Expo plugin and npm publishing. 🛠️
9+
We've just released React Native IAP 14.0.0 with important fixes for Expo plugin and npm publishing. 🛠️
1010

1111
<!-- truncate -->
1212

@@ -27,9 +27,9 @@ Resolved Nitro module registration issues in the example-expo app, making it eas
2727
## Upgrading
2828

2929
```bash
30-
npm install [email protected].1
30+
npm install [email protected].0
3131
# or
32-
32+
3333
```
3434

3535
For the full changelog, see our [GitHub releases](https://github.com/hyochan/react-native-iap/releases).

docs/blog/2025-09-06-release-14.1.0.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: release-14-1-0
3-
title: v14.1.0 - Type System Improvements & API Enhancements
3+
title: Release 14.1.0 - Type System Improvements & API Enhancements
44
authors: [hyochan]
55
tags: [release, react-native-iap, types, api]
66
date: 2025-09-06
@@ -171,6 +171,10 @@ Common fields like `purchaseState` and `isAutoRenewing` provide unified interfac
171171

172172
New enums and return types provide richer information about products and purchases.
173173

174+
## Fixed
175+
176+
- iOS: Fetch missing products from StoreKit when not cached
177+
174178
## Upgrading
175179

176180
```bash

docs/blog/2025-09-08-release-14.1.1.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/blog/2025-09-10-release-14.2.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ tags: [release, ios, android, nitro]
55
date: 2025-09-10
66
---
77

8+
<!-- truncate -->
9+
810
React Native IAP 14.2.0 focuses on stability and smoother integration across iOS and Android.
911

1012
## Highlights
1113

1214
- iOS: Idempotent, non-blocking `initConnection()` with proper failure propagation. Prevents false-positive connected states under rapid navigation.
1315
- iOS: Upgraded OpenIAP to `~> 1.1.8` for StoreKit 2 stability.
16+
- iOS: Upgraded OpenIAP to `~> 1.1.9` ([notes](https://github.com/hyodotdev/openiap-apple/releases/tag/1.1.9))
17+
- iOS: Event‑only purchase flow with error de‑duplication (no double cancel popups)
1418
- Android: Ship consumer R8 keep rules so Nitro `HybridObjects` aren’t stripped in release builds. Apps no longer need manual keeps.
1519
- CI: Use vendored Yarn binary to avoid Corepack network/503 issues.
1620
- Examples: Stabilized Subscription/Purchase flows and improved tests.
21+
- Examples: Guard `finishTransaction` until connected; short delayed retry for reliability
1722

1823
## Details
1924

docs/blog/2025-09-10-release-14.2.1.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/blog/2025-09-12-release-14.2.3.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,62 @@
11
---
22
title: Release 14.3.0
33
authors: [hyochan]
4-
tags: [release, android, ios]
4+
tags: [release, android, ios, plugin, docs, examples, hook, breaking]
55
date: 2025-09-13
66
---
77

8-
Short, focused release centered on Android init behavior and two new JS helpers.
8+
<!-- truncate -->
9+
10+
This release consolidates the 14.3.x patch series with comprehensive improvements across Android, iOS, documentation, examples, and ecosystem alignment.
11+
12+
## Breaking Changes ⚡️
13+
14+
`useIAP` now expects callers to lean on the supplied callbacks instead of the temporary `currentPurchase` helpers.
915

1016
## Added
1117

1218
- `getStorefront()`: returns the current storefront country code.
1319
- `deepLinkToSubscriptions()`: opens the native subscription management UI (Android/iOS).
20+
- Examples: "Manage Subscriptions" buttons in SubscriptionFlow and AvailablePurchases (opens native subscription management cross‑platform)
21+
- Examples: Tap a purchased item to open a details modal
1422

1523
## Changed
1624

25+
### Android & iOS Platform Updates
26+
1727
- Android: migrate to OpenIAP Google 1.1.0; align init and field mapping with spec.
28+
- Upgrade the fallback/config plugin to [openiap-google 1.1.10](https://github.com/hyodotdev/openiap-google/releases/tag/1.1.10) so Android builds pick up the latest Billing configuration fixes.
29+
- Bump the iOS pod to [openiap 1.1.12](https://github.com/hyochan/react-native-iap/releases/tag/1.1.12) and switch native error codes to PascalCase to match the shared TypeScript surface.
30+
31+
### JavaScript & Bridge Improvements
32+
33+
- JS: Treat `requestPurchase`/`requestSubscription` separately, warn in development when the wrong payload is supplied, and drop the legacy `request` fallback.
34+
- JS: Normalize native error codes (including the Android "canceled" spelling) and keep init connection failures suppressed until the store is ready.
35+
- Bridge: Warn when the iOS product type is unrecognized and align Active Subscription expiration fields with the generated schema.
36+
- Removed the `currentPurchase` / `currentPurchaseError` state from `useIAP` and route purchase outcomes through `onPurchaseSuccess` / `onPurchaseError`.
37+
- Trimmed the duplicate-event guard and logs so the hook focuses on forwarding results and refreshing subscription snapshots.
38+
39+
### Documentation & Examples
40+
41+
- Docs: Clarify event‑driven purchase model (requests don't resolve with results); add FAQ about transient iOS success→error timing and simple debounce guidance
42+
- Docs/Examples: Prefer `purchase.id`; continue using `purchaseToken` for server validation
43+
- Examples: Redact sensitive fields in logs and modals (no raw `transactionReceipt` or full `purchaseToken`)
44+
- Docs: Restore installation note and remove a local Docusaurus type shim to avoid duplicate identifiers.
45+
46+
### Nitro & Plugin Enhancements
47+
48+
- Plugin: Re‑add opt‑in `"with-folly-no-couroutines": true` to inject Folly defines in the Podfile.
49+
- GraphQL: Bump to [openiap-gql 1.0.0](https://github.com/hyodotdev/openiap-gql/releases/tag/1.0.0) so the generated schema stays in sync with the published contract.
1850

1951
## Fixed
2052

2153
- Android: address a potential `init` race and improve error propagation.
2254
- iOS: add temporary stubs to keep Nitro/iOS aligned with the JS spec.
55+
- iOS: Sanitize purchase error payload so product identifiers don't appear in `purchaseToken` on error events; keep internal de‑duplication by SKU
56+
- Examples/Tests: Align transaction row with `purchase.id` and update tests
57+
- Fix: Guard HybridObject creation and drop `isRuntimeAlive` usage to prevent CI/Jest issues.
58+
- Restore the explicit `Failed to initialize connection` message when Play Billing rejects `initConnection()` so logs stay actionable.
59+
- Keep receipt validation failures tagged with a helpful prefix even when the underlying exception omits a message.
60+
- Drop the purchase token from acknowledge/consume error payloads to avoid leaking identifiers in client logs.
61+
62+
No breaking changes. Compatible with 14.3.x line.

docs/blog/2025-09-14-release-14.3.1.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/blog/2025-09-15-release-14.3.2.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)