Skip to content

Commit

Permalink
chore(deps): update dependency @nestjs/graphql to v13 (#3676)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency @nestjs/graphql to v13

* chore(dependencies): updated changesets for modified dependencies

* Fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <[email protected]>
  • Loading branch information
3 people authored Jan 17, 2025
1 parent 1539e0c commit c9b167b
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 109 deletions.
5 changes: 5 additions & 0 deletions .changeset/@graphql-yoga_nestjs-3676-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-yoga/nestjs": patch
---
dependencies updates:
- Updated dependency [`@nestjs/graphql@^13.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/graphql/v/13.0.0) (from `^12.0.0`, in `peerDependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-yoga/nestjs-federation": patch
---
dependencies updates:
- Updated dependency [`@nestjs/graphql@^13.0.0` ↗︎](https://www.npmjs.com/package/@nestjs/graphql/v/13.0.0) (from `^12.0.0`, in `peerDependencies`)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@nestjs/cli": "^10.0.0",
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"@nestjs/graphql": "^12.0.0",
"@nestjs/graphql": "^13.0.0",
"@nestjs/microservices": "^11.0.0",
"@nestjs/platform-socket.io": "^11.0.0",
"@nestjs/websockets": "^11.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/nestjs-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"peerDependencies": {
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"@nestjs/graphql": "^12.0.0",
"@nestjs/graphql": "^13.0.0",
"graphql": "^15.0.0 || ^16.0.0"
},
"dependencies": {
Expand All @@ -63,7 +63,7 @@
"devDependencies": {
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"@nestjs/graphql": "^12.0.0",
"@nestjs/graphql": "^13.0.0",
"graphql": "16.10.0",
"tslib": "^2.8.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/nestjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"peerDependencies": {
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"@nestjs/graphql": "^12.0.0",
"@nestjs/graphql": "^13.0.0",
"graphql": "^15.0.0 || ^16.0.0",
"graphql-yoga": "workspace:^"
},
"devDependencies": {
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"@nestjs/graphql": "^12.0.0",
"@nestjs/graphql": "^13.0.0",
"@nestjs/platform-express": "^11.0.0",
"@nestjs/platform-fastify": "^11.0.0",
"@nestjs/testing": "^11.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/nestjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,22 @@ export class YogaDriver<
`);
}

config['graphql-ws'].onSubscribe = async (ctx, msg) => {
config['graphql-ws'].onSubscribe = async (ctx, _id, params) => {
const { schema, execute, subscribe, contextFactory, parse, validate } =
this.yoga.getEnveloped({
...ctx,
// @ts-expect-error context extra is from graphql-ws/lib/use/ws
req: ctx.extra.request,
// @ts-expect-error context extra is from graphql-ws/lib/use/ws
socket: ctx.extra.socket,
params: msg.payload,
params,
});

const args = {
schema,
operationName: msg.payload.operationName,
document: parse(msg.payload.query),
variableValues: msg.payload.variables,
operationName: params.operationName,
document: parse(params.query),
variableValues: params.variables,
contextValue: await contextFactory({ execute, subscribe }),
};

Expand Down
120 changes: 21 additions & 99 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c9b167b

Please sign in to comment.