Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"@apollo/server": "5.0.0",
"@apollo/usage-reporting-protobuf": "4.1.1"
},
"changesets": []
"changesets": [
"fruity-ways-tell"
]
}
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/integration-testsuite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @apollo/server-integration-testsuite

## 5.1.0-rc.0

### Patch Changes

- Updated dependencies [[`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0)]:
- @apollo/server@5.1.0-rc.0

## 5.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/integration-testsuite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/server-integration-testsuite",
"version": "5.0.0",
"version": "5.1.0-rc.0",
"description": "Test suite for Apollo Server integrations",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"@apollo/cache-control-types": "^1.0.3",
"@apollo/client": "^3.6.9",
"@apollo/server": "5.0.0",
"@apollo/server": "5.1.0-rc.0",
"@apollo/usage-reporting-protobuf": "^4.1.1",
"@apollo/utils.createhash": "^3.0.0",
"@apollo/utils.keyvaluecache": "^4.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-response-cache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @apollo/server-plugin-response-cache

## 5.0.1-rc.0

### Patch Changes

- Updated dependencies [[`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0)]:
- @apollo/server@5.1.0-rc.0

## 5.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-response-cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/server-plugin-response-cache",
"version": "5.0.0",
"version": "5.0.1-rc.0",
"description": "Apollo Server full query response cache",
"type": "module",
"main": "dist/cjs/index.js",
Expand Down Expand Up @@ -36,7 +36,7 @@
"@apollo/utils.keyvaluecache": "^4.0.0"
},
"peerDependencies": {
"@apollo/server": "^5.0.0",
"@apollo/server": "^5.0.0 || ^5.1.0-rc",
"graphql": "^16.11.0"
}
}
55 changes: 55 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# @apollo/server

## 5.1.0-rc.0

### Minor Changes

- [#8148](https://github.com/apollographql/apollo-server/pull/8148) [`80a1a1a`](https://github.com/apollographql/apollo-server/commit/80a1a1af12b326d8c0f900bd85a25e14ee9cd9c0) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Apollo Server now supports the incremental delivery protocol (`@defer` and `@stream`) that ships with `graphql@17.0.0-alpha.9`. 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 `graphql@17.0.0-alpha.9` 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 `graphql@17.0.0-alpha.2` and use incremental delivery

You must upgrade to `graphql@17.0.0-alpha.9` 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 `graphql@17.0.0-alpha.9` version are now available using the `Alpha9` suffix:

```ts
import type {
GraphQLExperimentalFormattedInitialIncrementalExecutionResultAlpha9,
GraphQLExperimentalFormattedSubsequentIncrementalExecutionResultAlpha9,
GraphQLExperimentalFormattedIncrementalResultAlpha9,
GraphQLExperimentalFormattedIncrementalDeferResultAlpha9,
GraphQLExperimentalFormattedIncrementalStreamResultAlpha9,
GraphQLExperimentalFormattedCompletedResultAlpha9,
GraphQLExperimentalPendingResultAlpha9,
} from '@apollo/server';
```

## 5.0.0

### BREAKING CHANGES
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/server",
"version": "5.0.0",
"version": "5.1.0-rc.0",
"description": "Core engine for Apollo GraphQL server",
"type": "module",
"main": "dist/cjs/index.js",
Expand Down