Skip to content

Commit 783d844

Browse files
committed
update dependencies (#4874)
<!-- start pr-codex --> ## PR-Codex overview This PR focuses on updating various dependencies across multiple packages, ensuring compatibility and incorporating improvements. ### Detailed summary - Updated `turbo` from `2.1.2` to `2.1.3`. - Updated `@types/react` from `^18.3.8` to `^18.3.10`. - Updated `tailwindcss` from `3.4.12` to `3.4.13`. - Updated `@walletconnect/react-native-compat` from `2.13.2` to `2.16.3`. - Updated `@coinbase/wallet-sdk` from `4.0.4` to `4.1.0`. - Updated `viem` from `2.21.12` to `2.21.16`. - Various other dependency updates across multiple packages. > The following files were skipped due to too many changes: `pnpm-lock.yaml` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 687a733 commit 783d844

File tree

10 files changed

+2348
-3554
lines changed

10 files changed

+2348
-3554
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@thirdweb-dev/react-native-adapter": patch
3+
"thirdweb": patch
4+
---
5+
6+
update dependencies

apps/dashboard/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@radix-ui/react-slot": "^1.1.0",
4646
"@radix-ui/react-switch": "^1.1.0",
4747
"@radix-ui/react-tooltip": "1.1.2",
48-
"@sentry/nextjs": "8.30.0",
48+
"@sentry/nextjs": "8.32.0",
4949
"@shazow/whatsabi": "^0.14.1",
5050
"@stripe/react-stripe-js": "^2.7.3",
5151
"@stripe/stripe-js": "^3.5.0",
@@ -61,7 +61,7 @@
6161
"compare-versions": "^6.1.0",
6262
"date-fns": "^3.6.0",
6363
"flat": "^6.0.1",
64-
"framer-motion": "11.5.6",
64+
"framer-motion": "11.9.0",
6565
"fuse.js": "7.0.0",
6666
"ioredis": "^5.4.1",
6767
"ipaddr.js": "^2.2.0",
@@ -109,21 +109,21 @@
109109
"@next/bundle-analyzer": "14.2.13",
110110
"@next/eslint-plugin-next": "14.2.13",
111111
"@playwright/test": "1.47.2",
112-
"@storybook/addon-essentials": "8.3.2",
112+
"@storybook/addon-essentials": "8.3.4",
113113
"@storybook/addon-interactions": "8.3.4",
114-
"@storybook/addon-links": "8.3.2",
115-
"@storybook/addon-onboarding": "8.3.2",
116-
"@storybook/addon-viewport": "8.3.2",
114+
"@storybook/addon-links": "8.3.4",
115+
"@storybook/addon-onboarding": "8.3.4",
116+
"@storybook/addon-viewport": "8.3.4",
117117
"@storybook/blocks": "8.3.4",
118-
"@storybook/nextjs": "8.3.2",
118+
"@storybook/nextjs": "8.3.4",
119119
"@storybook/react": "8.3.4",
120-
"@storybook/test": "8.3.2",
120+
"@storybook/test": "8.3.4",
121121
"@types/color": "^3.0.6",
122122
"@types/node": "20.14.9",
123123
"@types/papaparse": "^5.3.14",
124124
"@types/pluralize": "^0.0.33",
125125
"@types/qrcode": "^1.5.5",
126-
"@types/react": "^18.3.8",
126+
"@types/react": "^18.3.10",
127127
"@types/react-dom": "^18",
128128
"@types/react-table": "^7.7.20",
129129
"@types/spdx-correct": "^3.1.3",
@@ -136,11 +136,11 @@
136136
"eslint-config-biome": "1.8.4",
137137
"eslint-plugin-react-compiler": "0.0.0-experimental-ca16900-20240916",
138138
"eslint-plugin-storybook": "^0.9.0",
139-
"knip": "^5.30.5",
139+
"knip": "^5.30.6",
140140
"next-sitemap": "^4.2.3",
141141
"postcss": "8.4.47",
142-
"storybook": "8.3.2",
143-
"tailwindcss": "3.4.12",
142+
"storybook": "8.3.4",
143+
"tailwindcss": "3.4.13",
144144
"typescript": "5.6.2"
145145
}
146146
}

apps/playground-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
},
4444
"devDependencies": {
4545
"@types/node": "20.14.9",
46-
"@types/react": "^18.3.8",
46+
"@types/react": "^18.3.10",
4747
"@types/react-dom": "^18",
4848
"eslint": "8.57.0",
4949
"eslint-config-next": "14.2.13",
5050
"eslint-plugin-react-compiler": "0.0.0-experimental-ca16900-20240916",
5151
"postcss": "8.4.47",
52-
"tailwindcss": "3.4.12",
52+
"tailwindcss": "3.4.13",
5353
"tailwindcss-animate": "^1.0.7",
5454
"typescript": "5.6.2"
5555
}

apps/portal/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@types/flexsearch": "^0.7.6",
5858
"@types/mdx": "^2.0.13",
5959
"@types/node": "20.14.9",
60-
"@types/react": "^18.3.8",
60+
"@types/react": "^18.3.10",
6161
"@types/react-dom": "^18",
6262
"@types/react-html-parser": "^2.0.6",
6363
"@types/tryghost__content-api": "^1.3.16",
@@ -72,7 +72,7 @@
7272
"eslint-plugin-tailwindcss": "^3.15.1",
7373
"next-sitemap": "^4.2.3",
7474
"postcss": "8.4.47",
75-
"tailwindcss": "3.4.12",
75+
"tailwindcss": "3.4.13",
7676
"tsx": "^4.19.1",
7777
"typescript": "5.6.2"
7878
}

apps/wallet-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
},
3737
"devDependencies": {
3838
"@types/node": "20.14.9",
39-
"@types/react": "^18.3.8",
39+
"@types/react": "^18.3.10",
4040
"@types/react-dom": "^18",
4141
"eslint": "8.57.0",
4242
"eslint-config-next": "14.2.13",
4343
"postcss": "8.4.47",
44-
"tailwindcss": "3.4.12",
44+
"tailwindcss": "3.4.13",
4545
"typescript": "5.6.2"
4646
}
4747
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@manypkg/cli": "0.21.4",
4747
"@manypkg/get-packages": "2.2.2",
4848
"@types/node": "20.14.9",
49-
"turbo": "2.1.2",
49+
"turbo": "2.1.3",
5050
"typescript": "5.6.2"
5151
},
5252
"manypkg": {

packages/react-native-adapter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
],
3030
"dependencies": {
3131
"@aws-sdk/client-lambda": "3.659.0",
32-
"@aws-sdk/credential-providers": "3.654.0",
32+
"@aws-sdk/credential-providers": "3.658.1",
3333
"@mobile-wallet-protocol/client": "0.0.3",
34-
"@walletconnect/react-native-compat": "2.13.2"
34+
"@walletconnect/react-native-compat": "2.16.3"
3535
},
3636
"devDependencies": {
3737
"rimraf": "6.0.1"

packages/thirdweb/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"!tsconfig.build.json"
200200
],
201201
"dependencies": {
202-
"@coinbase/wallet-sdk": "4.0.4",
202+
"@coinbase/wallet-sdk": "4.1.0",
203203
"@emotion/react": "11.13.3",
204204
"@emotion/styled": "11.13.0",
205205
"@google/model-viewer": "2.1.1",
@@ -211,14 +211,14 @@
211211
"@radix-ui/react-icons": "1.3.0",
212212
"@radix-ui/react-tooltip": "1.1.2",
213213
"@tanstack/react-query": "5.56.2",
214-
"@walletconnect/ethereum-provider": "2.16.2",
214+
"@walletconnect/ethereum-provider": "2.16.3",
215215
"@walletconnect/sign-client": "2.16.3",
216216
"abitype": "1.0.5",
217217
"fuse.js": "7.0.0",
218218
"input-otp": "^1.2.4",
219219
"mipd": "0.0.7",
220220
"uqr": "0.1.2",
221-
"viem": "2.21.12"
221+
"viem": "2.21.16"
222222
},
223223
"peerDependencies": {
224224
"@aws-sdk/client-lambda": "^3",
@@ -316,28 +316,28 @@
316316
},
317317
"devDependencies": {
318318
"@aws-sdk/client-lambda": "3.659.0",
319-
"@aws-sdk/credential-providers": "3.654.0",
319+
"@aws-sdk/credential-providers": "3.658.1",
320320
"@biomejs/biome": "1.9.2",
321321
"@chromatic-com/storybook": "2.0.2",
322322
"@codspeed/vitest-plugin": "3.1.1",
323323
"@coinbase/wallet-mobile-sdk": "1.1.2",
324324
"@mobile-wallet-protocol/client": "0.0.3",
325325
"@react-native-async-storage/async-storage": "1.24.0",
326-
"@size-limit/preset-big-lib": "11.1.5",
327-
"@storybook/addon-essentials": "8.3.2",
326+
"@size-limit/preset-big-lib": "11.1.6",
327+
"@storybook/addon-essentials": "8.3.4",
328328
"@storybook/addon-interactions": "8.3.4",
329-
"@storybook/addon-links": "8.3.2",
330-
"@storybook/addon-onboarding": "8.3.2",
329+
"@storybook/addon-links": "8.3.4",
330+
"@storybook/addon-onboarding": "8.3.4",
331331
"@storybook/react": "8.3.4",
332332
"@storybook/react-vite": "8.3.4",
333-
"@storybook/test": "8.3.2",
333+
"@storybook/test": "8.3.4",
334334
"@testing-library/jest-dom": "^6.4.7",
335335
"@testing-library/react": "^16.0.0",
336336
"@testing-library/user-event": "^14.5.2",
337337
"@types/cross-spawn": "^6.0.6",
338-
"@types/react": "^18.3.8",
338+
"@types/react": "^18.3.10",
339339
"@viem/anvil": "0.0.10",
340-
"@vitejs/plugin-react": "^4.3.1",
340+
"@vitejs/plugin-react": "^4.3.2",
341341
"@vitest/coverage-v8": "2.1.1",
342342
"@vitest/ui": "2.1.1",
343343
"cross-spawn": "7.0.3",
@@ -347,7 +347,7 @@
347347
"expo-linking": "6.3.1",
348348
"expo-web-browser": "13.0.3",
349349
"happy-dom": "^15.7.4",
350-
"knip": "^5.30.5",
350+
"knip": "^5.30.6",
351351
"msw": "^2.4.9",
352352
"prettier": "^3.3.2",
353353
"react": "18.3.1",
@@ -358,11 +358,11 @@
358358
"react-native-svg": "15.7.1",
359359
"rimraf": "6.0.1",
360360
"sharp": "^0.33.5",
361-
"size-limit": "11.1.5",
362-
"storybook": "8.3.2",
361+
"size-limit": "11.1.6",
362+
"storybook": "8.3.4",
363363
"typedoc": "0.26.7",
364364
"typescript": "5.6.2",
365-
"vite": "5.4.7",
365+
"vite": "5.4.8",
366366
"vitest": "2.1.1"
367367
}
368368
}

packages/thirdweb/src/wallets/coinbase/coinbaseWebSDK.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Address } from "abitype";
33
import {
44
type SignTypedDataParameters,
55
getTypesForEIP712Domain,
6+
isHex,
67
serializeTypedData,
78
validateTypedData,
89
} from "viem";
@@ -314,10 +315,14 @@ function createAccount(provider: ProviderInterface, _address: string) {
314315
return message.raw;
315316
})();
316317

317-
return await provider.request({
318+
const res = await provider.request({
318319
method: "personal_sign",
319320
params: [messageToSign, account.address],
320321
});
322+
if (!isHex(res)) {
323+
throw new Error("Invalid signature returned");
324+
}
325+
return res;
321326
},
322327
async signTypedData(_typedData) {
323328
if (!account.address) {
@@ -343,10 +348,14 @@ function createAccount(provider: ProviderInterface, _address: string) {
343348
types,
344349
});
345350

346-
return await provider.request({
351+
const res = await provider.request({
347352
method: "eth_signTypedData_v4",
348353
params: [account.address, stringifiedData],
349354
});
355+
if (!isHex(res)) {
356+
throw new Error("Invalid signed payload returned");
357+
}
358+
return res;
350359
},
351360
onTransactionRequested: async () => {
352361
// make sure to show the coinbase popup BEFORE doing any transaction preprocessing

0 commit comments

Comments
 (0)