Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 579fa8b

Browse files
authored
chore: Update deps for monorepo (#1101)
* chore: Update deps * chore: Remove comment
1 parent 967953b commit 579fa8b

11 files changed

+428
-305
lines changed

.eslintrc.cjs

-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ module.exports = {
3636
group: ['wagmi/dist'],
3737
message: 'Invalid import: remove dist from import path',
3838
},
39-
{
40-
group: ['@apollo/client'],
41-
importNames: ['useQuery'],
42-
message:
43-
// eslint-disable-next-line max-len
44-
'Import useQuery from @apollo/experimental-nextjs-app-support/ssr to avoid u.inFlightLinkObservables errors',
45-
},
4639
{
4740
group: ['act'],
4841
importNames: ['react-dom/test-utils'],

lib/modules/pool/PoolProvider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
GqlChain,
99
} from '@/lib/shared/services/api/generated/graphql'
1010
import { createContext, PropsWithChildren, useRef } from 'react'
11-
import { useQuery } from '@apollo/experimental-nextjs-app-support/ssr'
11+
import { useQuery } from '@apollo/client'
1212
import { FetchPoolProps } from './pool.types'
1313
import { useMandatoryContext } from '@/lib/shared/utils/contexts'
1414
import { calcBptPriceFor, usePoolHelpers } from './pool.helpers'

lib/modules/pool/usePoolEvents.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
GetPoolEventsQuery,
77
} from '@/lib/shared/services/api/generated/graphql'
88
import { FetchPolicy } from '@apollo/client'
9-
import { useQuery } from '@apollo/experimental-nextjs-app-support/ssr'
9+
import { useQuery } from '@apollo/client'
1010

1111
type PoolEventList = GetPoolEventsQuery['poolEvents']
1212
export type PoolEventItem = PoolEventList[0]

lib/shared/hooks/useProtocolStats.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useQuery } from '@apollo/experimental-nextjs-app-support/ssr'
1+
import { useQuery } from '@apollo/client'
22
import { GetProtocolStatsDocument } from '../services/api/generated/graphql'
33
import { supportedNetworks } from '@/lib/modules/web3/ChainConfig'
44

lib/shared/services/api/apollo-client-provider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
// eslint-disable-next-line max-len
4-
import { ApolloNextAppProvider } from '@apollo/experimental-nextjs-app-support/ssr'
4+
import { ApolloNextAppProvider } from '@apollo/experimental-nextjs-app-support'
55
import { createApolloClient } from '@/lib/shared/services/api/apollo.client'
66

77
export function ApolloClientProvider({ children }: React.PropsWithChildren) {

lib/shared/services/api/apollo-server.client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { config } from '@/lib/config/app.config'
22
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'
3-
import { registerApolloClient } from '@apollo/experimental-nextjs-app-support/rsc'
3+
import { registerApolloClient } from '@apollo/experimental-nextjs-app-support'
44

55
export const { getClient: getApolloServerClient } = registerApolloClient(() => {
66
return new ApolloClient({

lib/shared/services/api/apollo.client.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { config } from '@/lib/config/app.config'
22
import { ApolloLink, HttpLink } from '@apollo/client'
33
import {
4-
NextSSRApolloClient,
5-
NextSSRInMemoryCache,
4+
ApolloClient,
5+
InMemoryCache,
66
SSRMultipartLink,
7-
} from '@apollo/experimental-nextjs-app-support/ssr'
7+
} from '@apollo/experimental-nextjs-app-support'
88

99
/*const userMiddleware = new ApolloLink((operation, forward) => {
1010
// add the user address to the headers
@@ -25,7 +25,7 @@ export function createApolloClient() {
2525
//const keyArgs = ['where', ['poolIdIn']]
2626
const httpLink = new HttpLink({ uri: config.apiUrl })
2727

28-
return new NextSSRApolloClient({
28+
return new ApolloClient({
2929
ssrMode: typeof window === 'undefined',
3030
link:
3131
typeof window === 'undefined'
@@ -36,7 +36,7 @@ export function createApolloClient() {
3636
httpLink,
3737
])
3838
: httpLink,
39-
cache: new NextSSRInMemoryCache({
39+
cache: new InMemoryCache({
4040
typePolicies: {
4141
GqlToken: {
4242
keyFields: ['address', 'chainId'],

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"postinstall": "npm run gen:theme-typings"
3434
},
3535
"dependencies": {
36-
"@apollo/client": "3.8.0-rc.1",
36+
"@apollo/client": "^3.11.8",
3737
"@balancer/sdk": "^0.25.0",
3838
"@chakra-ui/anatomy": "^2.2.2",
3939
"@chakra-ui/hooks": "^2.2.1",
@@ -46,10 +46,10 @@
4646
"@emotion/react": "^11.11.1",
4747
"@emotion/styled": "^11.11.0",
4848
"@nikolovlazar/chakra-ui-prose": "^1.2.1",
49-
"@rainbow-me/rainbowkit": "^2.1.3",
49+
"@rainbow-me/rainbowkit": "^2.1.6",
5050
"@sentry/nextjs": "^8.13.0",
5151
"@studio-freight/react-lenis": "^0.0.47",
52-
"@tanstack/react-query": "^5.29.2",
52+
"@tanstack/react-query": "^5.56.2",
5353
"@tanstack/react-query-devtools": "^5.56.0",
5454
"@tanstack/react-table": "^8.9.3",
5555
"@vercel/speed-insights": "^1.0.1",
@@ -89,7 +89,7 @@
8989
"wagmi": "^2.12.11"
9090
},
9191
"devDependencies": {
92-
"@apollo/experimental-nextjs-app-support": "^0.8.0",
92+
"@apollo/experimental-nextjs-app-support": "^0.11.3",
9393
"@chakra-ui/cli": "^2.4.1",
9494
"@chakra-ui/styled-system": "^2.9.2",
9595
"@graphql-codegen/cli": "^5.0.0",
@@ -135,8 +135,8 @@
135135
"stylelint-config-standard": "^33.0.0",
136136
"stylelint-prettier": "^3.0.0",
137137
"typescript": "5.4.5",
138-
"vitest": "1.4.0",
139-
"vitest-mock-extended": "^1.3.1"
138+
"vitest": "^2.1.1",
139+
"vitest-mock-extended": "^2.0.2"
140140
},
141141
"pnpm": {
142142
"peerDependencyRules": {

0 commit comments

Comments
 (0)