Skip to content

Commit 3907656

Browse files
committed
fix: properly migrate to express 5
Dependabot u so rude.
1 parent a106233 commit 3907656

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"dependencies": {
101101
"@apollo/client": "3.11.4",
102102
"@apollo/server": "5.4.0",
103+
"@as-integrations/express5": "1.1.2",
103104
"@emotion/react": "11.14.0",
104105
"@emotion/styled": "11.13.0",
105106
"@graphql-tools/graphql-file-loader": "8.0.1",
@@ -140,7 +141,7 @@
140141
"express-rate-limit": "7.4.0",
141142
"express-session": "^1.18.1",
142143
"geo-tz": "^7.0.7",
143-
"graphql": "16.9.0",
144+
"graphql": "16.11.0",
144145
"graphql-type-json": "0.3.2",
145146
"helmet": "7.1.0",
146147
"i18next": "23.12.3",
@@ -219,7 +220,7 @@
219220
"tmp": ">=0.2.4"
220221
},
221222
"engines": {
222-
"node": ">=18",
223+
"node": ">=20",
223224
"yarn": "^1.22.x"
224225
}
225226
}

server/src/middleware/apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
const { expressMiddleware } = require('@apollo/server/express4')
2+
const { expressMiddleware } = require('@as-integrations/express5')
33
const { ApolloServerErrorCode } = require('@apollo/server/errors')
44
const { GraphQLError } = require('graphql')
55
const { parse } = require('graphql')

yarn.lock

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@
164164
resolved "https://registry.yarnpkg.com/@apollo/utils.withrequired/-/utils.withrequired-3.0.0.tgz#1342bab438528d09c41e43ce33cb976fa9c99e52"
165165
integrity sha512-aaxeavfJ+RHboh7c2ofO5HHtQobGX4AgUujXP4CXpREHp9fQ9jPi6K9T1jrAKe7HIipoP0OJ1gd6JamSkFIpvA==
166166

167+
"@as-integrations/express5@1.1.2":
168+
version "1.1.2"
169+
resolved "https://registry.yarnpkg.com/@as-integrations/express5/-/express5-1.1.2.tgz#5c5b207b8e457bbd546e9b20898d0b1f4a478480"
170+
integrity sha512-BxfwtcWNf2CELDkuPQxi5Zl3WqY/dQVJYafeCBOGoFQjv5M0fjhxmAFZ9vKx/5YKKNeok4UY6PkFbHzmQrdxIA==
171+
167172
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.26.2", "@babel/code-frame@^7.27.1":
168173
version "7.27.1"
169174
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be"
@@ -5210,10 +5215,10 @@ graphql-type-json@0.3.2:
52105215
resolved "https://registry.yarnpkg.com/graphql-type-json/-/graphql-type-json-0.3.2.tgz#f53a851dbfe07bd1c8157d24150064baab41e115"
52115216
integrity sha512-J+vjof74oMlCWXSvt0DOf2APEdZOCdubEvGDUAlqH//VBYcOYsGgRW7Xzorr44LvkjiuvecWc8fChxuZZbChtg==
52125217

5213-
graphql@16.9.0:
5214-
version "16.9.0"
5215-
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.9.0.tgz#1c310e63f16a49ce1fbb230bd0a000e99f6f115f"
5216-
integrity sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==
5218+
graphql@16.11.0:
5219+
version "16.11.0"
5220+
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.11.0.tgz#96d17f66370678027fdf59b2d4c20b4efaa8a633"
5221+
integrity sha512-mS1lbMsxgQj6hge1XZ6p7GPhbrtFwUFYi3wRzXAC/FmYnyXMTvvI3td3rjmQ2u8ewXueaSvRPWaEcgVVOT9Jnw==
52175222

52185223
handlebars@^4.7.7:
52195224
version "4.7.8"

0 commit comments

Comments
 (0)