Skip to content

Commit 2e3ce14

Browse files
Cleanup unnecessary peer dependencies (#695)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b864f23 commit 2e3ce14

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
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+
- Removed dependency [`@parcel/watcher@^2.1.0` ↗︎](https://www.npmjs.com/package/@parcel/watcher/v/2.1.0) (from `peerDependencies`)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@graphql-mesh/plugin-prometheus': patch
3+
---
4+
5+
dependencies updates:
6+
7+
- Removed dependency [`graphql-yoga@^5.10.11` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.10.11) (from `peerDependencies`)

packages/plugins/prometheus/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
},
4141
"peerDependencies": {
4242
"graphql": "^15.9.0 || ^16.9.0",
43-
"graphql-yoga": "^5.10.11",
4443
"prom-client": "^13 || ^14.0.0 || ^15.0.0"
4544
},
4645
"dependencies": {

packages/plugins/prometheus/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ import {
1313
getHeadersObj,
1414
loadFromModuleExportExpression,
1515
} from '@graphql-mesh/utils';
16-
import type { ExecutionRequest, ExecutionResult } from '@graphql-tools/utils';
16+
import {
17+
isAsyncIterable,
18+
type ExecutionRequest,
19+
type ExecutionResult,
20+
} from '@graphql-tools/utils';
1721
import type {
1822
CounterAndLabels,
1923
CounterMetricOption,
@@ -32,7 +36,7 @@ import {
3236
usePrometheus as useYogaPrometheus,
3337
} from '@graphql-yoga/plugin-prometheus';
3438
import { DisposableSymbols } from '@whatwg-node/disposablestack';
35-
import { isAsyncIterable, type Plugin as YogaPlugin } from 'graphql-yoga';
39+
import { type Plugin as YogaPlugin } from 'graphql-yoga';
3640
import { register as defaultRegistry, Registry } from 'prom-client';
3741

3842
export { createCounter, createHistogram, createSummary };

packages/runtime/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,8 @@
4141
"prepack": "yarn generate-landing-page && yarn build"
4242
},
4343
"peerDependencies": {
44-
"@parcel/watcher": "^2.1.0",
4544
"graphql": "^15.9.0 || ^16.9.0"
4645
},
47-
"peerDependenciesMeta": {
48-
"@parcel/watcher": {
49-
"optional": true
50-
}
51-
},
5246
"dependencies": {
5347
"@envelop/core": "^5.0.0",
5448
"@envelop/disable-introspection": "^7.0.0",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,11 +3299,7 @@ __metadata:
32993299
tslib: "npm:^2.8.1"
33003300
tsx: "npm:4.19.3"
33013301
peerDependencies:
3302-
"@parcel/watcher": ^2.1.0
33033302
graphql: ^15.9.0 || ^16.9.0
3304-
peerDependenciesMeta:
3305-
"@parcel/watcher":
3306-
optional: true
33073303
languageName: unknown
33083304
linkType: soft
33093305

@@ -3810,7 +3806,6 @@ __metadata:
38103806
tslib: "npm:^2.8.1"
38113807
peerDependencies:
38123808
graphql: ^15.9.0 || ^16.9.0
3813-
graphql-yoga: ^5.10.11
38143809
prom-client: ^13 || ^14.0.0 || ^15.0.0
38153810
languageName: unknown
38163811
linkType: soft

0 commit comments

Comments
 (0)