@onesub/server 0.6.4 → 0.7.0

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 +9 -0
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -6,6 +6,15 @@ Express middleware for Apple StoreKit 2 + Google Play Billing receipt validation
6
6
  npm install @onesub/server
7
7
  ```
8
8
 
9
+ ## Requirements
10
+
11
+ - Node.js **>= 20**
12
+ - **Express** as a peer dependency — `^4.17.0 || ^5.0.0`. Install in your app:
13
+ ```bash
14
+ npm install @onesub/server express
15
+ ```
16
+ - PostgreSQL **12+** (optional, for production stores)
17
+
9
18
  ## Quick start
10
19
 
11
20
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesub/server",
3
- "version": "0.6.4",
3
+ "version": "0.7.0",
4
4
  "description": "Server-side receipt validation middleware for react-native-iap. Apple StoreKit 2 + Google Play Billing. One line.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,11 +42,11 @@
42
42
  "license": "MIT",
43
43
  "dependencies": {
44
44
  "@onesub/shared": "0.3.2",
45
- "express": "^5.2.1",
46
45
  "jose": "^6.2.2",
47
- "zod": "^3.23.0"
46
+ "zod": "^4.3.6"
48
47
  },
49
48
  "peerDependencies": {
49
+ "express": "^4.17.0 || ^5.0.0",
50
50
  "pg": ">=8.0.0"
51
51
  },
52
52
  "peerDependenciesMeta": {
@@ -58,6 +58,7 @@
58
58
  "@types/express": "^5.0.6",
59
59
  "@types/node": "^20.17.0",
60
60
  "@types/pg": "^8.20.0",
61
+ "express": "^5.2.1",
61
62
  "typescript": "^5.7.0"
62
63
  },
63
64
  "engines": {