Skip to content

Commit e170722

Browse files
authored
chore(linea-ens-app): upgrade React (#358)
1 parent b61a8a7 commit e170722

File tree

31 files changed

+601
-25502
lines changed

31 files changed

+601
-25502
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Thanks to ccip-read the domains created on Linea can also be resolved on Ethereu
1313

1414
## CCIPRead process
1515

16-
![alt text](./media/LineaENSCCIPRead.png?raw=true)
16+
![CCIP Read Process diagram](./media/LineaENSCCIPRead.png?raw=true)
1717

1818
This schema describes how a client application can resolve a domain name stored on Linea L2 from Ethereum L1 using CCIP
1919
Read.

packages/linea-ens-app/next.config.mjs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import { execSync } from 'child_process'
77
import path, { dirname } from 'path'
88
import { fileURLToPath } from 'url'
9-
109
import { withSentryConfig } from '@sentry/nextjs'
1110
import StylelintPlugin from 'stylelint-webpack-plugin'
1211

@@ -27,16 +26,17 @@ const nextConfig = {
2726
compiler: {
2827
styledComponents: true,
2928
},
30-
3129
env: {
32-
NEXT_PUBLIC_ALCHEMY_KEY:
33-
process.env.NEXT_PUBLIC_ALCHEMY_KEY || 'sSpYuHmhlpuU7RVXq-IIdCdz4IuKF-gM',
34-
NEXT_PUBLIC_INFURA_KEY:
35-
process.env.NEXT_PUBLIC_INFURA_KEY || 'cfa6ae2501cc4354a74e20432507317c',
30+
NEXT_PUBLIC_ALCHEMY_KEY: process.env.NEXT_PUBLIC_ALCHEMY_KEY,
31+
NEXT_PUBLIC_INFURA_KEY: process.env.NEXT_PUBLIC_INFURA_KEY,
3632
},
37-
// change to true once infinite loop is fixed
3833
images: {
39-
domains: ['metadata.ens.domains'],
34+
remotePatterns: [
35+
{
36+
protocol: 'https',
37+
hostname: 'metadata.ens.domains',
38+
},
39+
],
4040
},
4141
async rewrites() {
4242
return [
@@ -91,8 +91,7 @@ const nextConfig = {
9191
]
9292
},
9393
generateBuildId: () => {
94-
const hash = execSync('git rev-parse HEAD').toString().trim()
95-
return hash
94+
return execSync('git rev-parse HEAD').toString().trim()
9695
},
9796
webpack: (config, options) => {
9897
for (const rule of config.module.rules) {

packages/linea-ens-app/package.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,16 @@
8282
"next": "15.2.6",
8383
"p-memoize": "^7.1.1",
8484
"pino-pretty": "^10.3.1",
85-
"react": "^18.2.0",
85+
"react": "19.0.1",
8686
"react-confetti": "^6.1.0",
87-
"react-dom": "^18.2.0",
87+
"react-dom": "19.0.1",
8888
"react-ga": "^3.3.1",
8989
"react-hook-form": "^7.51.0",
9090
"react-i18next": "^11.18.5",
91-
"react-is": "^17.0.2",
9291
"react-transition-state": "^1.1.5",
93-
"react-use": "^17.4.0",
92+
"react-use": "17.6.0",
9493
"react-use-error-boundary": "^3.0.0",
95-
"styled-components": "^5.3.5",
94+
"styled-components": "^6.1.13",
9695
"ts-pattern": "^4.2.2",
9796
"use-immer": "^0.7.0",
9897
"viem": "^2.7.13",
@@ -106,7 +105,7 @@
106105
"@ethersproject/abi": "^5.4.0",
107106
"@ethersproject/contracts": "^5.4.0",
108107
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
109-
"@next/bundle-analyzer": "^13.4.19",
108+
"@next/bundle-analyzer": "^15.2.6",
110109
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
111110
"@openzeppelin/contracts": "^4.7.3",
112111
"@openzeppelin/test-helpers": "^0.5.16",
@@ -121,10 +120,8 @@
121120
"@types/pako": "^2.0.0",
122121
"@types/prettier": "^2.7.0",
123122
"@types/puppeteer-core": "^5.4.0",
124-
"@types/react": "18.2.21",
125-
"@types/react-dom": "^18.2.7",
126-
"@types/react-is": "^17.0.3",
127-
"@types/styled-components": "5.1.23",
123+
"@types/react": "19.0.1",
124+
"@types/react-dom": "19.0.1",
128125
"@types/ws": "^8.5.10",
129126
"@typescript-eslint/eslint-plugin": "^6.7.4",
130127
"@typescript-eslint/parser": "^6.7.4",
@@ -193,7 +190,7 @@
193190
"yaml": "^2.4.1"
194191
},
195192
"peerDependencies": {
196-
"react": "*",
197-
"react-dom": "*"
193+
"react": "19.0.1",
194+
"react-dom": "19.0.1"
198195
}
199196
}

0 commit comments

Comments
 (0)