Upcoming Release Changes (refs/heads/v3) (v3) #1748
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v3, this PR will be updated.
v3
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onv3
.Releases
@graphql-yoga/[email protected]
Major Changes
87d1070a
Thanks @saihaj! - New Apollo Link@graphql-yoga/[email protected]
Major Changes
87d1070a
Thanks @saihaj! - New URQL Exchange@graphql-yoga/[email protected]
Major Changes
#1660
2e0c4824
Thanks @saihaj! - Drop Node 12 SupportGraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least.
#1660
f46addd7
Thanks @saihaj! - See the migration guide for more information;Migration from Yoga V2
Minor Changes
#1359
5629a5cb
Thanks @ardatan! - NewsetResult
helper is available inonRequestParseDone
hook to setExecutionResult
before any GraphQL specific process.You can check
@graphql-yoga/plugin-response-cache
's implementation to see how it can be useful.Also now
onResultProcess
anduseResultProcessor
hooks use generics to get more type-safety.Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:@graphql-yoga/[email protected]
Major Changes
#1761
b2407c6a
Thanks @ardatan! - BREAKING:TypedEvent
in favor ofCustomEvent
@whatwg-node/events
as a ponyfill instead of@whatwg-node/fetch
Patch Changes
b2407c6a
]:@graphql-yoga/[email protected]
Major Changes
#1761
b2407c6a
Thanks @ardatan! - BREAKING:TypedEvent
in favor ofCustomEvent
@whatwg-node/events
as a ponyfill instead of@whatwg-node/fetch
[email protected]
Major Changes
#1660
2e0c4824
Thanks @saihaj! - Drop Node 12 SupportGraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least.
#1660
f46addd7
Thanks @saihaj! - See the migration guide for more information;Migration from Yoga V2
#1753
eeaced00
Thanks @ardatan! -schema
no longer accepts an object oftypeDefs
andresolvers
but instead you can usecreateSchema
to create a GraphQL schema.#1516
209b1620
Thanks @ardatan! - Now it is possible to decide the returnedContent-Type
by specifying theAccept
header. So ifAccept
header hastext/event-stream
withoutapplication/json
, Yoga respects that returnstext/event-stream
instead ofapplication/json
.#1473
c4b3a9c8
Thanks @ardatan! - BREAKING: RemoveGraphQLYogaError
in favor ofGraphQLError
Check the documentation to see how to use
GraphQLError
Minor Changes
#1610
f4b23387
Thanks @ardatan! - Pass the parsed request as-is and validate the final GraphQLParams in useCheckGraphQLParams#1497
1d7f810a
Thanks @ardatan! - Support a schema factory function that runs per request or a promise to be resolved before the first request.#1662
098e139f
Thanks @ardatan! - - Batching RFC support withbatchingLimit
option to enable batching with an exact limit of requests per batch.onParams
hook that takes a singleGraphQLParams
objectonRequestParse
andonRequestParseDone
hookonRequestParseDone
receives the exact object that is passed by the request parser so it can beGraphQLParams
or an array ofGraphQLParams
so useonParams
if you need to manipulate batched execution params individually.Patch Changes
#1609
74e1f830
Thanks @enisdenjo! -usePreventMutationViaGET
doesn't do assertion if it is notYogaContext
, so it is possible to use Yoga's Envelop instance with other server implementations likegraphql-ws
.#1567
e7a47b56
Thanks @n1ru4l! - Handle invalid POST body gracefully; - Rejectnull
- Reject non-object body - Reject invalid JSON body#1609
74e1f830
Thanks @enisdenjo! - Expose readonlygraphqlEndpoint
inYogaServerInstance
#1616
1d5cde96
Thanks @ardatan! - Supportapplication/graphql-response+json
asAccept
ed content type for the responseUpdated dependencies [
b2407c6a
]:@graphql-yoga/[email protected]
Major Changes
#1660
2e0c4824
Thanks @saihaj! - Drop Node 12 SupportGraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least.
#1660
f46addd7
Thanks @saihaj! - See the migration guide for more information;Migration from Yoga V2
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:@graphql-yoga/[email protected]
Major Changes
#1621
66b87b02
Thanks @enisdenjo! - Implementation of Apollo's federated inline tracingLearn more how to enable inline tracing in the docs
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:@graphql-yoga/[email protected]
Major Changes
#1137
3eebe6f2
Thanks @ardatan! - New Persisted Operations Plugin;https://www.graphql-yoga.com/v3/features/persisted-operations
New Automatic Persisted Queries Plugin;
https://www.graphql-yoga.com/v3/features/automatic-persisted-queries
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:@graphql-yoga/[email protected]
Major Changes
#1137
3eebe6f2
Thanks @ardatan! - New Persisted Operations Plugin;https://www.graphql-yoga.com/v3/features/persisted-operations
New Automatic Persisted Queries Plugin;
https://www.graphql-yoga.com/v3/features/automatic-persisted-queries
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:@graphql-yoga/[email protected]
Major Changes
#1359
5629a5cb
Thanks @ardatan! - New Response Cache Plugin!!!On top of
@envelop/response-cache
, this new plugin allows you to skip execution phase even before all the GraphQL execution phases immediately after the GraphQL request parameters is parsed by Yoga.Also it doesn't need to have
documentString
stored in somewhere in order to get it back during the execution to generate the cache key.All the features of the same except for the following:
session
factory function takesGraphQLParams
andRequest
objects instead of GraphQL context as arguments.type SessionIdFactory = (params: GraphQLParams, request: Request) => Maybe<string>
enabled
function takesGraphQLParams
andRequest
objects instead of GraphQL context as arguments.type EnabledFn = (params: GraphQLParams, request: Request) => boolean
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:@graphql-yoga/[email protected]
Major Changes
#1761
b2407c6a
Thanks @ardatan! - BREAKING:TypedEvent
in favor ofCustomEvent
@whatwg-node/events
as a ponyfill instead of@whatwg-node/fetch
Patch Changes
b2407c6a
]:@graphql-yoga/[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]:[email protected]
Patch Changes
2e0c4824
,f46addd7
,f4b23387
,eeaced00
,74e1f830
,e7a47b56
,1d7f810a
,209b1620
,098e139f
,74e1f830
,c4b3a9c8
,1d5cde96
]: