fix(connector): two different zod instances being used

* fix(connector): two different zod instances being used leading to error in extension

* chore: add changeset

* fix(wallet): wrong zod version used

* fix: zod version resolution

* chore: add changeset

* fix: pnpm lock file to pass package/wallet build

* Revert "fix: pnpm lock file to pass package/wallet build"

This reverts commit a9455d4216.

* fix(connector): use dependency aliasing to isolate zod version

isolate zod's version of the connector project from other projects so it is not misused elsewhere

* fix(connector): zod imports
This commit is contained in:
Jules
2026-02-04 14:43:41 +09:00
committed by GitHub
parent f32b4ec48e
commit 5975aae28c
18 changed files with 65 additions and 51 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'connector': patch
---
fix(connector): two different zod instances being used leading to errors in extension
+14
View File
@@ -0,0 +1,14 @@
---
'@status-im/status-network': patch
'status.network': patch
'@status-im/js': patch
'status.app': patch
'@status-im/wallet': patch
'connector': patch
'portfolio': patch
'wallet': patch
'api': patch
'hub': patch
---
fix: zod version resolution
+1 -1
View File
@@ -22,7 +22,7 @@
"next": "15.3.8",
"react": "19.1.2",
"react-dom": "19.1.2",
"zod": "^3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
+1 -1
View File
@@ -33,7 +33,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"ts-pattern": "^5.2.0",
"zod": "^3.23.8"
"zod-3-23-8": "npm:zod@3.23.8"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "4.1.1",
+1 -1
View File
@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from 'zod-3-23-8'
/**
* @see https://eips.ethereum.org/EIPS/eip-1193#request-1
+1 -1
View File
@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from 'zod-3-23-8'
import { RequestArguments } from '~lib/request-arguments'
@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from 'zod-3-23-8'
import { RequestArguments } from '~lib/request-arguments'
+1 -1
View File
@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from 'zod-3-23-8'
export const ProxyMessage = z.discriminatedUnion('type', [
z.object({
@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from 'zod-3-23-8'
export const ServiceWorkerMessage = z.discriminatedUnion('type', [
z.object({
+1 -1
View File
@@ -48,7 +48,7 @@
"ts-pattern": "^5.6.2",
"viem": "^2.29.1",
"wagmi": "2.15.2",
"zod": "^3.24.1"
"zod": "3.25.76"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
+1 -1
View File
@@ -115,7 +115,7 @@
"vfile-matter": "^5.0.0",
"viem": "^2.21.1",
"wagmi": "^2.12.8",
"zod": "^3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@1stg/remark-preset": "^2.0.0",
+1 -1
View File
@@ -134,7 +134,7 @@
"type-fest": "^4.18.2",
"unified": "^11.0.5",
"vfile-matter": "^5.0.1",
"zod": "^3.21.4"
"zod": "3.25.76"
},
"devDependencies": {
"@1stg/remark-preset": "^3.0.0",
+1 -1
View File
@@ -34,7 +34,7 @@
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.1",
"ts-pattern": "^5.6.2",
"zod": "^3.24.1"
"zod": "3.25.76"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
+1 -1
View File
@@ -67,7 +67,7 @@
"viem": "^2.44.1",
"vite-plugin-node-polyfills": "^0.23.0",
"wagmi": "^3.3.2",
"zod": "^3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "4.1.1",
+1 -1
View File
@@ -71,7 +71,7 @@
"ethereum-cryptography": "^1.0.3",
"ethers": "^6.15.0",
"multiformats": "^11.0.1",
"zod": "^3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@bufbuild/protoc-gen-es": "2.10.0",
+1 -1
View File
@@ -66,7 +66,7 @@
"next": "15.1.11",
"server-only": "^0.0.1",
"ts-pattern": "^5.3.1",
"zod": "^3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@hookform/devtools": "^4.3.1",
+1 -1
View File
@@ -112,7 +112,7 @@
"react-swipeable": "^7.0.1",
"superjson": "^2.2.1",
"ts-pattern": "^5.3.1",
"zod": "^3.23.8",
"zod": "3.25.76",
"zustand": "^4.3.7"
},
"devDependencies": {
+31 -36
View File
@@ -144,7 +144,7 @@ importers:
specifier: 19.1.2
version: 19.1.2(react@19.1.2)
zod:
specifier: ^3.23.8
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@eslint/eslintrc':
@@ -210,9 +210,9 @@ importers:
ts-pattern:
specifier: ^5.2.0
version: 5.9.0
zod:
specifier: ^3.23.8
version: 3.25.76
zod-3-23-8:
specifier: npm:zod@3.23.8
version: zod@3.23.8
devDependencies:
'@ianvs/prettier-plugin-sort-imports':
specifier: 4.1.1
@@ -371,7 +371,7 @@ importers:
specifier: 2.15.2
version: 2.15.2(@react-native-async-storage/async-storage@1.24.0(react-native@0.83.0(@babel/core@7.28.5)(@types/react@19.1.2)(bufferutil@4.0.9)(react@19.1.2)(utf-8-validate@5.0.10)))(@tanstack/query-core@5.90.12)(@tanstack/react-query@5.90.7(react@19.1.2))(@types/react@19.1.2)(bufferutil@4.0.9)(react@19.1.2)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.39.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)
zod:
specifier: ^3.24.1
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@ianvs/prettier-plugin-sort-imports':
@@ -726,7 +726,7 @@ importers:
specifier: ^2.12.8
version: 2.15.2(@react-native-async-storage/async-storage@1.24.0(react-native@0.83.0(@babel/core@7.28.5)(@types/react@19.1.2)(bufferutil@4.0.9)(react@19.1.2)(utf-8-validate@5.0.10)))(@tanstack/query-core@5.29.0)(@tanstack/react-query@5.29.0(react@19.1.2))(@types/react@19.1.2)(bufferutil@4.0.9)(react@19.1.2)(typescript@5.9.3)(utf-8-validate@5.0.10)(viem@2.39.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(zod@3.25.76)
zod:
specifier: ^3.23.8
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@1stg/remark-preset':
@@ -1318,7 +1318,7 @@ importers:
specifier: ^5.0.1
version: 5.0.1
zod:
specifier: ^3.21.4
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@1stg/remark-preset':
@@ -1673,7 +1673,7 @@ importers:
specifier: ^5.6.2
version: 5.9.0
zod:
specifier: ^3.24.1
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@ianvs/prettier-plugin-sort-imports':
@@ -1848,7 +1848,7 @@ importers:
specifier: ^3.3.2
version: 3.3.2(wkpeo2jixccf754dzrbcslr4sa)
zod:
specifier: ^3.23.8
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@ianvs/prettier-plugin-sort-imports':
@@ -2006,7 +2006,7 @@ importers:
version: 5.9.0
viem:
specifier: ^2.43.1
version: 2.44.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@6.0.3)(zod@4.1.12)
version: 2.44.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@6.0.3)(zod@4.3.6)
zustand:
specifier: ^4.3.7
version: 4.5.7(@types/react@19.1.2)(react@19.1.2)
@@ -2219,7 +2219,7 @@ importers:
specifier: ^11.0.1
version: 11.0.2
zod:
specifier: ^3.23.8
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@bufbuild/protoc-gen-es':
@@ -2268,7 +2268,7 @@ importers:
specifier: ^5.3.1
version: 5.9.0
zod:
specifier: ^3.23.8
specifier: 3.25.76
version: 3.25.76
devDependencies:
'@hookform/devtools':
@@ -2461,7 +2461,7 @@ importers:
specifier: ^5.3.1
version: 5.9.0
zod:
specifier: ^3.23.8
specifier: 3.25.76
version: 3.25.76
zustand:
specifier: ^4.3.7
@@ -10760,7 +10760,6 @@ packages:
'@walletconnect/ethereum-provider@2.21.1':
resolution: {integrity: sha512-SSlIG6QEVxClgl1s0LMk4xr2wg4eT3Zn/Hb81IocyqNSGfXpjtawWxKxiC5/9Z95f1INyBD6MctJbL/R1oBwIw==}
deprecated: 'Reliability and performance improvements. See: https://github.com/WalletConnect/walletconnect-monorepo/releases'
'@walletconnect/events@1.0.1':
resolution: {integrity: sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==}
@@ -10811,11 +10810,9 @@ packages:
'@walletconnect/sign-client@2.21.0':
resolution: {integrity: sha512-z7h+PeLa5Au2R591d/8ZlziE0stJvdzP9jNFzFolf2RG/OiXulgFKum8PrIyXy+Rg2q95U9nRVUF9fWcn78yBA==}
deprecated: 'Reliability and performance improvements. See: https://github.com/WalletConnect/walletconnect-monorepo/releases'
'@walletconnect/sign-client@2.21.1':
resolution: {integrity: sha512-QaXzmPsMnKGV6tc4UcdnQVNOz4zyXgarvdIQibJ4L3EmLat73r5ZVl4c0cCOcoaV7rgM9Wbphgu5E/7jNcd3Zg==}
deprecated: 'Reliability and performance improvements. See: https://github.com/WalletConnect/walletconnect-monorepo/releases'
'@walletconnect/time@1.0.2':
resolution: {integrity: sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==}
@@ -10840,11 +10837,9 @@ packages:
'@walletconnect/universal-provider@2.21.0':
resolution: {integrity: sha512-mtUQvewt+X0VBQay/xOJBvxsB3Xsm1lTwFjZ6WUwSOTR1X+FNb71hSApnV5kbsdDIpYPXeQUbGt2se1n5E5UBg==}
deprecated: 'Reliability and performance improvements. See: https://github.com/WalletConnect/walletconnect-monorepo/releases'
'@walletconnect/universal-provider@2.21.1':
resolution: {integrity: sha512-Wjx9G8gUHVMnYfxtasC9poGm8QMiPCpXpbbLFT+iPoQskDDly8BwueWnqKs4Mx2SdIAWAwuXeZ5ojk5qQOxJJg==}
deprecated: 'Reliability and performance improvements. See: https://github.com/WalletConnect/walletconnect-monorepo/releases'
'@walletconnect/utils@2.19.2':
resolution: {integrity: sha512-VU5CcUF4sZDg8a2/ov29OJzT3KfLuZqJUM0GemW30dlipI5fkpb0VPenZK7TcdLPXc1LN+Q+7eyTqHRoAu/BIA==}
@@ -21141,8 +21136,8 @@ packages:
zod@3.25.76:
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
zod@4.1.12:
resolution: {integrity: sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ==}
zod@4.3.6:
resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}
zustand@4.5.7:
resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}
@@ -22351,7 +22346,7 @@ snapshots:
ts-pattern: 4.3.0
unified: 10.1.2
yaml: 2.8.1
zod: 3.23.8
zod: 3.25.76
transitivePeerDependencies:
- '@effect-ts/otel-node'
- esbuild
@@ -34709,10 +34704,10 @@ snapshots:
typescript: 5.9.3
zod: 3.25.76
abitype@1.2.3(typescript@5.9.3)(zod@4.1.12):
abitype@1.2.3(typescript@5.9.3)(zod@4.3.6):
optionalDependencies:
typescript: 5.9.3
zod: 4.1.12
zod: 4.3.6
abort-controller@3.0.0:
dependencies:
@@ -40029,7 +40024,7 @@ snapshots:
smol-toml: 1.4.2
strip-json-comments: 5.0.2
typescript: 5.9.3
zod: 4.1.12
zod: 4.3.6
ky@1.14.0: {}
@@ -42812,7 +42807,7 @@ snapshots:
transitivePeerDependencies:
- zod
ox@0.11.3(typescript@5.9.3)(zod@4.1.12):
ox@0.11.3(typescript@5.9.3)(zod@4.3.6):
dependencies:
'@adraffy/ens-normalize': 1.11.1
'@noble/ciphers': 1.3.0
@@ -42820,7 +42815,7 @@ snapshots:
'@noble/hashes': 1.8.0
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@4.1.12)
abitype: 1.2.3(typescript@5.9.3)(zod@4.3.6)
eventemitter3: 5.0.1
optionalDependencies:
typescript: 5.9.3
@@ -42871,7 +42866,7 @@ snapshots:
transitivePeerDependencies:
- zod
ox@0.9.6(typescript@5.9.3)(zod@4.1.12):
ox@0.9.6(typescript@5.9.3)(zod@4.3.6):
dependencies:
'@adraffy/ens-normalize': 1.11.1
'@noble/ciphers': 1.3.0
@@ -42879,7 +42874,7 @@ snapshots:
'@noble/hashes': 1.8.0
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@4.1.12)
abitype: 1.2.3(typescript@5.9.3)(zod@4.3.6)
eventemitter3: 5.0.1
optionalDependencies:
typescript: 5.9.3
@@ -43413,9 +43408,9 @@ snapshots:
hono: 4.10.8
idb-keyval: 6.2.2
mipd: 0.0.7(typescript@5.9.3)
ox: 0.9.6(typescript@5.9.3)(zod@4.1.12)
ox: 0.9.6(typescript@5.9.3)(zod@4.3.6)
viem: 2.44.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@6.0.3)(zod@3.25.76)
zod: 4.1.12
zod: 4.3.6
zustand: 5.0.10(@types/react@19.1.2)(react@19.1.2)(use-sync-external-store@1.6.0(react@19.1.2))
optionalDependencies:
'@tanstack/react-query': 5.90.12(react@19.1.2)
@@ -43435,9 +43430,9 @@ snapshots:
hono: 4.10.8
idb-keyval: 6.2.2
mipd: 0.0.7(typescript@5.9.3)
ox: 0.9.6(typescript@5.9.3)(zod@4.1.12)
ox: 0.9.6(typescript@5.9.3)(zod@4.3.6)
viem: 2.44.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)
zod: 4.1.12
zod: 4.3.6
zustand: 5.0.10(@types/react@19.1.2)(react@19.1.2)(use-sync-external-store@1.4.0(react@19.1.2))
optionalDependencies:
'@tanstack/react-query': 5.90.7(react@19.1.2)
@@ -48806,15 +48801,15 @@ snapshots:
- utf-8-validate
- zod
viem@2.44.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@6.0.3)(zod@4.1.12):
viem@2.44.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@6.0.3)(zod@4.3.6):
dependencies:
'@noble/curves': 1.9.1
'@noble/hashes': 1.8.0
'@scure/bip32': 1.7.0
'@scure/bip39': 1.6.0
abitype: 1.2.3(typescript@5.9.3)(zod@4.1.12)
abitype: 1.2.3(typescript@5.9.3)(zod@4.3.6)
isows: 1.0.7(ws@8.18.3(bufferutil@4.0.9)(utf-8-validate@6.0.3))
ox: 0.11.3(typescript@5.9.3)(zod@4.1.12)
ox: 0.11.3(typescript@5.9.3)(zod@4.3.6)
ws: 8.18.3(bufferutil@4.0.9)(utf-8-validate@6.0.3)
optionalDependencies:
typescript: 5.9.3
@@ -49554,7 +49549,7 @@ snapshots:
zod@3.25.76: {}
zod@4.1.12: {}
zod@4.3.6: {}
zustand@4.5.7(@types/react@19.1.2)(react@19.1.2):
dependencies: