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 main, this PR will be updated.
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@apollo/[email protected]
Minor Changes
#8148
80a1a1aThanks @jerelmiller! - Apollo Server now supports the incremental delivery protocol (@deferand@stream) that ships with[email protected]. To use the current protocol, clients must send theAcceptheader with a value ofmultipart/mixed; incrementalSpec=v0.2.Upgrading to 5.1 will depend on what version of
graphqlyou have installed and whether you already support the incremental delivery protocol.I use
graphql@16without incremental deliveryContinue using
graphqlv16 with no additional changes. Incremental delivery won't be available.I use
graphql@16but would like to add support for incremental deliveryInstall
[email protected]and follow the "Incremental delivery" guide to add the@deferand@streamdirectives to your schema. Clients should send theAcceptheader with a value ofmultipart/mixed; incrementalSpec=v0.2to get multipart responses.I use
[email protected]and use incremental deliveryYou must upgrade to
[email protected]to continue using incremental delivery. If you'd like to continue providing support for the legacy incremental protocol, install the@yaacovcr/transformpackage. Apollo Server will attempt to load this module when the client specifies anAcceptheader with a value ofmultipart/mixed; deferSpec=20220824. If this package is not installed, an error is returned by the server.Because Apollo Server now supports multiple versions of the incremental delivery types, the existing incremental delivery types have been renamed with an
Alpha2suffix. If you import these types in your code, you will need to add theAlpha2suffix.import type { - GraphQLExperimentalFormattedInitialIncrementalExecutionResult, + GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha2, - GraphQLExperimentalFormattedSubsequentIncrementalExecutionResult, + GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha2, - GraphQLExperimentalFormattedIncrementalResult, + GraphQLExperimentalFormattedIncrementalResultAlpha2, - GraphQLExperimentalFormattedIncrementalDeferResult, + GraphQLExperimentalFormattedIncrementalDeferResultAlpha2, - GraphQLExperimentalFormattedIncrementalStreamResult, + GraphQLExperimentalFormattedIncrementalStreamResultAlpha2, } from '@apollo/server';Incremental delivery types for the
[email protected]version are now available using theAlpha9suffix:@apollo/[email protected]
Patch Changes
80a1a1a]:@apollo/[email protected]
Patch Changes
80a1a1a]: