Commit ae1be29
Version Packages (#8155)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) 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.
# Releases
## @apollo/[email protected]
### Minor Changes
- [#8148](#8148)
[`80a1a1a`](80a1a1a)
Thanks [@jerelmiller](https://github.com/jerelmiller)! - Apollo Server
now supports the incremental delivery protocol (`@defer` and `@stream`)
that ships with `[email protected]`. To use the current protocol,
clients must send the `Accept` header with a value of `multipart/mixed;
incrementalSpec=v0.2`.
Upgrading to 5.1 will depend on what version of `graphql` you have
installed and whether you already support the incremental delivery
protocol.
## I use `graphql@16` without incremental delivery
Continue using `graphql` v16 with no additional changes. Incremental
delivery won't be available.
## I use `graphql@16` but would like to add support for incremental
delivery
Install `[email protected]` and follow the ["Incremental delivery"
guide](https://www.apollographql.com/docs/apollo-server/workflow/requests#incremental-delivery-experimental)
to add the `@defer` and `@stream` directives to your schema. Clients
should send the `Accept` header with a value of `multipart/mixed;
incrementalSpec=v0.2` to get multipart responses.
## I use `[email protected]` and use incremental delivery
You 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/transform`](https://github.com/yaacovCR/transform) package.
Apollo Server will attempt to load this module when the client specifies
an `Accept` header with a value of `multipart/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 `Alpha2` suffix. If you import these types in your code,
you will need to add the `Alpha2` suffix.
```diff
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 the `Alpha9` suffix:
```ts
import type {
GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha9,
GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha9,
GraphQLExperimentalFormattedIncrementalResultAlpha9,
GraphQLExperimentalFormattedIncrementalDeferResultAlpha9,
GraphQLExperimentalFormattedIncrementalStreamResultAlpha9,
GraphQLExperimentalFormattedCompletedResultAlpha9,
GraphQLExperimentalPendingResultAlpha9,
} from '@apollo/server';
```
## @apollo/[email protected]
### Patch Changes
- Updated dependencies
\[[`80a1a1a`](80a1a1a)]:
- @apollo/[email protected]
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jerel Miller <[email protected]>1 parent 3c3bb8a commit ae1be29
File tree
9 files changed
+72
-86
lines changed- .changeset
- packages
- integration-testsuite
- plugin-response-cache
- server
9 files changed
+72
-86
lines changedThis file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 3 | | |
11 | 4 | | |
12 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
3 | 58 | | |
4 | 59 | | |
5 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments