@mpgd/capacitor-play-billing 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -132,9 +132,13 @@ into an `accountBinding` resolver returning `{ kind: 'obfuscated-account-id',
132
132
  value }`, rename `id`/`storeId`/`type` to `logicalId`/`storeSku`/`kind`
133
133
  (`non_consumable` becomes `durable`) and `offerToken` to `offerId`, and stop
134
134
  calling `recoverOwnedPlayPurchases`: it is deprecated in favour of the single
135
- reconciler landing in `@mpgd/game-services` (PR C1), which reads
136
- `getAvailablePurchases` and `purchaseUpdated` from `gateway.commerceV2`. The
137
- backend contract is unchanged, since the evidence payload is the same.
135
+ reconciler in `@mpgd/game-services` (`createCommerceReconciler`, behind
136
+ `createGameServicesClient` and `monetizationRecovery.reconcile()` whenever
137
+ `gateway.commerceV2` exists), which reads `getAvailablePurchases` and
138
+ `purchaseUpdated` from the provider and verifies each purchase under the same
139
+ `play-token-sha256` key. The backend contract is unchanged, since the
140
+ evidence payload is the same; `src/commerce-reconciler-play-smoke.test.ts`
141
+ shows both paths reaching the same outcomes over the fake plugin.
138
142
 
139
143
  ## v1 provider
140
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/capacitor-play-billing",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Opt-in Android Google Play Billing purchase collector for mpgd Capacitor games.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,9 +38,9 @@
38
38
  ],
39
39
  "peerDependencies": {
40
40
  "@capacitor/core": "^8.5.1",
41
- "@mpgd/adapter-capacitor": "^0.9.1",
42
- "@mpgd/bridge": "^0.12.2",
43
- "@mpgd/platform": "^0.21.0"
41
+ "@mpgd/adapter-capacitor": "^0.9.2",
42
+ "@mpgd/bridge": "^0.12.3",
43
+ "@mpgd/platform": "^0.22.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@capacitor/core": "8.5.2",
@@ -48,10 +48,10 @@
48
48
  "ttsc": "0.30.4",
49
49
  "typescript": "7.0.2",
50
50
  "vitest": "^4.0.0",
51
- "@mpgd/adapter-capacitor": "0.9.1",
52
- "@mpgd/bridge": "0.12.2",
53
- "@mpgd/game-services": "0.21.1",
54
- "@mpgd/platform": "0.21.0"
51
+ "@mpgd/adapter-capacitor": "0.9.2",
52
+ "@mpgd/bridge": "0.12.3",
53
+ "@mpgd/game-services": "0.22.0",
54
+ "@mpgd/platform": "0.22.0"
55
55
  },
56
56
  "main": "./dist/index.js",
57
57
  "types": "./dist/index.d.ts",