dotansimha/graphql-yoga (graphql-yoga)
### [`v5.6.0`](https://togithub.com/dotansimha/graphql-yoga/blob/HEAD/packages/graphql-yoga/CHANGELOG.md#560)
[Compare Source](https://togithub.com/dotansimha/graphql-yoga/compare/graphql-yoga@5.5.0...graphql-yoga@5.6.0)
##### Minor Changes
- [#3333](https://togithub.com/dotansimha/graphql-yoga/pull/3333)
[`9f3f945`](https://togithub.com/dotansimha/graphql-yoga/commit/9f3f94522a9e8a7a19657efdd445a360ec244d55)
Thanks [@ardatan](https://togithub.com/ardatan)! - By default, Yoga does not allow extra parameters
in the request body other than `query`, `operationName`, `extensions`, and `variables`, then
throws 400 HTTP Error. This change adds a new option called `extraParamNames` to allow extra
parameters in the request body.
```ts
import { createYoga } from 'graphql-yoga'
const yoga = createYoga({
/* other options */
extraParamNames: ['extraParam1', 'extraParam2']
})
const res = await yoga.fetch('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'query { __typename }',
extraParam1: 'value1',
extraParam2: 'value2'
})
})
console.assert(res.status === 200)
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
5.5.0
->5.6.0
Release Notes
dotansimha/graphql-yoga (graphql-yoga)
### [`v5.6.0`](https://togithub.com/dotansimha/graphql-yoga/blob/HEAD/packages/graphql-yoga/CHANGELOG.md#560) [Compare Source](https://togithub.com/dotansimha/graphql-yoga/compare/graphql-yoga@5.5.0...graphql-yoga@5.6.0) ##### Minor Changes - [#3333](https://togithub.com/dotansimha/graphql-yoga/pull/3333) [`9f3f945`](https://togithub.com/dotansimha/graphql-yoga/commit/9f3f94522a9e8a7a19657efdd445a360ec244d55) Thanks [@ardatan](https://togithub.com/ardatan)! - By default, Yoga does not allow extra parameters in the request body other than `query`, `operationName`, `extensions`, and `variables`, then throws 400 HTTP Error. This change adds a new option called `extraParamNames` to allow extra parameters in the request body. ```ts import { createYoga } from 'graphql-yoga' const yoga = createYoga({ /* other options */ extraParamNames: ['extraParam1', 'extraParam2'] }) const res = await yoga.fetch('/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ query: 'query { __typename }', extraParam1: 'value1', extraParam2: 'value2' }) }) console.assert(res.status === 200) ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.