Skip to content

Commit

Permalink
fix(deps): update all non-major dependencies (#2276)
Browse files Browse the repository at this point in the history
* fix(deps): update all non-major dependencies

* chore(dependencies): updated changesets for modified dependencies

* Fix test

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 <ardatanrikulu@gmail.com>
  • Loading branch information
3 people committed Jan 3, 2023
1 parent c0cc75c commit 8cd8b5a
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 114 deletions.
5 changes: 5 additions & 0 deletions .changeset/@graphql-yoga_plugin-sofa-2276-dependencies.md
@@ -0,0 +1,5 @@
---
'@graphql-yoga/plugin-sofa': patch
---
dependencies updates:
- Updated dependency [`sofa-api@0.15.2` 鈫楋笌](https://www.npmjs.com/package/sofa-api/v/0.15.2) (from `0.15.1`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/graphql-yoga-2276-dependencies.md
@@ -0,0 +1,5 @@
---
'graphql-yoga': patch
---
dependencies updates:
- Updated dependency [`@whatwg-node/server@0.5.5` 鈫楋笌](https://www.npmjs.com/package/@whatwg-node/server/v/0.5.5) (from `0.5.4`, in `dependencies`)
2 changes: 1 addition & 1 deletion examples/sveltekit/package.json
Expand Up @@ -33,7 +33,7 @@
"svelte-preprocess": "5.0.0",
"tslib": "2.4.1",
"typescript": "4.9.4",
"vite": "4.0.3"
"vite": "4.0.4"
},
"dependencies": {
"@envelop/graphql-jit": "5.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/package.json
Expand Up @@ -26,7 +26,7 @@
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"@vitejs/plugin-react": "3.0.0",
"vite": "4.0.3"
"vite": "4.0.4"
},
"dependencies": {
"@graphiql/plugin-explorer": "^0.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-yoga/package.json
Expand Up @@ -57,7 +57,7 @@
"@graphql-tools/utils": "^9.0.1",
"@graphql-yoga/subscription": "^3.0.0",
"@whatwg-node/fetch": "0.6.1",
"@whatwg-node/server": "0.5.4",
"@whatwg-node/server": "0.5.5",
"dset": "^3.1.1",
"tslib": "^2.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/sofa/package.json
Expand Up @@ -49,7 +49,7 @@
"access": "public"
},
"dependencies": {
"sofa-api": "0.15.1",
"sofa-api": "0.15.2",
"@graphql-tools/utils": "9.1.3"
},
"peerDependencies": {
Expand Down
6 changes: 4 additions & 2 deletions packages/plugins/sofa/src/index.ts
@@ -1,6 +1,5 @@
import { Plugin, YogaInitialContext, YogaServerInstance } from 'graphql-yoga'
import { OpenAPI, useSofa as createSofaHandler } from 'sofa-api'

import { getSwaggerUIHTMLForSofa } from './swagger-ui.js'
import { SofaHandler } from './types.js'

Expand Down Expand Up @@ -123,7 +122,10 @@ export function useSofa(config: SofaPluginConfig): Plugin {
},
async onRequest({ request, serverContext, endResponse }) {
requestByContext.set(serverContext as YogaInitialContext, request)
const response = await sofaHandler.handle(request, serverContext)
const response = await sofaHandler.handle(
request,
serverContext as Record<string, unknown>,
)
if (response) {
endResponse(response)
}
Expand Down

0 comments on commit 8cd8b5a

Please sign in to comment.