Skip to content

Commit 3c6f861

Browse files
authored
[sdk] fix pnpm audit failure (#22121)
1 parent 167451e commit 3c6f861

File tree

11 files changed

+6749
-5287
lines changed

11 files changed

+6749
-5287
lines changed

dapps/kiosk/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
"precommit": "pnpm prettier:fix && pnpm lint"
1717
},
1818
"dependencies": {
19-
"@headlessui/react": "^1.7.15",
20-
"@mysten/dapp-kit": "^0.14.44",
19+
"@headlessui/react": "^1.7.19",
20+
"@mysten/dapp-kit": "^0.14.53",
2121
"@mysten/kiosk": "^0.9.34",
2222
"@mysten/sui": "^1.18.0",
23-
"@tanstack/react-query": "^5.50.1",
23+
"@tanstack/react-query": "^5.76.0",
2424
"clsx": "^2.1.1",
2525
"react": "^18.3.1",
2626
"react-dom": "^18.3.1",
27-
"react-hot-toast": "^2.4.1",
28-
"react-router-dom": "^6.24.1"
27+
"react-hot-toast": "^2.5.2",
28+
"react-router-dom": "^6.30.0"
2929
},
3030
"devDependencies": {
3131
"@headlessui/tailwindcss": "^0.1.3",
3232
"@types/react": "^18.3.3",
3333
"@types/react-dom": "^18.3.0",
34-
"@vitejs/plugin-react": "^4.3.1",
35-
"autoprefixer": "^10.4.19",
36-
"postcss": "^8.4.39",
37-
"tailwindcss": "^3.4.4",
34+
"@vitejs/plugin-react": "^4.4.1",
35+
"autoprefixer": "^10.4.21",
36+
"postcss": "^8.5.3",
37+
"tailwindcss": "^3.4.17",
3838
"typescript": "^5.5.3",
3939
"vite": "^5.3.3"
4040
}

dapps/multisig-toolkit/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,44 @@
1616
"shadcnui": "pnpm dlx shadcn-ui@latest"
1717
},
1818
"dependencies": {
19-
"@fontsource-variable/inter": "^5.0.19",
20-
"@fontsource-variable/red-hat-mono": "^5.0.19",
21-
"@hookform/resolvers": "^3.9.0",
19+
"@fontsource-variable/inter": "^5.2.5",
20+
"@fontsource-variable/red-hat-mono": "^5.2.5",
21+
"@hookform/resolvers": "^3.10.0",
2222
"@markdoc/markdoc": "^0.4.0",
23-
"@mysten/dapp-kit": "^0.14.44",
23+
"@mysten/dapp-kit": "^0.14.53",
2424
"@mysten/sui": "^1.18.0",
25-
"@noble/hashes": "^1.4.0",
26-
"@radix-ui/react-dialog": "^1.1.1",
27-
"@radix-ui/react-label": "^2.1.0",
28-
"@radix-ui/react-navigation-menu": "^1.2.0",
29-
"@radix-ui/react-popover": "^1.1.1",
30-
"@radix-ui/react-slot": "^1.1.0",
31-
"@radix-ui/react-tabs": "^1.1.0",
32-
"@tanstack/react-query": "^5.50.1",
25+
"@noble/hashes": "^1.8.0",
26+
"@radix-ui/react-dialog": "^1.1.13",
27+
"@radix-ui/react-label": "^2.1.6",
28+
"@radix-ui/react-navigation-menu": "^1.2.12",
29+
"@radix-ui/react-popover": "^1.1.13",
30+
"@radix-ui/react-slot": "^1.2.2",
31+
"@radix-ui/react-tabs": "^1.1.11",
32+
"@tanstack/react-query": "^5.76.0",
3333
"add": "^2.0.6",
34-
"class-variance-authority": "^0.7.0",
34+
"class-variance-authority": "^0.7.1",
3535
"clsx": "^2.1.1",
36-
"cmdk": "^1.0.0",
36+
"cmdk": "^1.1.1",
3737
"lucide-react": "^0.406.0",
3838
"react": "^18.3.1",
3939
"react-dom": "^18.3.1",
40-
"react-hook-form": "^7.52.1",
41-
"react-hot-toast": "^2.4.1",
42-
"react-router-dom": "^6.24.1",
40+
"react-hook-form": "^7.56.3",
41+
"react-hot-toast": "^2.5.2",
42+
"react-router-dom": "^6.30.0",
4343
"react-scrollspy-navigation": "^2.0.6",
44-
"tailwind-merge": "^2.4.0",
45-
"zod": "^3.23.8"
44+
"tailwind-merge": "^2.6.0",
45+
"zod": "^3.24.4"
4646
},
4747
"devDependencies": {
48-
"@tailwindcss/forms": "^0.5.7",
48+
"@tailwindcss/forms": "^0.5.10",
4949
"@tsconfig/docusaurus": "^2.0.3",
5050
"@types/node": "^20.14.10",
5151
"@types/react": "^18.3.3",
5252
"@types/react-dom": "^18.3.0",
53-
"@vitejs/plugin-react": "^4.3.1",
54-
"autoprefixer": "^10.4.19",
55-
"postcss": "^8.4.39",
56-
"tailwindcss": "^3.4.4",
53+
"@vitejs/plugin-react": "^4.4.1",
54+
"autoprefixer": "^10.4.21",
55+
"postcss": "^8.5.3",
56+
"tailwindcss": "^3.4.17",
5757
"tailwindcss-animate": "^1.0.7",
5858
"typescript": "^5.5.3",
5959
"vite": "^5.3.3",

dapps/sponsored-transactions/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix"
1515
},
1616
"dependencies": {
17-
"@tanstack/react-query": "^5.50.1",
17+
"@tanstack/react-query": "^5.76.0",
1818
"react": "^18.3.1",
1919
"react-dom": "^18.3.1"
2020
},
2121
"devDependencies": {
22-
"@mysten/dapp-kit": "^0.14.44",
22+
"@mysten/dapp-kit": "^0.14.53",
2323
"@mysten/sui": "^1.18.0",
2424
"@types/react": "^18.3.3",
2525
"@types/react-dom": "^18.3.0",
26-
"@vitejs/plugin-react": "^4.3.1",
27-
"autoprefixer": "^10.4.19",
28-
"postcss": "^8.4.39",
29-
"tailwindcss": "^3.4.4",
26+
"@vitejs/plugin-react": "^4.4.1",
27+
"autoprefixer": "^10.4.21",
28+
"postcss": "^8.5.3",
29+
"tailwindcss": "^3.4.17",
3030
"typescript": "^5.5.3",
3131
"vite": "^5.3.3"
3232
}

examples/tic-tac-toe/ui/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@
1111
"preview": "vite preview"
1212
},
1313
"dependencies": {
14-
"@mysten/dapp-kit": "^0.14.44",
14+
"@mysten/dapp-kit": "^0.14.53",
1515
"@mysten/sui": "^1.18.0",
1616
"@radix-ui/colors": "^3.0.0",
17-
"@radix-ui/react-icons": "^1.3.0",
18-
"@radix-ui/themes": "^3.1.1",
19-
"@tanstack/react-query": "^5.50.1",
17+
"@radix-ui/react-icons": "^1.3.2",
18+
"@radix-ui/themes": "^3.2.1",
19+
"@tanstack/react-query": "^5.76.0",
2020
"react": "^18.3.1",
2121
"react-dom": "^18.3.1",
22-
"react-hot-toast": "^2.4.1"
22+
"react-hot-toast": "^2.5.2"
2323
},
2424
"devDependencies": {
25-
"@tanstack/react-query-devtools": "^5.0.0",
25+
"@tanstack/react-query-devtools": "^5.76.0",
2626
"@types/react": "^18.3.3",
2727
"@types/react-dom": "^18.3.0",
2828
"@typescript-eslint/eslint-plugin": "^6.1.0",
2929
"@typescript-eslint/parser": "^6.1.0",
30-
"@vitejs/plugin-react-swc": "^3.7.0",
30+
"@vitejs/plugin-react-swc": "^3.9.0",
3131
"eslint": "^8.45.0",
3232
"eslint-plugin-react-hooks": "^4.6.2",
33-
"eslint-plugin-react-refresh": "^0.4.7",
33+
"eslint-plugin-react-refresh": "^0.4.20",
3434
"prettier": "^3.3.2",
3535
"typescript": "^5.5.3",
3636
"vite": "^5.3.3",

examples/tic-tac-toe/ui/src/components/NewMultiSigGame.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function NewMultiSigGame(): ReactElement {
2424
const { address, publicKey: bytes } = useCurrentAccount() || {};
2525
const [opponent, setOpponent] = useState<PublicKey | null>(null);
2626

27-
const publicKey = bytes && publicKeyFromRawBytes("ED25519", bytes);
27+
const publicKey = bytes && publicKeyFromRawBytes("ED25519", new Uint8Array(bytes));
2828
const hasPlayer = publicKey != null;
2929
const hasOpponent = opponent != null;
3030

@@ -50,7 +50,10 @@ export function NewMultiSigGame(): ReactElement {
5050

5151
return (
5252
<>
53-
<ComputedField value={bytes && toBase64(bytes)} label="Your public key" />
53+
<ComputedField
54+
value={bytes && toBase64(new Uint8Array(bytes))}
55+
label="Your public key"
56+
/>
5457
<ComputedField value={address} label="Your address" />
5558
<TextField.Root
5659
size="2"

examples/tic-tac-toe/ui/src/hooks/useTrophyQuery.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export function useTrophyQuery(game?: Game): [UseTrophyQueryResponse, Invalidate
4242
const { results } = await client.devInspectTransactionBlock({
4343
// It doesn't matter who's sending this query.
4444
sender: normalizeSuiAddress("0x0"),
45+
// Fails with Transaction type version mismatch
46+
// @ts-ignore
4547
transactionBlock: tx.ended(game!!),
4648
});
4749

examples/tic-tac-toe/ui/src/mutations/useExecutor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export function useExecutor({ execute }: { execute?: ExecuteCallback } = {}): Ex
5151
const mutate: Executor = ({ tx, ...options }, then) => {
5252
signAndExecute(
5353
{
54+
// Fails with Transaction type version mismatch
55+
// @ts-ignore
5456
transaction: tx,
5557
},
5658
{

examples/trading/frontend/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@
1717
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix"
1818
},
1919
"dependencies": {
20-
"@mysten/dapp-kit": "^0.14.44",
20+
"@mysten/dapp-kit": "^0.14.53",
2121
"@mysten/sui": "^1.18.0",
2222
"@radix-ui/colors": "^3.0.0",
23-
"@radix-ui/react-icons": "^1.3.0",
24-
"@radix-ui/themes": "^3.1.1",
25-
"@tanstack/react-query": "^5.50.1",
23+
"@radix-ui/react-icons": "^1.3.2",
24+
"@radix-ui/themes": "^3.2.1",
25+
"@tanstack/react-query": "^5.76.0",
2626
"react": "^18.3.1",
2727
"react-dom": "^18.3.1",
28-
"react-hot-toast": "^2.4.1",
29-
"react-router-dom": "^6.24.1"
28+
"react-hot-toast": "^2.5.2",
29+
"react-router-dom": "^6.30.0"
3030
},
3131
"devDependencies": {
3232
"@types/react": "^18.3.3",
3333
"@types/react-dom": "^18.3.0",
3434
"@typescript-eslint/eslint-plugin": "^6.1.0",
3535
"@typescript-eslint/parser": "^6.1.0",
36-
"@vitejs/plugin-react-swc": "^3.7.0",
37-
"autoprefixer": "^10.4.19",
36+
"@vitejs/plugin-react-swc": "^3.9.0",
37+
"autoprefixer": "^10.4.21",
3838
"eslint": "^8.45.0",
3939
"eslint-plugin-react-hooks": "^4.6.2",
40-
"eslint-plugin-react-refresh": "^0.4.7",
41-
"postcss": "^8.4.39",
40+
"eslint-plugin-react-refresh": "^0.4.20",
41+
"postcss": "^8.5.3",
4242
"prettier": "^3.3.2",
43-
"tailwindcss": "^3.4.4",
43+
"tailwindcss": "^3.4.17",
4444
"typescript": "^5.5.3",
4545
"vite": "^5.3.3"
4646
}

examples/usdc-transfer-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"author": "",
1111
"license": "Apache 2.0",
1212
"dependencies": {
13-
"@mysten/dapp-kit": "^0.14.44",
13+
"@mysten/dapp-kit": "^0.14.53",
1414
"@mysten/sui": "^1.18.0",
15-
"@tanstack/react-query": "^5.50.1",
16-
"parcel": "^2.12.0",
15+
"@tanstack/react-query": "^5.76.0",
16+
"parcel": "^2.15.0",
1717
"react": "^18.3.1",
1818
"react-dom": "^18.3.1"
1919
},

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"semver@<7.5.2": ">=7.5.2",
2424
"postcss@<8.4.31": ">=8.4.31",
2525
"dompurify@>=3.0.0 <3.1.3": ">=3.1.3",
26-
"cross-spawn@5.1.0": "7.0.5"
26+
"cross-spawn@5.1.0": "7.0.5",
27+
"base-x@=5.0.0": ">=5.0.1"
2728
}
2829
},
2930
"engines": {
@@ -36,28 +37,28 @@
3637
]
3738
},
3839
"devDependencies": {
39-
"@changesets/cli": "^2.27.7",
40-
"@ianvs/prettier-plugin-sort-imports": "^4.3.0",
40+
"@changesets/cli": "^2.29.4",
41+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
4142
"@manypkg/cli": "^0.21.4",
42-
"@tanstack/eslint-plugin-query": "^5.50.1",
43+
"@tanstack/eslint-plugin-query": "^5.74.7",
4344
"@typescript-eslint/eslint-plugin": "^6.1.0",
4445
"@typescript-eslint/parser": "^6.1.0",
4546
"concurrently": "^8.2.2",
4647
"eslint": "^8.45.0",
47-
"eslint-config-prettier": "^8.8.0",
48+
"eslint-config-prettier": "^8.10.0",
4849
"eslint-config-react-app": "^7.0.1",
49-
"eslint-import-resolver-typescript": "^3.6.1",
50+
"eslint-import-resolver-typescript": "^3.10.1",
5051
"eslint-plugin-header": "^3.1.1",
51-
"eslint-plugin-import": "^2.29.1",
52-
"eslint-plugin-prettier": "^5.1.3",
52+
"eslint-plugin-import": "^2.31.0",
53+
"eslint-plugin-prettier": "^5.4.0",
5354
"eslint-plugin-require-extensions": "^0.1.3",
5455
"eslint-plugin-tsdoc": "^0.2.17",
55-
"eslint-plugin-unused-imports": "^3.0.0",
56-
"graphql-config": "^5.0.3",
56+
"eslint-plugin-unused-imports": "^3.2.0",
57+
"graphql-config": "^5.1.5",
5758
"prettier": "^3.3.2",
58-
"prettier-plugin-tailwindcss": "^0.6.5",
59-
"tsx": "^4.16.2",
60-
"turbo": "^2.0.6",
59+
"prettier-plugin-tailwindcss": "^0.6.11",
60+
"tsx": "^4.19.4",
61+
"turbo": "^2.5.3",
6162
"typescript": "^5.5.3"
6263
},
6364
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195"

0 commit comments

Comments
 (0)