@worldcoin/minikit-js 1.9.10 → 2.0.0-dev.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.
package/package.json CHANGED
@@ -4,27 +4,26 @@
4
4
  "url": "git+https://github.com/worldcoin/minikit-js.git"
5
5
  },
6
6
  "dependencies": {
7
- "@worldcoin/idkit-core": "^2.0.2",
8
- "abitype": "^1.0.6"
7
+ "abitype": "^1.2.3"
9
8
  },
10
9
  "description": "minikit-js is our SDK for building mini-apps.",
11
10
  "devDependencies": {
12
11
  "@types/jest": "^29.5.14",
13
12
  "@types/node": "^20",
14
- "@types/react": "^17.0.0",
13
+ "@types/react": "^19",
15
14
  "@typescript-eslint/eslint-plugin": "^7.7.0",
16
15
  "@typescript-eslint/parser": "^7.7.0",
16
+ "ethers": "^6.13.5",
17
17
  "jest": "^29.7.0",
18
18
  "prettier": "^3.2.5",
19
19
  "prettier-plugin-sort-imports-desc": "^1.0.0",
20
- "react": "^17.0.0",
20
+ "react": "^19.0.0",
21
21
  "siwe": "^3.0.0",
22
22
  "ts-jest": "^29.2.5",
23
23
  "ts-node": "^10.9.2",
24
24
  "tsup": "^8.0.2",
25
- "ethers": "^6.13.5",
26
25
  "typescript": "^5.4.5",
27
- "viem": "2.23.5"
26
+ "viem": "2.45.3"
28
27
  },
29
28
  "engines": {
30
29
  "node": ">= 16"
@@ -40,6 +39,16 @@
40
39
  "default": "./build/index.cjs"
41
40
  }
42
41
  },
42
+ "./provider": {
43
+ "import": {
44
+ "types": "./build/minikit-provider.d.ts",
45
+ "default": "./build/minikit-provider.js"
46
+ },
47
+ "require": {
48
+ "types": "./build/minikit-provider.d.cts",
49
+ "default": "./build/minikit-provider.cjs"
50
+ }
51
+ },
43
52
  "./minikit-provider": {
44
53
  "import": {
45
54
  "types": "./build/minikit-provider.d.ts",
@@ -49,6 +58,46 @@
49
58
  "types": "./build/minikit-provider.d.cts",
50
59
  "default": "./build/minikit-provider.cjs"
51
60
  }
61
+ },
62
+ "./wagmi": {
63
+ "import": {
64
+ "types": "./build/connector/index.d.ts",
65
+ "default": "./build/connector/index.js"
66
+ },
67
+ "require": {
68
+ "types": "./build/connector/index.d.cts",
69
+ "default": "./build/connector/index.cjs"
70
+ }
71
+ },
72
+ "./commands": {
73
+ "import": {
74
+ "types": "./build/command-exports.d.ts",
75
+ "default": "./build/command-exports.js"
76
+ },
77
+ "require": {
78
+ "types": "./build/command-exports.d.cts",
79
+ "default": "./build/command-exports.cjs"
80
+ }
81
+ },
82
+ "./siwe": {
83
+ "import": {
84
+ "types": "./build/siwe-exports.d.ts",
85
+ "default": "./build/siwe-exports.js"
86
+ },
87
+ "require": {
88
+ "types": "./build/siwe-exports.d.cts",
89
+ "default": "./build/siwe-exports.cjs"
90
+ }
91
+ },
92
+ "./address-book": {
93
+ "import": {
94
+ "types": "./build/address-book.d.ts",
95
+ "default": "./build/address-book.js"
96
+ },
97
+ "require": {
98
+ "types": "./build/address-book.d.cts",
99
+ "default": "./build/address-book.cjs"
100
+ }
52
101
  }
53
102
  },
54
103
  "files": [
@@ -61,15 +110,36 @@
61
110
  "miniapps"
62
111
  ],
63
112
  "license": "MIT",
64
- "main": "index.ts",
113
+ "main": "./build/index.js",
65
114
  "name": "@worldcoin/minikit-js",
66
115
  "peerDependencies": {
67
116
  "react": "^17 || ^18 || ^19",
68
- "viem": "^2.23.5"
117
+ "siwe": "^3.0.0",
118
+ "viem": "^2.21.0",
119
+ "wagmi": "^3.0.0"
120
+ },
121
+ "peerDependenciesMeta": {
122
+ "@worldcoin/idkit-core": {
123
+ "optional": true
124
+ },
125
+ "wagmi": {
126
+ "optional": true
127
+ },
128
+ "siwe": {
129
+ "optional": true
130
+ }
69
131
  },
70
132
  "private": false,
133
+ "scripts": {
134
+ "build": "tsup",
135
+ "dev": "tsup --watch",
136
+ "lint": "prettier --check . --ignore-path ../../.prettierignore",
137
+ "prepublishOnly": "npm run build",
138
+ "test": "jest",
139
+ "type-check": "tsc --noEmit"
140
+ },
71
141
  "type": "module",
72
- "types": "index.ts",
142
+ "types": "./build/index.d.ts",
73
143
  "typesVersions": {
74
144
  "*": {
75
145
  "*": [
@@ -78,12 +148,5 @@
78
148
  ]
79
149
  }
80
150
  },
81
- "version": "1.9.10",
82
- "scripts": {
83
- "build": "tsup",
84
- "dev": "tsup --watch",
85
- "lint": "prettier --check .",
86
- "test": "jest",
87
- "type-check": "tsc --noEmit"
88
- }
89
- }
151
+ "version": "2.0.0-dev.0"
152
+ }