Skip to content

Commit 1d7c92c

Browse files
authored
Revert "chore(linea-ens-app): upgrade React" (#360)
1 parent e170722 commit 1d7c92c

File tree

31 files changed

+25502
-601
lines changed

31 files changed

+25502
-601
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-
![CCIP Read Process diagram](./media/LineaENSCCIPRead.png?raw=true)
16+
![alt text](./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: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import { execSync } from 'child_process'
77
import path, { dirname } from 'path'
88
import { fileURLToPath } from 'url'
9+
910
import { withSentryConfig } from '@sentry/nextjs'
1011
import StylelintPlugin from 'stylelint-webpack-plugin'
1112

@@ -26,17 +27,16 @@ const nextConfig = {
2627
compiler: {
2728
styledComponents: true,
2829
},
30+
2931
env: {
30-
NEXT_PUBLIC_ALCHEMY_KEY: process.env.NEXT_PUBLIC_ALCHEMY_KEY,
31-
NEXT_PUBLIC_INFURA_KEY: process.env.NEXT_PUBLIC_INFURA_KEY,
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',
3236
},
37+
// change to true once infinite loop is fixed
3338
images: {
34-
remotePatterns: [
35-
{
36-
protocol: 'https',
37-
hostname: 'metadata.ens.domains',
38-
},
39-
],
39+
domains: ['metadata.ens.domains'],
4040
},
4141
async rewrites() {
4242
return [
@@ -91,7 +91,8 @@ const nextConfig = {
9191
]
9292
},
9393
generateBuildId: () => {
94-
return execSync('git rev-parse HEAD').toString().trim()
94+
const hash = execSync('git rev-parse HEAD').toString().trim()
95+
return hash
9596
},
9697
webpack: (config, options) => {
9798
for (const rule of config.module.rules) {

packages/linea-ens-app/package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,17 @@
8282
"next": "15.2.6",
8383
"p-memoize": "^7.1.1",
8484
"pino-pretty": "^10.3.1",
85-
"react": "19.0.1",
85+
"react": "^18.2.0",
8686
"react-confetti": "^6.1.0",
87-
"react-dom": "19.0.1",
87+
"react-dom": "^18.2.0",
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",
9192
"react-transition-state": "^1.1.5",
92-
"react-use": "17.6.0",
93+
"react-use": "^17.4.0",
9394
"react-use-error-boundary": "^3.0.0",
94-
"styled-components": "^6.1.13",
95+
"styled-components": "^5.3.5",
9596
"ts-pattern": "^4.2.2",
9697
"use-immer": "^0.7.0",
9798
"viem": "^2.7.13",
@@ -105,7 +106,7 @@
105106
"@ethersproject/abi": "^5.4.0",
106107
"@ethersproject/contracts": "^5.4.0",
107108
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
108-
"@next/bundle-analyzer": "^15.2.6",
109+
"@next/bundle-analyzer": "^13.4.19",
109110
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
110111
"@openzeppelin/contracts": "^4.7.3",
111112
"@openzeppelin/test-helpers": "^0.5.16",
@@ -120,8 +121,10 @@
120121
"@types/pako": "^2.0.0",
121122
"@types/prettier": "^2.7.0",
122123
"@types/puppeteer-core": "^5.4.0",
123-
"@types/react": "19.0.1",
124-
"@types/react-dom": "19.0.1",
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",
125128
"@types/ws": "^8.5.10",
126129
"@typescript-eslint/eslint-plugin": "^6.7.4",
127130
"@typescript-eslint/parser": "^6.7.4",
@@ -190,7 +193,7 @@
190193
"yaml": "^2.4.1"
191194
},
192195
"peerDependencies": {
193-
"react": "19.0.1",
194-
"react-dom": "19.0.1"
196+
"react": "*",
197+
"react-dom": "*"
195198
}
196199
}

0 commit comments

Comments
 (0)