|
1 | 1 | ---
|
2 | 2 | title: Release 14.3.0
|
3 | 3 | authors: [hyochan]
|
4 |
| -tags: [release, android, ios] |
| 4 | +tags: [release, android, ios, plugin, docs, examples, hook, breaking] |
5 | 5 | date: 2025-09-13
|
6 | 6 | ---
|
7 | 7 |
|
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. |
9 | 15 |
|
10 | 16 | ## Added
|
11 | 17 |
|
12 | 18 | - `getStorefront()`: returns the current storefront country code.
|
13 | 19 | - `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 |
14 | 22 |
|
15 | 23 | ## Changed
|
16 | 24 |
|
| 25 | +### Android & iOS Platform Updates |
| 26 | + |
17 | 27 | - 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. |
18 | 50 |
|
19 | 51 | ## Fixed
|
20 | 52 |
|
21 | 53 | - Android: address a potential `init` race and improve error propagation.
|
22 | 54 | - 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. |
0 commit comments