Skip to content

Commit 0f70298

Browse files
authored
fix(runtime): correct the version property (#960)
1 parent f0e3d75 commit 0f70298

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/thirty-radios-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-hive/gateway-runtime': patch
3+
---
4+
5+
Fix the version property in the gateway runtime instance

packages/runtime/src/createGatewayRuntime.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,11 @@ export function createGatewayRuntime<
11711171
fetchAPI ||= yoga.fetchAPI;
11721172

11731173
Object.defineProperties(yoga, {
1174+
version: {
1175+
get() {
1176+
return globalThis.__VERSION__;
1177+
},
1178+
},
11741179
invalidateUnifiedGraph: {
11751180
value: schemaInvalidator,
11761181
configurable: true,

0 commit comments

Comments
 (0)