Skip to content

Commit 05fe345

Browse files
ardatangithub-actions[bot]
andauthoredDec 13, 2024··
Bump dependencies and export helpers (#3549)
* Bump dependencies * Reorganize dependencies * More * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent eca7cd1 commit 05fe345

20 files changed

+98
-105
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@graphql-yoga/plugin-apollo-usage-report": patch
3+
---
4+
dependencies updates:
5+
- Removed dependency [`@graphql-tools/utils@^10.6.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.1) (from `peerDependencies`)
6+
- Removed dependency [`@whatwg-node/fetch@^0.10.1` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.10.1) (from `peerDependencies`)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphql-yoga/plugin-apq": patch
3+
---
4+
dependencies updates:
5+
- Removed dependency [`@graphql-tools/utils@^10.6.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.1) (from `peerDependencies`)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphql-yoga/plugin-persisted-operations": patch
3+
---
4+
dependencies updates:
5+
- Removed dependency [`@graphql-tools/utils@^10.6.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.1) (from `peerDependencies`)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"graphql-yoga": patch
3+
---
4+
dependencies updates:
5+
- Updated dependency [`@graphql-tools/executor@^1.3.7` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.3.7) (from `^1.3.5`, in `dependencies`)
6+
- Updated dependency [`@graphql-tools/schema@^10.0.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.11) (from `^10.0.10`, in `dependencies`)
7+
- Updated dependency [`@graphql-tools/utils@^10.6.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.2) (from `^10.6.1`, in `dependencies`)
8+
- Updated dependency [`@whatwg-node/server@^0.9.63` ↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.9.63) (from `^0.9.60`, in `dependencies`)

‎packages/graphql-yoga/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
},
5151
"dependencies": {
5252
"@envelop/core": "^5.0.2",
53-
"@graphql-tools/executor": "^1.3.5",
54-
"@graphql-tools/schema": "^10.0.10",
55-
"@graphql-tools/utils": "^10.6.1",
53+
"@graphql-tools/executor": "^1.3.7",
54+
"@graphql-tools/schema": "^10.0.11",
55+
"@graphql-tools/utils": "^10.6.2",
5656
"@graphql-yoga/logger": "workspace:^",
5757
"@graphql-yoga/subscription": "workspace:^",
5858
"@whatwg-node/fetch": "^0.10.1",
59-
"@whatwg-node/server": "^0.9.60",
59+
"@whatwg-node/server": "^0.9.63",
6060
"dset": "^3.1.1",
6161
"lru-cache": "^10.0.0",
6262
"tslib": "^2.8.1"

‎packages/graphql-yoga/src/error.ts

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import type { YogaLogger } from '@graphql-yoga/logger';
44
import type { ResultProcessorInput } from './plugins/types.js';
55
import type { GraphQLHTTPExtensions, YogaMaskedErrorOpts } from './types.js';
66

7-
export { createGraphQLError };
8-
97
declare module 'graphql' {
108
interface GraphQLErrorExtensions {
119
http?: GraphQLHTTPExtensions;

‎packages/graphql-yoga/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export { createGraphQLError } from './error.js';
21
export * from '@graphql-yoga/logger';
32
export { type Plugin } from './plugins/types.js';
43
export { type GraphiQLOptions } from './plugins/use-graphiql.js';
@@ -37,9 +36,12 @@ export {
3736
useLogger,
3837
usePayloadFormatter,
3938
} from '@envelop/core';
39+
export { createGraphQLError, isPromise, mapMaybePromise } from '@graphql-tools/utils';
4040
export { getSSEProcessor } from './plugins/result-processor/sse.js';
41+
export { processRegularResult } from './plugins/result-processor/regular.js';
4142
export { useExecutionCancellation } from './plugins/use-execution-cancellation.js';
4243
export {
4344
type LandingPageRenderer,
4445
type LandingPageRendererOpts,
4546
} from './plugins/use-unhandled-route.js';
47+
export { DisposableSymbols } from '@whatwg-node/server';

‎packages/graphql-yoga/src/plugins/plugins.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AfterValidateHook } from '@envelop/core';
2-
import { createGraphQLError } from '../error.js';
2+
import { createGraphQLError } from '@graphql-tools/utils';
33
import { createSchema } from '../schema.js';
44
import { createYoga } from '../server.js';
55
import { Plugin } from './types.js';

‎packages/graphql-yoga/src/plugins/request-validation/use-limit-batching.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createGraphQLError } from '../../error.js';
1+
import { createGraphQLError } from '@graphql-tools/utils';
22
import type { Plugin } from '../types.js';
33

44
export function useLimitBatching(limit?: number): Plugin {

‎packages/graphql-yoga/src/plugins/result-processor/stringify.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { GraphQLError } from 'graphql';
2-
import { createGraphQLError, isGraphQLError } from '../../error.js';
2+
import { createGraphQLError } from '@graphql-tools/utils';
3+
import { isGraphQLError } from '../../error.js';
34
import { MaybeArray } from '../../types.js';
45
import { ExecutionResultWithSerializer } from '../types.js';
56

‎packages/graphql-yoga/src/server.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,8 @@ export class YogaServer<
513513
/** Ensure that error thrown from subscribe is sent to client */
514514
// TODO: this should probably be something people can customize via a hook?
515515
if (isAsyncIterable(result)) {
516-
const iterator = result[Symbol.asyncIterator]();
517516
result = mapAsyncIterator(
518-
iterator,
517+
result,
519518
v => v,
520519
(err: Error) => {
521520
if (err.name === 'AbortError') {

‎packages/plugins/apollo-managed-federation/src/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createGraphQLError, type Plugin } from 'graphql-yoga';
1+
import { createGraphQLError, DisposableSymbols, type Plugin } from 'graphql-yoga';
22
import {
33
FetchError,
44
SupergraphSchemaManager,
@@ -7,7 +7,6 @@ import {
77
type SupergraphSchemaManagerOptions,
88
type SupergraphSchemaManagerSchemaEvent,
99
} from '@graphql-tools/federation';
10-
import { DisposableSymbols } from '@whatwg-node/disposablestack';
1110

1211
export type ManagedFederationPluginOptions = (
1312
| SupergraphSchemaManager

‎packages/plugins/apollo-usage-report/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
"check": "tsc --pretty --noEmit"
3838
},
3939
"peerDependencies": {
40-
"@graphql-tools/utils": "^10.6.1",
41-
"@whatwg-node/fetch": "^0.10.1",
4240
"graphql": "^15.2.0 || ^16.0.0",
4341
"graphql-yoga": "workspace:^"
4442
},

‎packages/plugins/apq/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"check": "tsc --pretty --noEmit"
3838
},
3939
"peerDependencies": {
40-
"@graphql-tools/utils": "^10.6.1",
4140
"graphql-yoga": "workspace:^"
4241
},
4342
"devDependencies": {

‎packages/plugins/defer-stream/src/validations/defer-stream-directive-label.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { ASTVisitor, Kind, ValidationContext } from 'graphql';
2-
import {
3-
createGraphQLError,
4-
GraphQLDeferDirective,
5-
GraphQLStreamDirective,
6-
} from '@graphql-tools/utils';
2+
import { createGraphQLError } from 'graphql-yoga';
3+
import { GraphQLDeferDirective, GraphQLStreamDirective } from '@graphql-tools/utils';
74

85
/**
96
* Stream directive on list field

‎packages/plugins/defer-stream/src/validations/defer-stream-directive-on-root-field.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { ASTVisitor, ValidationContext } from 'graphql';
2-
import {
3-
createGraphQLError,
4-
GraphQLDeferDirective,
5-
GraphQLStreamDirective,
6-
} from '@graphql-tools/utils';
2+
import { createGraphQLError } from 'graphql-yoga';
3+
import { GraphQLDeferDirective, GraphQLStreamDirective } from '@graphql-tools/utils';
74

85
/**
96
* Stream directive on list field

‎packages/plugins/defer-stream/src/validations/overlapping-fields-can-be-merged.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import {
2121
ValidationContext,
2222
ValueNode,
2323
} from 'graphql';
24-
import { createGraphQLError, inspect, Maybe } from '@graphql-tools/utils';
24+
import { createGraphQLError } from 'graphql-yoga';
25+
import { inspect, Maybe } from '@graphql-tools/utils';
2526

2627
/**
2728
* Returns a number indicating whether a reference string comes before, or after,

‎packages/plugins/defer-stream/src/validations/stream-directive-on-list-field.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ASTVisitor, DirectiveNode, isListType, isWrappingType, ValidationContext } from 'graphql';
2-
import { createGraphQLError, GraphQLStreamDirective } from '@graphql-tools/utils';
2+
import { createGraphQLError } from 'graphql-yoga';
3+
import { GraphQLStreamDirective } from '@graphql-tools/utils';
34

45
/**
56
* Stream directive on list field

‎packages/plugins/persisted-operations/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"check": "tsc --pretty --noEmit"
3838
},
3939
"peerDependencies": {
40-
"@graphql-tools/utils": "^10.6.1",
4140
"graphql": "^15.2.0 || ^16.0.0",
4241
"graphql-yoga": "workspace:^"
4342
},

‎pnpm-lock.yaml

+53-75
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.