Skip to content

Commit 4b6a9a5

Browse files
committed
Update to final value of header
1 parent 5db41bb commit 4b6a9a5

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.changeset/slimy-ducks-scream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@apollo/client": patch
33
---
44

5-
Update the `accept` header used with the `GraphQL17Alpha9Handler` to `multipart/mixed;incrementalDeliverySpec=graphql/incremental/v0.1` to ensure the newest incremental delivery format is requested.
5+
Update the `accept` header used with the `GraphQL17Alpha9Handler` to `multipart/mixed;incrementalSpec=v0.2` to ensure the newest incremental delivery format is requested.

.size-limits.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (CJS)": 44849,
3-
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production) (CJS)": 39477,
2+
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (CJS)": 44831,
3+
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production) (CJS)": 39452,
44
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\"": 33875,
55
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production)": 27756
66
}

src/incremental/handlers/graphql17Alpha9.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ export class GraphQL17Alpha9Handler
259259
if (hasDirectives(["defer", "stream"], request.query)) {
260260
const context = request.context ?? {};
261261
const http = (context.http ??= {});
262+
// https://specs.apollo.dev/incremental/v0.2/
262263
http.accept = [
263-
"multipart/mixed;incrementalDeliverySpec=graphql/incremental/v0.1",
264+
"multipart/mixed;incrementalSpec=v0.2",
264265
...(http.accept || []),
265266
];
266267

src/link/http/__tests__/HttpLink.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ describe("HttpLink", () => {
16361636
headers: {
16371637
"content-type": "application/json",
16381638
accept:
1639-
"multipart/mixed;incrementalDeliverySpec=graphql/incremental/v0.1,application/graphql-response+json,application/json;q=0.9",
1639+
"multipart/mixed;incrementalSpec=v0.2,application/graphql-response+json,application/json;q=0.9",
16401640
},
16411641
})
16421642
);
@@ -1744,7 +1744,7 @@ describe("HttpLink", () => {
17441744
headers: {
17451745
"content-type": "application/json",
17461746
accept:
1747-
"multipart/mixed;incrementalDeliverySpec=graphql/incremental/v0.1,application/graphql-response+json,application/json;q=0.9",
1747+
"multipart/mixed;incrementalSpec=v0.2,application/graphql-response+json,application/json;q=0.9",
17481748
},
17491749
})
17501750
);

0 commit comments

Comments
 (0)