@mpgd/capacitor-storekit 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 +13 -8
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -111,14 +111,19 @@ default) so the gateway serves the `commerce.v2.*` and v1 `commerce.*`
111
111
  bridge methods from it and exposes it as `gateway.commerceV2`.
112
112
 
113
113
  Finishing never grants. The v2 SDK finishes any transaction it is given a
114
- `ledgerEntryId` for: the commerce v2 reconciler is the gate, and it calls
115
- `finishTransaction` only after the backend ledger granted the purchase. The
116
- v1 `finishGrantedTransaction` allow-list guard is not reproduced; the real
117
- control stays server-side, in the verifier that checks the JWS before the
118
- ledger grant, and in the native plugin never granting anything on finish.
119
- The v1 recovery helpers (`recoverStoreKitPurchases`,
120
- `getRecoverableTransactions`, `finishGrantedTransaction`) are deprecated in
121
- favor of the single reconciler (RFC C1) and are removed in C4.
114
+ `ledgerEntryId` for: the commerce v2 reconciler
115
+ (`createCommerceReconciler` in `@mpgd/game-services`) is the gate, and it
116
+ calls `finishTransaction` only for a journal record in `granted` or
117
+ `finishing` that holds the ledger entry id the backend grant wrote
118
+ (`assertCommerceFinishAllowed`). The v1 `finishGrantedTransaction`
119
+ allow-list guard is not reproduced in the SDK: the journal revision the grant
120
+ wrote is the pairing, and the real control stays server-side, in the verifier
121
+ that checks the JWS before the ledger grant, and in the native plugin never
122
+ granting anything on finish. The v1 recovery helpers
123
+ (`recoverStoreKitPurchases`, `getRecoverableTransactions`,
124
+ `finishGrantedTransaction`) are deprecated in favor of that reconciler (RFC
125
+ C1) and are removed in C4; `src/commerce-reconciler-storekit-smoke.test.ts`
126
+ shows both paths reaching the same outcomes over the fake plugin.
122
127
 
123
128
  The conformance test runs every store vector whose profile the App Store
124
129
  supports against a fake plugin, directly and through the gateway bridge path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/capacitor-storekit",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Opt-in StoreKit 2 one-time purchase collector and commerce v2 provider for mpgd Capacitor games.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,18 +38,18 @@
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",
47
47
  "ttsc": "0.30.4",
48
48
  "typescript": "7.0.2",
49
- "@mpgd/adapter-capacitor": "0.9.1",
50
- "@mpgd/bridge": "0.12.2",
51
- "@mpgd/game-services": "0.21.1",
52
- "@mpgd/platform": "0.21.0"
49
+ "@mpgd/adapter-capacitor": "0.9.2",
50
+ "@mpgd/bridge": "0.12.3",
51
+ "@mpgd/platform": "0.22.0",
52
+ "@mpgd/game-services": "0.22.0"
53
53
  },
54
54
  "main": "./dist/index.js",
55
55
  "types": "./dist/index.d.ts",
@@ -59,6 +59,6 @@
59
59
  "scripts": {
60
60
  "check": "ttsc --noEmit",
61
61
  "lint": "ttsc --noEmit",
62
- "test": "cd ../.. && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/provider.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/store-sdk.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-provider.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-provider.conformance.test.ts"
62
+ "test": "cd ../.. && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/provider.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/store-sdk.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-provider.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-provider.conformance.test.ts && node tools/run-ttsx.mjs --project native-plugins/capacitor-storekit/tsconfig.json native-plugins/capacitor-storekit/src/commerce-reconciler-storekit-smoke.test.ts"
63
63
  }
64
64
  }