Skip to content

Commit 38e5173

Browse files
Bump whatwg-node with 'more' latest improvements (#1361)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6cedc05 commit 38e5173

File tree

6 files changed

+27
-21
lines changed

6 files changed

+27
-21
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@graphql-hive/gateway-runtime': patch
3+
---
4+
5+
dependencies updates:
6+
7+
- Updated dependency [`@whatwg-node/server@^0.10.11` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.10.11) (from `^0.10.10`, in `dependencies`)

e2e/usage-reporting-persisted-operations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"private": true,
44
"dependencies": {
55
"@repeaterjs/repeater": "^3.0.6",
6-
"@whatwg-node/server": "^0.10.10"
6+
"@whatwg-node/server": "^0.10.11"
77
}
88
}

internal/perf/src/memtest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ export function memtest(opts: MemtestOptions, setup: () => Promise<Server>) {
232232
frame.callstack.some(
233233
(stack) => stack.name === 'handleMaybePromise',
234234
)
235-
),
235+
) &&
236+
// Anonymous `set` frames are false-positives
237+
!(frame.name === 'set' && frame.file == null),
236238
)
237239
.filter((frame) => {
238240
if (expectedHeavyFrame) {

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@types/node": "^22.15.30",
7575
"@whatwg-node/disposablestack": "^0.0.6",
7676
"@whatwg-node/promise-helpers": "^1.3.0",
77-
"@whatwg-node/server": "^0.10.10",
77+
"@whatwg-node/server": "^0.10.11",
7878
"@whatwg-node/server-plugin-cookies": "^1.0.5",
7979
"graphql-ws": "^6.0.6",
8080
"graphql-yoga": "^5.15.1",

packages/runtime/tests/hive.spec.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ import { describe, expect, it, vi } from 'vitest';
2929
import { createGatewayRuntime } from '../src/createGatewayRuntime';
3030
import { useCustomFetch } from '../src/plugins/useCustomFetch';
3131

32+
// Workaround to use `Request` outside of the handler
3233
function cloneRequest(req: Request): MaybePromise<Request> {
33-
// Only for Bun
34-
if (globalThis.Bun) {
35-
return req.json().then((json) => ({
36-
...req,
37-
headers: req.headers,
38-
json: () => fakePromise(json),
39-
}));
40-
}
41-
return req;
34+
return req.json().then((json) => ({
35+
...req,
36+
headers: req.headers,
37+
json: () => fakePromise(json),
38+
}));
4239
}
4340

4441
function createUpstreamSchema() {

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ __metadata:
34713471
resolution: "@e2e/usage-reporting-persisted-operations@workspace:e2e/usage-reporting-persisted-operations"
34723472
dependencies:
34733473
"@repeaterjs/repeater": "npm:^3.0.6"
3474-
"@whatwg-node/server": "npm:^0.10.10"
3474+
"@whatwg-node/server": "npm:^0.10.11"
34753475
languageName: unknown
34763476
linkType: soft
34773477

@@ -4109,7 +4109,7 @@ __metadata:
41094109
"@whatwg-node/disposablestack": "npm:^0.0.6"
41104110
"@whatwg-node/fetch": "npm:^0.10.9"
41114111
"@whatwg-node/promise-helpers": "npm:^1.3.0"
4112-
"@whatwg-node/server": "npm:^0.10.10"
4112+
"@whatwg-node/server": "npm:^0.10.11"
41134113
"@whatwg-node/server-plugin-cookies": "npm:^1.0.5"
41144114
fets: "npm:^0.8.4"
41154115
graphql: "npm:^16.9.0"
@@ -9344,14 +9344,14 @@ __metadata:
93449344
linkType: hard
93459345

93469346
"@whatwg-node/node-fetch@npm:^0.7.22":
9347-
version: 0.7.22
9348-
resolution: "@whatwg-node/node-fetch@npm:0.7.22"
9347+
version: 0.7.24
9348+
resolution: "@whatwg-node/node-fetch@npm:0.7.24"
93499349
dependencies:
93509350
"@fastify/busboy": "npm:^3.1.1"
93519351
"@whatwg-node/disposablestack": "npm:^0.0.6"
93529352
"@whatwg-node/promise-helpers": "npm:^1.3.2"
93539353
tslib: "npm:^2.6.3"
9354-
checksum: 10c0/270e0f3c290cfe813f8715a5c0997a591e89fa2f4334841e21171ab1ac4afc4f799c55b6a3f405156581f8f35acd23f92e5808f5d336baded0053d122d5ddecc
9354+
checksum: 10c0/c645870b59356152f4169f2ab29263f3a1560662bed2114de357337008481bc91e20e403aa447d86fc69e3a8fdf1721f2435dab6813279e26b55178266f9535f
93559355
languageName: node
93569356
linkType: hard
93579357

@@ -9375,16 +9375,16 @@ __metadata:
93759375
languageName: node
93769376
linkType: hard
93779377

9378-
"@whatwg-node/server@npm:^0.10.0, @whatwg-node/server@npm:^0.10.10, @whatwg-node/server@npm:^0.10.5":
9379-
version: 0.10.10
9380-
resolution: "@whatwg-node/server@npm:0.10.10"
9378+
"@whatwg-node/server@npm:^0.10.0, @whatwg-node/server@npm:^0.10.11, @whatwg-node/server@npm:^0.10.5":
9379+
version: 0.10.11
9380+
resolution: "@whatwg-node/server@npm:0.10.11"
93819381
dependencies:
93829382
"@envelop/instrumentation": "npm:^1.0.0"
93839383
"@whatwg-node/disposablestack": "npm:^0.0.6"
93849384
"@whatwg-node/fetch": "npm:^0.10.8"
93859385
"@whatwg-node/promise-helpers": "npm:^1.3.2"
93869386
tslib: "npm:^2.6.3"
9387-
checksum: 10c0/3e51434b35a42b32edd1d90e2867f69580a36d122d0a7456f38ccbb886bea5c9b832c54d0c3cd9c8f0c469eeaeff7e566e6db66187edd25050e9e4bb8af4d907
9387+
checksum: 10c0/1f11dd160bdceb36d3fc8e5fe9c689f520a96da3116b7b80f6771b60d888c9808f38273540086cb135c0a734df8dea8e11a70b174d8d1c140592aff217e5dede
93889388
languageName: node
93899389
linkType: hard
93909390

0 commit comments

Comments
 (0)