Skip to content

Commit 03a648c

Browse files
Upcoming Release Changes (#386)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1fbdf70 commit 03a648c

20 files changed

+134
-76
lines changed

.changeset/@graphql-hive_gateway-390-dependencies.md

-7
This file was deleted.

.changeset/@graphql-hive_gateway-392-dependencies.md

-8
This file was deleted.

.changeset/nervous-cups-scream.md

-7
This file was deleted.

packages/batch-delegate/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @graphql-tools/batch-delegate
22

3+
## 9.0.26
4+
5+
### Patch Changes
6+
7+
- [#382](https://github.com/graphql-hive/gateway/pull/382) [`21e1f05`](https://github.com/graphql-hive/gateway/commit/21e1f05373a78c93b52b5321f1f4e8d7aba17151) Thanks [@ardatan](https://github.com/ardatan)! - Memoize the batched delegation loader by respecting the arguments correctly
8+
9+
[See more details in the PR](https://github.com/ardatan/graphql-tools/pull/5189)
10+
311
## 9.0.25
412

513
### Patch Changes

packages/batch-delegate/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/batch-delegate",
3-
"version": "9.0.25",
3+
"version": "9.0.26",
44
"type": "module",
55
"description": "A set of utils for faster development of GraphQL tools",
66
"repository": {

packages/federation/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @graphql-tools/federation
22

3+
## 3.0.6
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @graphql-tools/stitch@9.4.12
9+
310
## 3.0.5
411

512
### Patch Changes

packages/federation/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/federation",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"type": "module",
55
"description": "Useful tools to create and manipulate GraphQL schemas.",
66
"repository": {

packages/fusion-runtime/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @graphql-mesh/fusion-runtime
22

3+
## 0.10.26
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @graphql-tools/stitch@9.4.12
9+
- @graphql-tools/federation@3.0.6
10+
311
## 0.10.25
412

513
### Patch Changes

packages/fusion-runtime/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-mesh/fusion-runtime",
3-
"version": "0.10.25",
3+
"version": "0.10.26",
44
"type": "module",
55
"description": "Runtime for GraphQL Mesh Fusion Supergraph",
66
"repository": {

packages/gateway/CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# @graphql-hive/gateway
22

3+
## 1.7.5
4+
5+
### Patch Changes
6+
7+
- [#390](https://github.com/graphql-hive/gateway/pull/390) [`708c32f`](https://github.com/graphql-hive/gateway/commit/708c32f30bd0950e0e397a50c64af3ed9bd40d5c) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
8+
9+
- Updated dependency [`commander@^13.0.0` ↗︎](https://www.npmjs.com/package/commander/v/13.0.0) (from `^12.0.0`, in `dependencies`)
10+
11+
- [#392](https://github.com/graphql-hive/gateway/pull/392) [`121751d`](https://github.com/graphql-hive/gateway/commit/121751db50bc13454122f4decbba715ba8d400c2) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
12+
13+
- Updated dependency [`@commander-js/extra-typings@^13.0.0` ↗︎](https://www.npmjs.com/package/@commander-js/extra-typings/v/13.0.0) (from `^12.1.0`, in `dependencies`)
14+
- Updated dependency [`commander@^13.0.0` ↗︎](https://www.npmjs.com/package/commander/v/13.0.0) (from `^12.0.0`, in `dependencies`)
15+
16+
- Updated dependencies []:
17+
- @graphql-mesh/hmac-upstream-signature@1.2.19
18+
- @graphql-hive/gateway-runtime@1.4.5
19+
- @graphql-mesh/plugin-opentelemetry@1.3.33
20+
- @graphql-mesh/plugin-prometheus@1.3.21
21+
322
## 1.7.4
423

524
### Patch Changes

packages/gateway/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-hive/gateway",
3-
"version": "1.7.4",
3+
"version": "1.7.5",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/gateway/src/commands/supergraph.ts

+52-46
Original file line numberDiff line numberDiff line change
@@ -280,56 +280,62 @@ export async function runSupergraph(
280280
}
281281
}
282282

283-
if (absSchemaPath && cluster.isPrimary) {
284-
let watcher: typeof import('@parcel/watcher') | undefined;
285-
try {
286-
watcher = await import('@parcel/watcher');
287-
} catch (e) {
288-
if (Object(e).code !== 'MODULE_NOT_FOUND') {
289-
log.debug('Problem while importing @parcel/watcher', e);
290-
}
291-
log.warn(
292-
`If you want to enable hot reloading when ${absSchemaPath} changes, make sure "@parcel/watcher" is available`,
293-
);
294-
}
295-
if (watcher) {
283+
if (absSchemaPath) {
284+
// Polling should not be enabled when watching the file
285+
delete config.pollingInterval;
286+
if (cluster.isPrimary) {
287+
let watcher: typeof import('@parcel/watcher') | undefined;
296288
try {
297-
log.info(`Watching ${absSchemaPath} for changes`);
298-
const absSupergraphDirname = dirname(absSchemaPath);
299-
const subscription = await watcher.subscribe(
300-
absSupergraphDirname,
301-
(err, events) => {
302-
if (err) {
303-
log.error(err);
304-
return;
305-
}
306-
if (
307-
events.some(
308-
(event) =>
309-
event.path === absSchemaPath && event.type === 'update',
310-
)
311-
) {
312-
log.info(`${absSchemaPath} changed. Invalidating supergraph...`);
313-
if (config.fork && config.fork > 1) {
314-
for (const workerId in cluster.workers) {
315-
cluster.workers[workerId]!.send('invalidateUnifiedGraph');
289+
watcher = await import('@parcel/watcher');
290+
} catch (e) {
291+
if (Object(e).code !== 'MODULE_NOT_FOUND') {
292+
log.debug('Problem while importing @parcel/watcher', e);
293+
}
294+
log.warn(
295+
`If you want to enable hot reloading when ${absSchemaPath} changes, make sure "@parcel/watcher" is available`,
296+
);
297+
}
298+
if (watcher) {
299+
try {
300+
log.info(`Watching ${absSchemaPath} for changes`);
301+
const absSupergraphDirname = dirname(absSchemaPath);
302+
const subscription = await watcher.subscribe(
303+
absSupergraphDirname,
304+
(err, events) => {
305+
if (err) {
306+
log.error(err);
307+
return;
308+
}
309+
if (
310+
events.some(
311+
(event) =>
312+
event.path === absSchemaPath && event.type === 'update',
313+
)
314+
) {
315+
log.info(
316+
`${absSchemaPath} changed. Invalidating supergraph...`,
317+
);
318+
if (config.fork && config.fork > 1) {
319+
for (const workerId in cluster.workers) {
320+
cluster.workers[workerId]!.send('invalidateUnifiedGraph');
321+
}
322+
} else {
323+
runtime.invalidateUnifiedGraph();
316324
}
317-
} else {
318-
runtime.invalidateUnifiedGraph();
319325
}
320-
}
321-
},
322-
);
323-
registerTerminateHandler((signal) => {
324-
log.info(`Closing watcher for ${absSchemaPath} on ${signal}`);
325-
return subscription.unsubscribe().catch((err) => {
326-
// https://github.com/parcel-bundler/watcher/issues/129
327-
log.error(`Failed to close watcher for ${absSchemaPath}!`, err);
326+
},
327+
);
328+
registerTerminateHandler((signal) => {
329+
log.info(`Closing watcher for ${absSchemaPath} on ${signal}`);
330+
return subscription.unsubscribe().catch((err) => {
331+
// https://github.com/parcel-bundler/watcher/issues/129
332+
log.error(`Failed to close watcher for ${absSchemaPath}!`, err);
333+
});
328334
});
329-
});
330-
} catch (err) {
331-
log.error(`Failed to watch ${absSchemaPath}!`);
332-
throw err;
335+
} catch (err) {
336+
log.error(`Failed to watch ${absSchemaPath}!`);
337+
throw err;
338+
}
333339
}
334340
}
335341
}

packages/plugins/opentelemetry/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @graphql-mesh/plugin-opentelemetry
22

3+
## 1.3.33
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @graphql-hive/gateway-runtime@1.4.5
9+
310
## 1.3.32
411

512
### Patch Changes

packages/plugins/opentelemetry/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-mesh/plugin-opentelemetry",
3-
"version": "1.3.32",
3+
"version": "1.3.33",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/prometheus/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @graphql-mesh/plugin-prometheus
22

3+
## 1.3.21
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @graphql-hive/[email protected]
9+
310
## 1.3.20
411

512
### Patch Changes

packages/plugins/prometheus/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-mesh/plugin-prometheus",
3-
"version": "1.3.20",
3+
"version": "1.3.21",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/runtime/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @graphql-hive/gateway-runtime
22

3+
## 1.4.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`21e1f05`](https://github.com/graphql-hive/gateway/commit/21e1f05373a78c93b52b5321f1f4e8d7aba17151)]:
8+
- @graphql-tools/batch-delegate@9.0.26
9+
- @graphql-mesh/hmac-upstream-signature@1.2.19
10+
- @graphql-tools/stitch@9.4.12
11+
- @graphql-tools/federation@3.0.6
12+
- @graphql-mesh/fusion-runtime@0.10.26
13+
314
## 1.4.4
415

516
### Patch Changes

packages/runtime/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-hive/gateway-runtime",
3-
"version": "1.4.4",
3+
"version": "1.4.5",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/stitch/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @graphql-tools/stitch
22

3+
## 9.4.12
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`21e1f05`](https://github.com/graphql-hive/gateway/commit/21e1f05373a78c93b52b5321f1f4e8d7aba17151)]:
8+
- @graphql-tools/batch-delegate@9.0.26
9+
310
## 9.4.11
411

512
### Patch Changes

packages/stitch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-tools/stitch",
3-
"version": "9.4.11",
3+
"version": "9.4.12",
44
"type": "module",
55
"description": "A set of utils for faster development of GraphQL tools",
66
"repository": {

0 commit comments

Comments
 (0)