@entitlehub/react-native 0.1.9 → 0.1.10

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.10 (2026-09-21)
4
+
5
+ ### Fixed
6
+ - **0.1.9 reported itself as 0.1.8.** The bundled `RN_SDK_VERSION` was not bumped alongside
7
+ `package.json`, so the `X-EntitleHub-Client` header sent on every request attributed all 0.1.9
8
+ traffic to 0.1.8. Nothing in your app behaves differently, but it under-reported adoption of the
9
+ release that fixes the refund path, which is exactly the one worth tracking. Found by the
10
+ StatSnap integration after upgrading.
11
+ - The constant now comes from `package.json` at build time, and a test asserts the built bundle
12
+ carries the published version.
13
+
3
14
  ## 0.1.9 (2026-09-20)
4
15
 
5
16
  ### Fixed
package/dist/index.cjs CHANGED
@@ -44,6 +44,11 @@ __export(index_exports, {
44
44
  });
45
45
  module.exports = __toCommonJS(index_exports);
46
46
  var import_sdk = require("@entitlehub/sdk");
47
+
48
+ // src/version.ts
49
+ var RN_SDK_VERSION = "0.1.10";
50
+
51
+ // src/index.ts
47
52
  var import_sdk2 = require("@entitlehub/sdk");
48
53
  var _iap;
49
54
  async function loadIap() {
@@ -64,7 +69,6 @@ function iap() {
64
69
  if (!_iap) throw new Error("Call configureEntitleHub({ apiKey, appUserId }) before using EntitleHub purchases.");
65
70
  return _iap;
66
71
  }
67
- var RN_SDK_VERSION = "0.1.8";
68
72
  var client;
69
73
  function eh() {
70
74
  if (!client) throw new Error("Call configureEntitleHub({ apiKey, appUserId }) before using EntitleHub.");
package/dist/index.js CHANGED
@@ -1,5 +1,10 @@
1
1
  // src/index.ts
2
2
  import { EntitleHub } from "@entitlehub/sdk";
3
+
4
+ // src/version.ts
5
+ var RN_SDK_VERSION = "0.1.10";
6
+
7
+ // src/index.ts
3
8
  import { isReceiptRevoked } from "@entitlehub/sdk";
4
9
  var _iap;
5
10
  async function loadIap() {
@@ -20,7 +25,6 @@ function iap() {
20
25
  if (!_iap) throw new Error("Call configureEntitleHub({ apiKey, appUserId }) before using EntitleHub purchases.");
21
26
  return _iap;
22
27
  }
23
- var RN_SDK_VERSION = "0.1.8";
24
28
  var client;
25
29
  function eh() {
26
30
  if (!client) throw new Error("Call configureEntitleHub({ apiKey, appUserId }) before using EntitleHub.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entitlehub/react-native",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "EntitleHub for React Native & Expo, one call to purchase and unlock entitlements. Wraps expo-iap for the native store sheet and validates receipts via EntitleHub.",
5
5
  "keywords": [
6
6
  "entitlehub",
@@ -45,7 +45,7 @@
45
45
  ],
46
46
  "sideEffects": false,
47
47
  "scripts": {
48
- "build": "tsup src/index.ts --format esm,cjs --dts --clean",
48
+ "build": "node scripts/gen-version.mjs && tsup src/index.ts --format esm,cjs --dts --clean",
49
49
  "typecheck": "tsc --noEmit",
50
50
  "test": "npm run build && node --test \"test/*.test.mjs\"",
51
51
  "prepublishOnly": "npm run build"