Skip to content

Commit 5f28ecb

Browse files
authored
Update dependencies, notably @edgeandnode/common to update supported networks (#852)
* Update dependencies, notably `@edgeandnode/common` to update supported networks * Work around missing network icons
1 parent fecb7cd commit 5f28ecb

File tree

7 files changed

+3354
-1878
lines changed

7 files changed

+3354
-1878
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV ENVIRONMENT=$ENVIRONMENT
66
ENV PNPM_HOME="/usr/bin"
77

88
RUN apk add --no-cache git
9-
RUN npm install -g pnpm@9.12.2
9+
RUN npm install -g pnpm@10.0.0
1010

1111
WORKDIR /app
1212

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "the-graph-docs-monorepo",
33
"private": true,
4-
"packageManager": "pnpm@9.15.0",
4+
"packageManager": "pnpm@10.0.0",
55
"scripts": {
66
"dev": "turbo run dev --parallel",
77
"build": "NODE_OPTIONS='--max_old_space_size=4096' turbo run build",
@@ -29,6 +29,6 @@
2929
"remark-lint-no-heading-punctuation": "^3.1.2",
3030
"remark-lint-restrict-elements": "workspace:*",
3131
"turbo": "^1.13.4",
32-
"typescript": "^5.7.2"
32+
"typescript": "^5.7.3"
3333
}
3434
}

packages/nextra-theme/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
"@radix-ui/react-collapsible": "^1.1.2",
4040
"@radix-ui/react-visually-hidden": "^1.1.1",
4141
"lodash": "^4.17.21",
42-
"react-intersection-observer": "^9.14.0",
42+
"react-intersection-observer": "^9.14.1",
4343
"react-use": "^17.6.0"
4444
},
4545
"devDependencies": {
46-
"@edgeandnode/gds": "^5.39.2",
47-
"@edgeandnode/go": "^6.75.0",
46+
"@edgeandnode/gds": "^5.41.0",
47+
"@edgeandnode/go": "^6.79.0",
4848
"@emotion/react": "^11.14.0",
49-
"@types/lodash": "^4.17.13",
50-
"@types/react": "^18.3.17",
49+
"@types/lodash": "^4.17.14",
50+
"@types/react": "^18.3.18",
5151
"@types/react-dom": "^18.3.5",
52-
"next": "^14.2.20",
52+
"next": "^14.2.23",
5353
"next-seo": "^6.6.0",
5454
"nextra": "^2.13.4",
5555
"react": "^18.3.1",

packages/og-image/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"dependencies": {
1313
"@resvg/resvg-wasm": "2.6.2",
1414
"react": "18.3.1",
15-
"satori": "0.10.14",
15+
"satori": "^0.12.1",
1616
"yoga-wasm-web": "0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20241218.0",
20-
"@types/react": "^18.3.17",
19+
"@cloudflare/workers-types": "^4.20250109.0",
20+
"@types/react": "^18.3.18",
2121
"jest-image-snapshot": "^6.4.0",
2222
"tsx": "^4.19.2",
23-
"typescript": "^5.7.2",
23+
"typescript": "^5.7.3",
2424
"vitest": "^1.6.0",
25-
"wrangler": "^3.97.0"
25+
"wrangler": "^3.101.0"
2626
}
2727
}

pnpm-lock.yaml

+3,313-1,854
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
"typecheck": "tsc --noEmit"
1616
},
1717
"dependencies": {
18-
"@edgeandnode/common": "^6.39.0",
19-
"@edgeandnode/gds": "^5.39.2",
20-
"@edgeandnode/go": "^6.75.0",
18+
"@edgeandnode/common": "^6.44.0",
19+
"@edgeandnode/gds": "^5.41.0",
20+
"@edgeandnode/go": "^6.79.0",
2121
"@emotion/react": "^11.14.0",
2222
"@graphprotocol/contracts": "6.2.1",
2323
"@graphprotocol/nextra-theme": "workspace:*",
2424
"@phosphor-icons/react": "^2.1.7",
25-
"mixpanel-browser": "^2.57.1",
26-
"next": "^14.2.20",
25+
"mixpanel-browser": "^2.58.0",
26+
"next": "^14.2.23",
2727
"next-seo": "^6.6.0",
2828
"next-sitemap": "^4.2.3",
2929
"nextra": "^2.13.4",
@@ -36,13 +36,13 @@
3636
"devDependencies": {
3737
"@graphprotocol/client-cli": "3.0.3",
3838
"@types/mdast": "^4.0.4",
39-
"@types/mixpanel-browser": "^2.50.2",
40-
"@types/react": "^18.3.17",
39+
"@types/mixpanel-browser": "^2.51.0",
40+
"@types/react": "^18.3.18",
4141
"@types/react-dom": "^18.3.5",
4242
"autoprefixer": "^10.4.20",
4343
"fast-xml-parser": "^4.5.1",
4444
"graphql": "^16.10.0",
45-
"postcss": "^8.4.49",
45+
"postcss": "^8.5.0",
4646
"tailwindcss": "^3.4.17",
4747
"tsx": "^4.19.2",
4848
"unified": "^11.0.5"

website/src/IndexPage.tsx

+19-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Image, LinkInline } from '@graphprotocol/nextra-theme'
22
import { useData } from 'nextra/data'
33

44
import { BorderRadius, buildBorder, buildTransition, Flex, Link, Spacing, Text } from '@edgeandnode/gds'
5+
import { NetworkAbstract, NetworkCorn, NetworkSoneium } from '@edgeandnode/gds/dist/icons'
56
import { NetworkIcon } from '@edgeandnode/go'
67

78
import { useI18n } from '@/i18n'
@@ -199,11 +200,27 @@ export function SupportedNetworks() {
199200
}}
200201
>
201202
{supportedNetworks
202-
.filter((network) => !network.testnet || ['evm-1946'].includes(network.uid))
203+
.filter((network) => !network.testnet)
204+
// Temporarily filter out networks we don't have icons for in GDS
205+
.filter((network) => !['evm-81', 'evm-146', 'evm-43111', 'evm-994873017'].includes(network.uid))
203206
.map((network) => (
204207
<Flex.Column key={network.uid} as="li" align="center" gap={Spacing['8px']} sx={{ color: 'White64' }}>
205208
<div sx={{ height: '40px' }}>
206-
<NetworkIcon chain={network} size="40px" />
209+
{(() => {
210+
const iconProps = {
211+
size: '40px' as const,
212+
}
213+
switch (network.uid) {
214+
case 'evm-2741':
215+
return <NetworkAbstract {...iconProps} />
216+
case 'evm-1868':
217+
return <NetworkSoneium {...iconProps} />
218+
case 'evm-21000000':
219+
return <NetworkCorn {...iconProps} />
220+
default:
221+
return <NetworkIcon chain={network.uid} {...iconProps} />
222+
}
223+
})()}
207224
</div>
208225
<Text.P14 as="div" align="center">
209226
{network.name}

0 commit comments

Comments
 (0)