Skip to content

Commit 7a116fe

Browse files
authored
chore: maintenance (#856)
* chore: update deps * chore: update to next 16 * update deps again
1 parent 62fbfde commit 7a116fe

File tree

10 files changed

+3100
-2692
lines changed

10 files changed

+3100
-2692
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import nextPlugin from "@next/eslint-plugin-next";
2+
import reactPlugin from "eslint-plugin-react";
3+
import hooksPlugin from "eslint-plugin-react-hooks";
4+
5+
export default [
6+
{
7+
plugins: {
8+
"@next/next": nextPlugin,
9+
"react": reactPlugin,
10+
"react-hooks": hooksPlugin,
11+
},
12+
rules: {
13+
...nextPlugin.configs.recommended.rules,
14+
...nextPlugin.configs["core-web-vitals"].rules,
15+
},
16+
settings: {
17+
react: {
18+
version: "detect",
19+
},
20+
},
21+
},
22+
{
23+
ignores: [
24+
"node_modules/",
25+
".next/",
26+
"out/",
27+
"tests/",
28+
"src/eth-sdk/",
29+
"src/**/generated.ts",
30+
"src/**/.graphclient/",
31+
],
32+
},
33+
];

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference path="./.next/types/routes.d.ts" />
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

next.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ const isOnNetlify = !!netlifyContext;
1414
const interfaceFeeAddress = process.env.NEXT_PUBLIC_INTERFACE_FEE_ADDRESS;
1515
const shouldInstrumentCode = "INSTRUMENT_CODE" in process.env;
1616
const appUrl = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : process.env.URL ?? "http://localhost:3000";
17-
const enableReactCompiler = false;
18-
// process.env.NODE_ENV !== "development";
1917
const sentryOrg = process.env.SENTRY_ORG;
2018
const sentryProject = process.env.SENTRY_PROJECT;
2119

@@ -125,16 +123,12 @@ const nextConfig: NextConfig = {
125123
experimental: {
126124
forceSwcTransforms: !shouldInstrumentCode, // .babelrc.js existence is because of code instrumentation.
127125
cpus: isOnNetlify ? 6 : undefined, // Fixes the issue of memory running out on Netlify (error 127)
128-
reactCompiler: enableReactCompiler,
129126
optimizePackageImports: [
130127
'@mui/lab',
131128
'@mui/x-data-grid',
132129
'@mui/x-date-pickers',
133130
'chart.js'
134131
] // It's enabled automatically for many packages in use: https://nextjs.org/docs/app/api-reference/next-config-js/optimizePackageImports
135-
},
136-
eslint: {
137-
ignoreDuringBuilds: isOnNetlify,
138132
}
139133
};
140134

package.json

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@superfluid-finance/dashboard",
3-
"version": "32.0.0",
3+
"version": "33.0.0",
44
"private": true,
55
"type": "module",
66
"scripts": {
77
"dev": "next dev --port 3000",
88
"replayio": "replayio record http://localhost:3000",
9-
"build": "next build",
9+
"build": "next build --webpack",
1010
"start": "next start",
11-
"lint": "next lint",
11+
"lint": "eslint .",
1212
"coverage:build": "rm -rf tests/coverage tests/.nyc_output && INSTRUMENT_CODE=1 pnpm build && pnpm start",
1313
"coverage:dev": "rm -rf tests/coverage tests/.nyc_output && INSTRUMENT_CODE=1 pnpm dev",
1414
"coverage:test": "cd tests && pnpm cypress run --env network=opsepolia,dev=false,coverage=true",
@@ -34,54 +34,54 @@
3434
"@hookform/error-message": "^2.0.1",
3535
"@hookform/resolvers": "5.0.1",
3636
"@lens-protocol/client": "^2.3.2",
37-
"@lifi/sdk": "^3.13.6",
38-
"@lifi/widget": "^3.36.0",
37+
"@lifi/sdk": "^3.14.1",
38+
"@lifi/widget": "^3.38.1",
3939
"@mui/icons-material": "^6.5.0",
4040
"@mui/lab": "6.0.1-beta.34",
4141
"@mui/material": "^6.5.0",
4242
"@mui/system": "^6.5.0",
4343
"@mui/utils": "^6",
4444
"@mui/x-data-grid": "^7.29.12",
4545
"@mui/x-date-pickers": "^7.29.4",
46-
"@reduxjs/toolkit": "^2.11.0",
47-
"@reown/appkit": "^1.8.14",
48-
"@reown/appkit-adapter-wagmi": "^1.8.14",
49-
"@reown/appkit-common": "^1.8.14",
46+
"@reduxjs/toolkit": "^2.11.2",
47+
"@reown/appkit": "^1.8.16",
48+
"@reown/appkit-adapter-wagmi": "^1.8.16",
49+
"@reown/appkit-common": "^1.8.16",
5050
"@segment/analytics-next": "^1.81.1",
51-
"@sentry/browser": "^9.47.1",
52-
"@sentry/nextjs": "^9.47.1",
53-
"@sentry/react": "^9.47.1",
51+
"@sentry/browser": "^10.32.1",
52+
"@sentry/nextjs": "^10.32.1",
53+
"@sentry/react": "^10.32.1",
5454
"@superfluid-finance/metadata": "^1.6.2",
5555
"@superfluid-finance/sdk-core": "^0.9.0",
5656
"@superfluid-finance/sdk-redux": "^0.7.0",
57-
"@superfluid-finance/tokenlist": "^5.35.0",
58-
"@tanstack/react-query": "^5.90.11",
57+
"@superfluid-finance/tokenlist": "^5.37.1",
58+
"@tanstack/react-query": "^5.90.16",
5959
"@vercel/functions": "^2.2.13",
60-
"@xstate/store": "^3.13.0",
60+
"@xstate/store": "^3.14.1",
6161
"await-timeout": "^1.1.1",
6262
"axios": "^1.13.2",
6363
"chart.js": "^4.5.1",
6464
"clsx": "^2.1.1",
6565
"date-fns": "^2.30.0",
6666
"decimal.js": "^10.6.0",
67-
"effect": "^3.19.8",
67+
"effect": "^3.19.14",
6868
"eol": "^0.10.0",
6969
"ethers": "^5.8.0",
7070
"fuse.js": "^7.1.0",
7171
"graphql": "^16.12.0",
7272
"graphql-request": "^6.1.0",
7373
"immer": "^10.2.0",
7474
"jszip": "^3.10.1",
75-
"lodash-es": "^4.17.21",
75+
"lodash-es": "^4.17.22",
7676
"nanoid": "^5.1.6",
77-
"next": "15.5.9",
77+
"next": "16.1.1",
7878
"next-themes": "^0.4.6",
7979
"papaparse": "^5.5.3",
8080
"promise-retry": "^2.0.1",
81-
"react": "^19.2.1",
81+
"react": "^19.2.3",
8282
"react-blockies": "^1.4.1",
83-
"react-dom": "^19.2.1",
84-
"react-hook-form": "^7.65.0",
83+
"react-dom": "^19.2.3",
84+
"react-hook-form": "^7.70.0",
8585
"react-hotjar": "^6.3.1",
8686
"react-redux": "^9",
8787
"react-toastify": "^9.1.3",
@@ -90,18 +90,20 @@
9090
"redux-persist": "^6.0.0",
9191
"serialize-error": "^8.1.0",
9292
"sha3": "^2.1.4",
93-
"viem": "^2.41.2",
93+
"viem": "^2.43.5",
9494
"wagmi": "^2.19.5",
9595
"yup": "^1.7.1"
9696
},
9797
"devDependencies": {
9898
"@dethcrypto/eth-sdk": "^0.3.4",
99+
"@eslint/eslintrc": "^3.3.3",
99100
"@graphprotocol/client-cli": "^2.2.22",
101+
"@next/eslint-plugin-next": "^16.1.1",
100102
"@rtk-query/codegen-openapi": "^1.2.0",
101103
"@superfluid-finance/ethereum-contracts": "^1.14.1",
102104
"@types/await-timeout": "^0.3.3",
103105
"@types/lodash-es": "^4.17.12",
104-
"@types/papaparse": "^5.5.1",
106+
"@types/papaparse": "^5.5.2",
105107
"@types/promise-retry": "^1.1.6",
106108
"@types/react": "^19.2.7",
107109
"@types/react-dom": "^19.2.3",
@@ -111,8 +113,10 @@
111113
"babel-plugin-react-compiler": "19.1.0-rc.3",
112114
"del-cli": "^5.1.0",
113115
"dotenv": "^16.6.1",
114-
"eslint": "^8.57.1",
115-
"eslint-config-next": "^15.5.7",
116+
"eslint": "^9.39.2",
117+
"eslint-config-next": "^16.1.1",
118+
"eslint-plugin-react": "^7.37.5",
119+
"eslint-plugin-react-hooks": "^7.0.1",
116120
"npm-run-all": "^4.1.5",
117121
"replayio": "^1.7.0",
118122
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)