Skip to content

Commit 824eca1

Browse files
authored
feat: change apollo client app router integration library (#18)
* feat: update dependencies * feat: replace experimental Apollo support with integration package * fix: update Apollo client integration link in README * fix: sharp compatibility error
1 parent 96c8694 commit 824eca1

5 files changed

Lines changed: 2664 additions & 2056 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $ yarn g
6767

6868
### GraphQL
6969

70-
#### Apollo client with [experimental-nextjs-app-support](https://www.npmjs.com/package/@apollo/experimental-nextjs-app-support)
70+
#### Apollo client with [@apollo/client-integration-nextjs](https://www.npmjs.com/package/@apollo/client-integration-nextjs)
7171

7272
You can see client apollo provider [here](./src/providers/CustomApolloProvider.tsx)
7373

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,42 +25,42 @@
2525
"e2e:headless": "start-server-and-test dev http://localhost:3000 \"cypress run --e2e\""
2626
},
2727
"dependencies": {
28-
"@apollo/client": "^3.13.5",
29-
"@apollo/experimental-nextjs-app-support": "^0.11.11",
28+
"@apollo/client": "^3.13.8",
29+
"@apollo/client-integration-nextjs": "^0.12.2",
3030
"apollo-upload-client": "^18.0.1",
3131
"cookies-next": "^5.1.0",
32-
"graphql": "^16.10.0",
33-
"next": "15.2.3",
32+
"graphql": "^16.11.0",
33+
"next": "^15.3.2",
3434
"react": "^19",
3535
"react-dom": "^19",
3636
"sharp": "^0.33.5",
37-
"styled-components": "^6.1.16"
37+
"styled-components": "^6.1.18"
3838
},
3939
"devDependencies": {
4040
"@chromatic-com/storybook": "^3",
4141
"@eslint/eslintrc": "^3.3.1",
42-
"@eslint/js": "^9.23.0",
43-
"@storybook/addon-essentials": "^8.6.8",
44-
"@storybook/addon-interactions": "^8.6.8",
45-
"@storybook/addon-links": "^8.6.8",
46-
"@storybook/blocks": "^8.6.8",
47-
"@storybook/nextjs": "^8.6.8",
48-
"@storybook/react": "^8.6.8",
49-
"@storybook/test": "^8.6.8",
50-
"@swc/plugin-styled-components": "^7.1.0",
42+
"@eslint/js": "^9.26.0",
43+
"@storybook/addon-essentials": "^8.6.12",
44+
"@storybook/addon-interactions": "^8.6.12",
45+
"@storybook/addon-links": "^8.6.12",
46+
"@storybook/blocks": "^8.6.12",
47+
"@storybook/nextjs": "^8.6.12",
48+
"@storybook/react": "^8.6.12",
49+
"@storybook/test": "^8.6.12",
50+
"@swc/plugin-styled-components": "^7.1.4",
5151
"@testing-library/jest-dom": "^6.6.3",
52-
"@testing-library/react": "^16.2.0",
52+
"@testing-library/react": "^16.3.0",
5353
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
5454
"@types/apollo-upload-client": "^18.0.0",
5555
"@types/jest": "^29.5.14",
5656
"@types/node": "^22",
5757
"@types/react": "^19",
5858
"@types/react-dom": "^19",
59-
"cypress": "^14.2.0",
59+
"cypress": "^14.3.3",
6060
"eslint": "^9",
61-
"eslint-config-next": "15.2.3",
62-
"eslint-plugin-prettier": "^5.2.3",
63-
"eslint-plugin-storybook": "^0.11.6",
61+
"eslint-config-next": "15.3.2",
62+
"eslint-plugin-prettier": "^5.4.0",
63+
"eslint-plugin-storybook": "^0.12.0",
6464
"husky": "^9.1.7",
6565
"isomorphic-fetch": "^3.0.0",
6666
"jest": "^29.7.0",
@@ -70,8 +70,8 @@
7070
"plop": "^4.0.1",
7171
"prettier": "^3.5.3",
7272
"start-server-and-test": "^2.0.11",
73-
"storybook": "^8.6.8",
74-
"ts-jest": "^29.2.6",
73+
"storybook": "^8.6.12",
74+
"ts-jest": "^29.3.2",
7575
"ts-node": "^10.9.2",
7676
"tsconfig-paths-webpack-plugin": "^4.2.0",
7777
"typescript": "^5"

src/graphql/apolloServerClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use server';
22

3-
import { registerApolloClient } from '@apollo/experimental-nextjs-app-support';
3+
import { registerApolloClient } from '@apollo/client-integration-nextjs';
44
import { cookies } from 'next/headers';
55

66
import { ApolloClient, ApolloLink, HttpLink, InMemoryCache } from '@apollo/client';

src/providers/CustomApolloProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ApolloNextAppProvider,
88
InMemoryCache,
99
SSRMultipartLink,
10-
} from '@apollo/experimental-nextjs-app-support';
10+
} from '@apollo/client-integration-nextjs';
1111
import { getCookie } from 'cookies-next/client';
1212

1313
import { ApolloLink } from '@apollo/client';

0 commit comments

Comments
 (0)