Skip to content

Commit

Permalink
Bump graphql-jit to fix @include @fix in mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Jun 22, 2023
1 parent bdd0ce5 commit 9bbcb1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
Expand Up @@ -23,11 +23,6 @@ const acceptTeamInvitation: MutationResolvers['acceptTeamInvitation'] = async (
{invitationToken, notificationId},
{authToken, dataLoader, socketId: mutatorId}
) => {
// AUTH WORKAROUND
if (!isAuthenticated(authToken) || !invitationToken) {
// Workaround for https://github.com/zalando-incubator/graphql-jit/issues/171
return {}
}
const operationId = dataLoader.share()
const subOptions = {mutatorId, operationId}
const viewerId = getUserId(authToken)
Expand All @@ -43,7 +38,7 @@ const acceptTeamInvitation: MutationResolvers['acceptTeamInvitation'] = async (
if (invitationRes.error) {
const {error: message, teamId, meetingId} = invitationRes
if (message === InvitationTokenError.ALREADY_ACCEPTED) {
return {error: {message}, teamId, meetingId, teamMemberId: toTeamMemberId(teamId, viewerId)}
return {error: {message}, teamId, meetingId, teamMemberId: toTeamMemberId(teamId!, viewerId)}
}
return {error: {message}}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Expand Up @@ -103,7 +103,7 @@
"emoji-mart": "^3.0.1",
"fast-json-stable-stringify": "^2.1.0",
"graphql": "15.7.2",
"graphql-jit": "^0.7.2",
"graphql-jit": "^0.7.4",
"graphql-middleware": "^6.1.18",
"graphql-relay": "^0.10.0",
"graphql-shield": "^7.5.0",
Expand Down
19 changes: 7 additions & 12 deletions yarn.lock
Expand Up @@ -4417,11 +4417,6 @@
tslib "^2.4.0"
value-or-promise "1.0.12"

"@graphql-typed-document-node/core@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.0.tgz#0eee6373e11418bfe0b5638f654df7a4ca6a3950"
integrity sha512-wYn6r8zVZyQJ6rQaALBEln5B1pzxb9shV5Ef97kTvn6yVGrqyXVnDqnU24MXnFubR+rZjBY9NWuxX3FB2sTsjg==

"@graphql-typed-document-node/core@3.1.1", "@graphql-typed-document-node/core@^3.1.1":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.1.tgz#076d78ce99822258cf813ecc1e7fa460fa74d052"
Expand Down Expand Up @@ -11701,7 +11696,7 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-sta
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==

fast-json-stringify@^1.13.0:
fast-json-stringify@^1.21.0:
version "1.21.0"
resolved "https://registry.yarnpkg.com/fast-json-stringify/-/fast-json-stringify-1.21.0.tgz#51bc8c6d77d8c7b2cc7e5fa754f7f909f9e1262f"
integrity sha512-xY6gyjmHN3AK1Y15BCbMpeO9+dea5ePVsp3BouHCdukcx0hOHbXwFhRodhcI0NpZIgDChSeAKkHW9YjKvhwKBA==
Expand Down Expand Up @@ -12498,13 +12493,13 @@ graphql-executor@0.0.22:
resolved "https://registry.yarnpkg.com/graphql-executor/-/graphql-executor-0.0.22.tgz#14bc466bb27ab38346998e0b375cba55685eed94"
integrity sha512-WbKSnSHFn6REKKH4T6UAwDM3mLUnYMQlQLNG0Fw+Lkb3ilCnL3m5lkJ7411LAI9sF7BvPbthovVZhsEUh9Xfag==

graphql-jit@^0.7.2:
version "0.7.2"
resolved "https://registry.yarnpkg.com/graphql-jit/-/graphql-jit-0.7.2.tgz#8cf08863c22377ea4a0c4b3c12a258f3c94934ca"
integrity sha512-u+FuMCBZfoB0v8Iw6blh+D3Feke2m6hS1TFhStJcLTCOyH+KmJPo3XCFJC5QLHxqT+PJEfyf0S+zKJUZjZrhsg==
graphql-jit@^0.7.4:
version "0.7.4"
resolved "https://registry.yarnpkg.com/graphql-jit/-/graphql-jit-0.7.4.tgz#bc8ccf79596d13dff3835902a466f9a5ecc3a8c1"
integrity sha512-kWyHmsQtKMD6xcKDgf4dgPLyIZhviqA6IWGdnA0ElL9wgrIOTxf3eI4c0/U3tnoAU3t09zliVCfDkfIptzYjIA==
dependencies:
"@graphql-typed-document-node/core" "3.1.0"
fast-json-stringify "^1.13.0"
"@graphql-typed-document-node/core" "^3.1.1"
fast-json-stringify "^1.21.0"
generate-function "^2.3.1"
json-schema "^0.4.0"
lodash.memoize "^4.1.2"
Expand Down

0 comments on commit 9bbcb1a

Please sign in to comment.