Skip to content

Commit 21a6156

Browse files
Merge pull request #440 from BootNodeDev/chore/update-high-risk-deps
chore: update high-risk dependencies
2 parents b682be0 + 8387f3d commit 21a6156

19 files changed

Lines changed: 1645 additions & 1547 deletions

File tree

package.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"@vercel/analytics": "^2.0.1",
4141
"@web3icons/core": "^4.0.13",
4242
"@web3icons/react": "^4.0.13",
43+
"buffer": "^6.0.3",
4344
"connectkit": "^1.9.2",
4445
"graphql": "^16.13.2",
4546
"graphql-request": "^7.1.2",
@@ -53,25 +54,25 @@
5354
"use-debounce": "^10.1.1",
5455
"viem": "^2.47.6",
5556
"wagmi": "^2.17.5",
56-
"zod": "^3.24.4"
57+
"zod": "^4"
5758
},
5859
"devDependencies": {
5960
"@biomejs/biome": "2.4.10",
6061
"@commitlint/cli": "^20.5.0",
6162
"@commitlint/config-conventional": "^20.5.0",
62-
"@graphql-codegen/cli": "^5.0.6",
63+
"@graphql-codegen/cli": "^6",
6364
"@graphql-typed-document-node/core": "^3.2.0",
6465
"@parcel/watcher": "^2.5.1",
6566
"@tanstack/react-query-devtools": "^5.96.1",
67+
"@tanstack/react-router-devtools": "^1.166.11",
6668
"@tanstack/router-cli": "^1.166.25",
67-
"@tanstack/router-devtools": "^1.166.11",
6869
"@tanstack/router-plugin": "^1.167.12",
6970
"@testing-library/jest-dom": "^6.6.3",
7071
"@testing-library/react": "^16.3.0",
7172
"@testing-library/user-event": "^14.6.1",
7273
"@types/react": "^19.1.3",
7374
"@types/react-dom": "^19.1.3",
74-
"@vitejs/plugin-react-swc": "^4.3.0",
75+
"@vitejs/plugin-react": "^6.0.1",
7576
"@vitest/coverage-v8": "^4.1.2",
7677
"@wagmi/cli": "^2.3.1",
7778
"change-case": "^5.4.4",
@@ -84,12 +85,16 @@
8485
"typedoc-plugin-inline-sources": "^1.3.0",
8586
"typedoc-plugin-missing-exports": "^4.0.0",
8687
"typedoc-plugin-rename-defaults": "^0.7.3",
87-
"typescript": "^5.8.3",
88-
"vite": "^6.3.5",
88+
"typescript": "^6",
89+
"vite": "^8",
8990
"vite-plugin-sitemap": "^0.8.2",
90-
"vite-tsconfig-paths": "^6.1.1",
9191
"vitest": "^4.1.2",
9292
"vocs": "1.4.1"
9393
},
94-
"packageManager": "pnpm@10.33.0"
94+
"packageManager": "pnpm@10.33.0",
95+
"pnpm": {
96+
"overrides": {
97+
"@graphql-codegen/cli": "^6"
98+
}
99+
}
95100
}

pnpm-lock.yaml

Lines changed: 1570 additions & 1488 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/pageComponents/home/Examples/demos/TransactionButton/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const TransactionButton = () => {
1818

1919
return (
2020
<WalletStatusVerifier chainId={sepolia.id}>
21+
{/* biome-ignore lint/complexity/noUselessFragments: WalletStatusVerifier expects a single ReactElement child */}
2122
<>
2223
<OptionsDropdown items={items} />
2324
<Flex

src/components/sharedComponents/Avatar.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
import { Box } from '@chakra-ui/react'
22
import type { ComponentProps, FC } from 'react'
3-
import Jazzicon, { jsNumberForAddress } from 'react-jazzicon'
3+
// react-jazzicon is CJS with __esModule. Vite 8's pre-bundler wraps it as
4+
// `export default module.exports`, so the default import is the module.exports
5+
// object, not the component. Node.js/Vitest gives the component directly.
6+
import _Jazzicon, { jsNumberForAddress as _jsNFA } from 'react-jazzicon'
7+
8+
// Vite 8 pre-bundler wraps CJS __esModule packages as `export default module.exports`,
9+
// so the default import may be the module.exports object instead of exports.default.
10+
type CJSModule = Record<string, unknown>
11+
const _mod = _Jazzicon as unknown as CJSModule
12+
const Jazzicon: typeof _Jazzicon =
13+
typeof _Jazzicon === 'function' ? _Jazzicon : (_mod.default as typeof _Jazzicon)
14+
const jsNumberForAddress: typeof _jsNFA =
15+
typeof _jsNFA === 'function' ? _jsNFA : (_mod.jsNumberForAddress as typeof _jsNFA)
416

517
interface AvatarProps extends ComponentProps<'div'> {
618
address: string

src/components/sharedComponents/TokenSelect/TopTokens/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const TopTokens: FC<TopTokensProps> = ({ onTokenSelect, tokens, ...restProps })
4444
<Item
4545
key={`token_${token?.address}`}
4646
onClick={() => onTokenSelect(token)}
47-
// biome-ignore lint/style/noNonNullAssertion: <explanation>
47+
// biome-ignore lint/style/noNonNullAssertion: token is defined when rendered via filter above
4848
token={token!}
4949
/>
5050
))}

src/components/sharedComponents/dev/TanStackRouterDevtools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { lazy, Suspense } from 'react'
33
const RouterDevtoolsBase = import.meta.env.PROD
44
? () => null
55
: lazy(() =>
6-
import('@tanstack/router-devtools').then((res) => ({
6+
import('@tanstack/react-router-devtools').then((res) => ({
77
default: res.TanStackRouterDevtools,
88
})),
99
)

src/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const zBoolean = z
66
.enum(['true', 'false'])
77
.transform((value) => value === 'true')
88
.optional()
9-
.default('true')
9+
.default(true)
1010

1111
/**
1212
* Represents the environment configuration object.

src/hooks/useTokens.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const useTokens = (
9494

9595
const dAppChainsId = chainId
9696
? [chainId]
97-
: Object.keys(tokensData.tokensByChainId).map((id) => Number.parseInt(id))
97+
: Object.keys(tokensData.tokensByChainId).map((id) => Number.parseInt(id, 10))
9898
const lifiChainsId = chains?.map((chain) => chain.id) ?? []
9999
const chainsToFetch = dAppChainsId.filter((id) => lifiChainsId.includes(id))
100100

@@ -111,11 +111,11 @@ export const useTokens = (
111111
queryKey: ['lifi', 'tokens', 'balances', account, chainsToFetch],
112112
queryFn: () =>
113113
getTokenBalances(
114-
// biome-ignore lint/style/noNonNullAssertion: <explanation>
114+
// biome-ignore lint/style/noNonNullAssertion: guarded by enabled: canFetchBalance && !!tokensPricesByChain
115115
account!,
116-
// biome-ignore lint/style/noNonNullAssertion: <explanation>
116+
// biome-ignore lint/style/noNonNullAssertion: guarded by enabled: canFetchBalance && !!tokensPricesByChain
117117
Object.entries(tokensPricesByChain!.tokens)
118-
.filter(([chainId]) => chainsToFetch.includes(Number.parseInt(chainId)))
118+
.filter(([chainId]) => chainsToFetch.includes(Number.parseInt(chainId, 10)))
119119
.flatMap(([, tokens]) => tokens),
120120
),
121121
staleTime: BALANCE_EXPIRATION_TIME,
@@ -167,7 +167,6 @@ function udpateTokensBalances(tokens: Tokens, results: [Array<TokenAmount>, Toke
167167
(acc, [chainId, tokens]) => {
168168
acc[chainId] = {}
169169

170-
// biome-ignore lint/complexity/noForEach: <explanation>
171170
tokens.forEach((token) => {
172171
acc[chainId][token.address] = token.priceUSD ?? '0'
173172
})

src/lib/wagmi/plugins/reactSuspenseRead.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const walletConfigImport = `import { config } from '@/src/lib/wallets/connectkit
1212
type ActionsResult = {
1313
name: string
1414

15-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
15+
// biome-ignore lint/suspicious/noExplicitAny: wagmi plugin API does not expose typed ABI item types
1616
run: ({ contracts }: { contracts: any[] }) => Promise<{
1717
imports: string
1818
content: string
@@ -29,7 +29,7 @@ export function reactSuspenseRead(config: ActionsConfig = {}): ActionsResult {
2929

3030
const actionNames = new Set<string>()
3131

32-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
32+
// biome-ignore lint/suspicious/noExplicitAny: wagmi plugin API does not expose typed ABI item types
3333
const isReadFunction = (item: any) =>
3434
item.type === 'function' &&
3535
(item.stateMutability === 'view' || item.stateMutability === 'pure')

src/lib/wallets/connectkit.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const defaultConfig = {
9191

9292
// Optional App Info
9393
appDescription: env.PUBLIC_APP_DESCRIPTION,
94-
appUrl: env.PUBLIC_APP_URL,
94+
appUrl: typeof window !== 'undefined' ? window.location.origin : env.PUBLIC_APP_URL,
9595
appIcon: env.PUBLIC_APP_LOGO,
9696
} as const
9797

0 commit comments

Comments
 (0)