Skip to content

Commit 2fc37d2

Browse files
chore(deps): update and migrate (#31)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2274880 commit 2fc37d2

File tree

14 files changed

+2128
-2139
lines changed

14 files changed

+2128
-2139
lines changed

.yarn/releases/yarn-3.2.4.cjs renamed to .yarn/releases/yarn-3.3.1.cjs

+310-288
Large diffs are not rendered by default.

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
55
spec: '@yarnpkg/plugin-interactive-tools'
66

7-
yarnPath: .yarn/releases/yarn-3.2.4.cjs
7+
yarnPath: .yarn/releases/yarn-3.3.1.cjs

docs/interfaces/handler.HandlerOptions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ will be created from the provided schema.
253253
| `documentAST` | `DocumentNode` | - |
254254
| `rules?` | readonly `ValidationRule`[] | - |
255255
| `options?` | `Object` | - |
256-
| `typeInfo?` | `TypeInfo` | **`Deprecated`** will be removed in 17.0.0 |
256+
| `typeInfo?` | `TypeInfo` | **`Deprecated`** will be removed in 17.0.0 |
257257

258258
##### Returns
259259

docs/interfaces/use_fetch.FetchAPI.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,42 @@ The necessary API from the fetch environment for the handler.
1818

1919
### ReadableStream
2020

21-
**ReadableStream**: <R\>(`underlyingSource?`: `UnderlyingSource`<`R`\>, `strategy?`: `QueuingStrategy`<`R`\>) => `ReadableStream`<`R`\>
21+
**ReadableStream**: (`underlyingSource`: `UnderlyingByteSource`, `strategy?`: {}) => `ReadableStream`<`Uint8Array`\><R\>(`underlyingSource`: `UnderlyingDefaultSource`<`R`\>, `strategy?`: `QueuingStrategy`<`R`\>) => `ReadableStream`<`R`\><R\>(`underlyingSource?`: `UnderlyingSource`<`R`\>, `strategy?`: `QueuingStrategy`<`R`\>) => `ReadableStream`<`R`\>
2222

2323
#### Type declaration
2424

25+
**new FetchAPI**(`underlyingSource`, `strategy?`): `ReadableStream`<`Uint8Array`\>
26+
27+
##### Parameters
28+
29+
| Name | Type |
30+
| :------ | :------ |
31+
| `underlyingSource` | `UnderlyingByteSource` |
32+
| `strategy?` | `Object` |
33+
34+
##### Returns
35+
36+
`ReadableStream`<`Uint8Array`\>
37+
38+
**new FetchAPI**<`R`\>(`underlyingSource`, `strategy?`): `ReadableStream`<`R`\>
39+
40+
##### Type parameters
41+
42+
| Name | Type |
43+
| :------ | :------ |
44+
| `R` | `any` |
45+
46+
##### Parameters
47+
48+
| Name | Type |
49+
| :------ | :------ |
50+
| `underlyingSource` | `UnderlyingDefaultSource`<`R`\> |
51+
| `strategy?` | `QueuingStrategy`<`R`\> |
52+
53+
##### Returns
54+
55+
`ReadableStream`<`R`\>
56+
2557
**new FetchAPI**<`R`\>(`underlyingSource?`, `strategy?`): `ReadableStream`<`R`\>
2658

2759
##### Type parameters

implementations/apollo-server/README.md

+66-96
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ _* This report was auto-generated by graphql-http_
33
# GraphQL over HTTP audit report
44

55
- **79** audits in total
6-
-**43** pass
7-
- ⚠️ **36** warnings (optional)
6+
-**53** pass
7+
- ⚠️ **26** warnings (optional)
88

99
## Passing
1010
1. SHOULD accept application/graphql-response+json and match the content-type
@@ -25,31 +25,41 @@ _* This report was auto-generated by graphql-http_
2525
16. SHOULD use 400 status code on array {query} parameter when accepting application/graphql-response+json
2626
17. SHOULD allow string {query} parameter when accepting application/graphql-response+json
2727
18. MUST allow string {query} parameter when accepting application/json
28-
19. SHOULD allow string {operationName} parameter when accepting application/graphql-response+json
29-
20. MUST allow string {operationName} parameter when accepting application/json
30-
21. SHOULD allow null {variables} parameter when accepting application/graphql-response+json
31-
22. MUST allow null {variables} parameter when accepting application/json
32-
23. SHOULD allow null {operationName} parameter when accepting application/graphql-response+json
33-
24. MUST allow null {operationName} parameter when accepting application/json
34-
25. SHOULD allow null {extensions} parameter when accepting application/graphql-response+json
35-
26. MUST allow null {extensions} parameter when accepting application/json
36-
27. SHOULD use 400 status code on string {variables} parameter when accepting application/graphql-response+json
37-
28. SHOULD allow map {variables} parameter when accepting application/graphql-response+json
38-
29. MUST allow map {variables} parameter when accepting application/json
39-
30. SHOULD use 400 status code on string {extensions} parameter when accepting application/graphql-response+json
40-
31. SHOULD allow map {extensions} parameter when accepting application/graphql-response+json
41-
32. MUST allow map {extensions} parameter when accepting application/json
42-
33. SHOULD use 4xx or 5xx status codes on JSON parsing failure when accepting application/graphql-response+json
43-
34. SHOULD use 400 status code on JSON parsing failure when accepting application/graphql-response+json
44-
35. SHOULD use 4xx or 5xx status codes if parameters are invalid when accepting application/graphql-response+json
45-
36. SHOULD use 400 status code if parameters are invalid when accepting application/graphql-response+json
46-
37. SHOULD not contain the data entry if parameters are invalid when accepting application/graphql-response+json
47-
38. SHOULD use 4xx or 5xx status codes on document parsing failure when accepting application/graphql-response+json
48-
39. SHOULD use 400 status code on document parsing failure when accepting application/graphql-response+json
49-
40. SHOULD not contain the data entry on document parsing failure when accepting application/graphql-response+json
50-
41. SHOULD use 4xx or 5xx status codes on document validation failure when accepting application/graphql-response+json
51-
42. SHOULD use 400 status code on document validation failure when accepting application/graphql-response+json
52-
43. SHOULD not contain the data entry on document validation failure when accepting application/graphql-response+json
28+
19. SHOULD use 400 status code on object {operationName} parameter when accepting application/graphql-response+json
29+
20. SHOULD use 400 status code on number {operationName} parameter when accepting application/graphql-response+json
30+
21. SHOULD use 400 status code on boolean {operationName} parameter when accepting application/graphql-response+json
31+
22. SHOULD use 400 status code on array {operationName} parameter when accepting application/graphql-response+json
32+
23. SHOULD allow string {operationName} parameter when accepting application/graphql-response+json
33+
24. MUST allow string {operationName} parameter when accepting application/json
34+
25. SHOULD allow null {variables} parameter when accepting application/graphql-response+json
35+
26. MUST allow null {variables} parameter when accepting application/json
36+
27. SHOULD allow null {operationName} parameter when accepting application/graphql-response+json
37+
28. MUST allow null {operationName} parameter when accepting application/json
38+
29. SHOULD allow null {extensions} parameter when accepting application/graphql-response+json
39+
30. MUST allow null {extensions} parameter when accepting application/json
40+
31. SHOULD use 400 status code on string {variables} parameter when accepting application/graphql-response+json
41+
32. SHOULD use 400 status code on number {variables} parameter when accepting application/graphql-response+json
42+
33. SHOULD use 400 status code on boolean {variables} parameter when accepting application/graphql-response+json
43+
34. SHOULD use 400 status code on array {variables} parameter when accepting application/graphql-response+json
44+
35. SHOULD allow map {variables} parameter when accepting application/graphql-response+json
45+
36. MUST allow map {variables} parameter when accepting application/json
46+
37. SHOULD use 400 status code on string {extensions} parameter when accepting application/graphql-response+json
47+
38. SHOULD use 400 status code on number {extensions} parameter when accepting application/graphql-response+json
48+
39. SHOULD use 400 status code on boolean {extensions} parameter when accepting application/graphql-response+json
49+
40. SHOULD use 400 status code on array {extensions} parameter when accepting application/graphql-response+json
50+
41. SHOULD allow map {extensions} parameter when accepting application/graphql-response+json
51+
42. MUST allow map {extensions} parameter when accepting application/json
52+
43. SHOULD use 4xx or 5xx status codes on JSON parsing failure when accepting application/graphql-response+json
53+
44. SHOULD use 400 status code on JSON parsing failure when accepting application/graphql-response+json
54+
45. SHOULD use 4xx or 5xx status codes if parameters are invalid when accepting application/graphql-response+json
55+
46. SHOULD use 400 status code if parameters are invalid when accepting application/graphql-response+json
56+
47. SHOULD not contain the data entry if parameters are invalid when accepting application/graphql-response+json
57+
48. SHOULD use 4xx or 5xx status codes on document parsing failure when accepting application/graphql-response+json
58+
49. SHOULD use 400 status code on document parsing failure when accepting application/graphql-response+json
59+
50. SHOULD not contain the data entry on document parsing failure when accepting application/graphql-response+json
60+
51. SHOULD use 4xx or 5xx status codes on document validation failure when accepting application/graphql-response+json
61+
52. SHOULD use 400 status code on document validation failure when accepting application/graphql-response+json
62+
53. SHOULD not contain the data entry on document validation failure when accepting application/graphql-response+json
5363

5464
## Warnings
5565
The server _SHOULD_ support these, but is not required.
@@ -81,119 +91,79 @@ Status code 400 is not 200
8191
```
8292
Status code 400 is not 200
8393
```
84-
8. SHOULD use 400 status code on object {operationName} parameter when accepting application/graphql-response+json<br />
94+
8. SHOULD use 200 status code with errors field on object {operationName} parameter when accepting application/json<br />
8595
```
86-
Status code 200 is not 400
87-
```
88-
9. SHOULD use 400 status code on number {operationName} parameter when accepting application/graphql-response+json<br />
89-
```
90-
Status code 200 is not 400
91-
```
92-
10. SHOULD use 400 status code on boolean {operationName} parameter when accepting application/graphql-response+json<br />
93-
```
94-
Status code 200 is not 400
95-
```
96-
11. SHOULD use 400 status code on array {operationName} parameter when accepting application/graphql-response+json<br />
97-
```
98-
Status code 200 is not 400
99-
```
100-
12. SHOULD use 200 status code with errors field on object {operationName} parameter when accepting application/json<br />
101-
```
102-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
103-
```
104-
13. SHOULD use 200 status code with errors field on number {operationName} parameter when accepting application/json<br />
105-
```
106-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
107-
```
108-
14. SHOULD use 200 status code with errors field on boolean {operationName} parameter when accepting application/json<br />
109-
```
110-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
111-
```
112-
15. SHOULD use 200 status code with errors field on array {operationName} parameter when accepting application/json<br />
113-
```
114-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
115-
```
116-
16. SHOULD use 400 status code on number {variables} parameter when accepting application/graphql-response+json<br />
117-
```
118-
Status code 200 is not 400
119-
```
120-
17. SHOULD use 400 status code on boolean {variables} parameter when accepting application/graphql-response+json<br />
121-
```
122-
Status code 200 is not 400
123-
```
124-
18. SHOULD use 400 status code on array {variables} parameter when accepting application/graphql-response+json<br />
125-
```
126-
Status code 200 is not 400
96+
Status code 400 is not 200
12797
```
128-
19. SHOULD use 200 status code with errors field on string {variables} parameter when accepting application/json<br />
98+
9. SHOULD use 200 status code with errors field on number {operationName} parameter when accepting application/json<br />
12999
```
130100
Status code 400 is not 200
131101
```
132-
20. SHOULD use 200 status code with errors field on number {variables} parameter when accepting application/json<br />
102+
10. SHOULD use 200 status code with errors field on boolean {operationName} parameter when accepting application/json<br />
133103
```
134-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
104+
Status code 400 is not 200
135105
```
136-
21. SHOULD use 200 status code with errors field on boolean {variables} parameter when accepting application/json<br />
106+
11. SHOULD use 200 status code with errors field on array {operationName} parameter when accepting application/json<br />
137107
```
138-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
108+
Status code 400 is not 200
139109
```
140-
22. SHOULD use 200 status code with errors field on array {variables} parameter when accepting application/json<br />
110+
12. SHOULD use 200 status code with errors field on string {variables} parameter when accepting application/json<br />
141111
```
142-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
112+
Status code 400 is not 200
143113
```
144-
23. MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/graphql-response+json<br />
114+
13. SHOULD use 200 status code with errors field on number {variables} parameter when accepting application/json<br />
145115
```
146116
Status code 400 is not 200
147117
```
148-
24. MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/json<br />
118+
14. SHOULD use 200 status code with errors field on boolean {variables} parameter when accepting application/json<br />
149119
```
150120
Status code 400 is not 200
151121
```
152-
25. SHOULD use 400 status code on number {extensions} parameter when accepting application/graphql-response+json<br />
122+
15. SHOULD use 200 status code with errors field on array {variables} parameter when accepting application/json<br />
153123
```
154-
Status code 200 is not 400
124+
Status code 400 is not 200
155125
```
156-
26. SHOULD use 400 status code on boolean {extensions} parameter when accepting application/graphql-response+json<br />
126+
16. MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/graphql-response+json<br />
157127
```
158-
Status code 200 is not 400
128+
Status code 400 is not 200
159129
```
160-
27. SHOULD use 400 status code on array {extensions} parameter when accepting application/graphql-response+json<br />
130+
17. MAY allow URL-encoded JSON string {variables} parameter in GETs when accepting application/json<br />
161131
```
162-
Status code 200 is not 400
132+
Status code 400 is not 200
163133
```
164-
28. SHOULD use 200 status code with errors field on string {extensions} parameter when accepting application/json<br />
134+
18. SHOULD use 200 status code with errors field on string {extensions} parameter when accepting application/json<br />
165135
```
166136
Status code 400 is not 200
167137
```
168-
29. SHOULD use 200 status code with errors field on number {extensions} parameter when accepting application/json<br />
138+
19. SHOULD use 200 status code with errors field on number {extensions} parameter when accepting application/json<br />
169139
```
170-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
140+
Status code 400 is not 200
171141
```
172-
30. SHOULD use 200 status code with errors field on boolean {extensions} parameter when accepting application/json<br />
142+
20. SHOULD use 200 status code with errors field on boolean {extensions} parameter when accepting application/json<br />
173143
```
174-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
144+
Status code 400 is not 200
175145
```
176-
31. SHOULD use 200 status code with errors field on array {extensions} parameter when accepting application/json<br />
146+
21. SHOULD use 200 status code with errors field on array {extensions} parameter when accepting application/json<br />
177147
```
178-
Execution result {"data":{"__typename":"Query"}} does not have a property 'errors'
148+
Status code 400 is not 200
179149
```
180-
32. SHOULD use 200 status code on JSON parsing failure when accepting application/json<br />
150+
22. SHOULD use 200 status code on JSON parsing failure when accepting application/json<br />
181151
```
182152
Status code 400 is not 200
183153
```
184-
33. SHOULD use 200 status code if parameters are invalid when accepting application/json<br />
154+
23. SHOULD use 200 status code if parameters are invalid when accepting application/json<br />
185155
```
186156
Status code 400 is not 200
187157
```
188-
34. SHOULD use 200 status code on document parsing failure when accepting application/json<br />
158+
24. SHOULD use 200 status code on document parsing failure when accepting application/json<br />
189159
```
190160
Status code 400 is not 200
191161
```
192-
35. SHOULD use 200 status code on document validation failure when accepting application/json<br />
162+
25. SHOULD use 200 status code on document validation failure when accepting application/json<br />
193163
```
194164
Status code 400 is not 200
195165
```
196-
36. SHOULD not contain the data entry on JSON parsing failure when accepting application/graphql-response+json<br />
166+
26. SHOULD not contain the data entry on JSON parsing failure when accepting application/graphql-response+json<br />
197167
```
198168
Response body is not valid JSON. Got "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>SyntaxError: Unexpected end of JSON input<br> &nbsp; &nbsp;at JSON.parse (&lt;anonymous&gt;)<br> &nbsp; &nbsp;at parse (/home/runner/work/graphql-http/graphql-http/node_modules/body-parser/lib/types/json.js:89:19)<br> &nbsp; &nbsp;at /home/runner/work/graphql-http/graphql-http/node_modules/body-parser/lib/read.js:128:18<br> &nbsp; &nbsp;at AsyncResource.runInAsyncScope (node:async_hooks:203:9)<br> &nbsp; &nbsp;at invokeCallback (/home/runner/work/graphql-http/graphql-http/node_modules/raw-body/index.js:231:16)<br> &nbsp; &nbsp;at done (/home/runner/work/graphql-http/graphql-http/node_modules/raw-body/index.js:220:7)<br> &nbsp; &nbsp;at IncomingMessage.onEnd (/home/runner/work/graphql-http/graphql-http/node_modules/raw-body/index.js:280:7)<br> &nbsp; &nbsp;at IncomingMessage.emit (node:events:513:28)<br> &nbsp; &nbsp;at endReadableNT (node:internal/streams/rea...
199169
```

implementations/apollo-server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "node ."
88
},
99
"dependencies": {
10-
"@apollo/server": "^4.1.1",
10+
"@apollo/server": "^4.3.0",
1111
"graphql": "^16.6.0"
1212
}
1313
}

0 commit comments

Comments
 (0)