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
7 changes: 7 additions & 0 deletions .changeset/@graphql-hive_gateway-runtime-1361-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphql-hive/gateway-runtime': patch
---

dependencies updates:

- 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`)
2 changes: 1 addition & 1 deletion e2e/usage-reporting-persisted-operations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"private": true,
"dependencies": {
"@repeaterjs/repeater": "^3.0.6",
"@whatwg-node/server": "^0.10.10"
"@whatwg-node/server": "^0.10.11"
}
}
4 changes: 3 additions & 1 deletion internal/perf/src/memtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ export function memtest(opts: MemtestOptions, setup: () => Promise<Server>) {
frame.callstack.some(
(stack) => stack.name === 'handleMaybePromise',
)
),
) &&
// Anonymous `set` frames are false-positives
!(frame.name === 'set' && frame.file == null),
)
.filter((frame) => {
if (expectedHeavyFrame) {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@types/node": "^22.15.30",
"@whatwg-node/disposablestack": "^0.0.6",
"@whatwg-node/promise-helpers": "^1.3.0",
"@whatwg-node/server": "^0.10.10",
"@whatwg-node/server": "^0.10.11",
"@whatwg-node/server-plugin-cookies": "^1.0.5",
"graphql-ws": "^6.0.6",
"graphql-yoga": "^5.15.1",
Expand Down
15 changes: 6 additions & 9 deletions packages/runtime/tests/hive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ import { describe, expect, it, vi } from 'vitest';
import { createGatewayRuntime } from '../src/createGatewayRuntime';
import { useCustomFetch } from '../src/plugins/useCustomFetch';

// Workaround to use `Request` outside of the handler
function cloneRequest(req: Request): MaybePromise<Request> {
// Only for Bun
if (globalThis.Bun) {
return req.json().then((json) => ({
...req,
headers: req.headers,
json: () => fakePromise(json),
}));
}
return req;
return req.json().then((json) => ({
...req,
headers: req.headers,
json: () => fakePromise(json),
}));
}

function createUpstreamSchema() {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3471,7 +3471,7 @@ __metadata:
resolution: "@e2e/usage-reporting-persisted-operations@workspace:e2e/usage-reporting-persisted-operations"
dependencies:
"@repeaterjs/repeater": "npm:^3.0.6"
"@whatwg-node/server": "npm:^0.10.10"
"@whatwg-node/server": "npm:^0.10.11"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -4109,7 +4109,7 @@ __metadata:
"@whatwg-node/disposablestack": "npm:^0.0.6"
"@whatwg-node/fetch": "npm:^0.10.9"
"@whatwg-node/promise-helpers": "npm:^1.3.0"
"@whatwg-node/server": "npm:^0.10.10"
"@whatwg-node/server": "npm:^0.10.11"
"@whatwg-node/server-plugin-cookies": "npm:^1.0.5"
fets: "npm:^0.8.4"
graphql: "npm:^16.9.0"
Expand Down Expand Up @@ -9344,14 +9344,14 @@ __metadata:
linkType: hard

"@whatwg-node/node-fetch@npm:^0.7.22":
version: 0.7.22
resolution: "@whatwg-node/node-fetch@npm:0.7.22"
version: 0.7.24
resolution: "@whatwg-node/node-fetch@npm:0.7.24"
dependencies:
"@fastify/busboy": "npm:^3.1.1"
"@whatwg-node/disposablestack": "npm:^0.0.6"
"@whatwg-node/promise-helpers": "npm:^1.3.2"
tslib: "npm:^2.6.3"
checksum: 10c0/270e0f3c290cfe813f8715a5c0997a591e89fa2f4334841e21171ab1ac4afc4f799c55b6a3f405156581f8f35acd23f92e5808f5d336baded0053d122d5ddecc
checksum: 10c0/c645870b59356152f4169f2ab29263f3a1560662bed2114de357337008481bc91e20e403aa447d86fc69e3a8fdf1721f2435dab6813279e26b55178266f9535f
languageName: node
linkType: hard

Expand All @@ -9375,16 +9375,16 @@ __metadata:
languageName: node
linkType: hard

"@whatwg-node/server@npm:^0.10.0, @whatwg-node/server@npm:^0.10.10, @whatwg-node/server@npm:^0.10.5":
version: 0.10.10
resolution: "@whatwg-node/server@npm:0.10.10"
"@whatwg-node/server@npm:^0.10.0, @whatwg-node/server@npm:^0.10.11, @whatwg-node/server@npm:^0.10.5":
version: 0.10.11
resolution: "@whatwg-node/server@npm:0.10.11"
dependencies:
"@envelop/instrumentation": "npm:^1.0.0"
"@whatwg-node/disposablestack": "npm:^0.0.6"
"@whatwg-node/fetch": "npm:^0.10.8"
"@whatwg-node/promise-helpers": "npm:^1.3.2"
tslib: "npm:^2.6.3"
checksum: 10c0/3e51434b35a42b32edd1d90e2867f69580a36d122d0a7456f38ccbb886bea5c9b832c54d0c3cd9c8f0c469eeaeff7e566e6db66187edd25050e9e4bb8af4d907
checksum: 10c0/1f11dd160bdceb36d3fc8e5fe9c689f520a96da3116b7b80f6771b60d888c9808f38273540086cb135c0a734df8dea8e11a70b174d8d1c140592aff217e5dede
languageName: node
linkType: hard

Expand Down
Loading