@graphql-hive/plugin-mcp 0.2.2-alpha-b5b9a4d58624c7197367721a24bdc5b9dd5e9d1b → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,13 +1,11 @@
1
1
  # @graphql-hive/plugin-mcp
2
2
 
3
- ## 0.2.2-alpha-b5b9a4d58624c7197367721a24bdc5b9dd5e9d1b
3
+ ## 0.2.2
4
4
  ### Patch Changes
5
5
 
6
6
 
7
7
 
8
- - [#2670](https://github.com/graphql-hive/gateway/pull/2670) [`b8b1b67`](https://github.com/graphql-hive/gateway/commit/b8b1b6724923f4cb4e7f9c26abd7591393e1ceca) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
9
-
10
- - Updated dependency [`graphql-yoga@6.0.0-alpha-20261019165905-4e993e96c2903cbe3084f9b49dfbf05042e3fe57` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/6.0.0) (from `^5.21.1`, in `peerDependencies`)
8
+ - [`62175b8`](https://github.com/graphql-hive/gateway/commit/62175b81b04237825372370de04dbdc11c239a01) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Use semver dependencies matched by minor
11
9
 
12
10
  ## 0.2.1
13
11
  ### Patch Changes
@@ -6,7 +6,7 @@ import { GraphQLSchema, OperationTypeNode, GraphQLFieldResolver, GraphQLResolveI
6
6
  import DataLoader from 'dataloader';
7
7
  import { GraphQLResolveInfo as GraphQLResolveInfo$1, GraphQLOutputType as GraphQLOutputType$1 } from 'graphql/type';
8
8
  import { Plugin, YogaInitialContext, Instrumentation as Instrumentation$2 } from 'graphql-yoga';
9
- import { MeshFetch, KeyValueCache, MeshFetchRequestInit } from '@graphql-mesh/types';
9
+ import { MeshFetch, KeyValueCache, MeshFetchRequestInit, Logger as Logger$1 } from '@graphql-mesh/types';
10
10
  import { FetchInstrumentation } from '@graphql-mesh/utils';
11
11
  import { PromptManager, LangfuseClient, LangfuseClientParams } from '@langfuse/client';
12
12
  import { ServerAdapterInitialContext } from '@whatwg-node/server';
@@ -93,6 +93,13 @@ type CreateProxyingResolverFn<TContext = Record<string, any>> = (options: ICreat
93
93
  interface BatchingOptions<K = any, V = any, C = K> {
94
94
  extensionsReducer?: (mergedExtensions: Record<string, any>, request: ExecutionRequest) => Record<string, any>;
95
95
  dataLoaderOptions?: DataLoader.Options<K, V, C>;
96
+ /**
97
+ * When true, each batched sub-request's root selections are wrapped in
98
+ * `@defer` so a defer-capable executor can deliver fast results without
99
+ * waiting for the slowest sibling in the batch. Requires an executor that
100
+ * returns incremental results (e.g. `@graphql-tools/executor`).
101
+ */
102
+ defer?: boolean;
96
103
  }
97
104
  interface SubschemaConfig<K = any, V = any, C = K, TContext = Record<string, any>> {
98
105
  name?: string;
@@ -104,6 +111,13 @@ interface SubschemaConfig<K = any, V = any, C = K, TContext = Record<string, any
104
111
  executor?: Executor<TContext>;
105
112
  batch?: boolean;
106
113
  batchingOptions?: BatchingOptions<K, V, C>;
114
+ /**
115
+ * When true, `@defer` is forwarded to this subschema and incremental patches
116
+ * from its executor are merged into the gateway result. When false/omitted,
117
+ * `@defer` is owned by the gateway (deferred selections are omitted from the
118
+ * subgraph request and resolved later via type-merging / local resolvers).
119
+ */
120
+ defer?: boolean;
107
121
  }
108
122
  interface MergedTypeConfig<K = any, V = any, TContext = Record<string, any>> extends MergedTypeEntryPoint<K, V, TContext> {
109
123
  entryPoints?: Array<MergedTypeEntryPoint>;
@@ -141,6 +155,7 @@ declare class Subschema<K = any, V = any, C = K, TContext = Record<string, any>>
141
155
  executor?: Executor<TContext>;
142
156
  batch?: boolean;
143
157
  batchingOptions?: BatchingOptions<K, V, C>;
158
+ defer?: boolean;
144
159
  createProxyingResolver?: CreateProxyingResolverFn<TContext>;
145
160
  transforms: Array<Transform<any, TContext>>;
146
161
  private _transformedSchema;
@@ -306,6 +321,8 @@ interface OnFetchHookPayload<TContext> {
306
321
  context: (GatewayContext & TContext) | {
307
322
  log: Logger;
308
323
  };
324
+ /** @deprecated Please use `log` from the {@link context} instead. */
325
+ logger: Logger$1;
309
326
  info: GraphQLResolveInfo$1;
310
327
  fetchFn: MeshFetch;
311
328
  setFetchFn: (fetchFn: MeshFetch) => void;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { D as DescriptionProvider, a as DescriptionProviderConfig, b as DescriptionProviderContext, M as MCPAnnotations, c as MCPConfig, d as MCPContentAnnotations, e as MCPIcon, f as MCPInputOverrides, g as MCPOperationsLoader, h as MCPOutputOverrides, i as MCPResourceAnnotations, j as MCPResourceConfig, k as MCPResourceTemplateConfig, l as MCPToolAnnotations, m as MCPToolConfig, n as MCPToolExecution, o as MCPToolHooks, p as MCPToolOverrides, q as MCPToolSource, R as ResolvedResource, r as ResolvedResourceTemplate, s as ResolvedToolConfig, t as ResourceTemplateResult, T as ToolHookContext, u as createLangfuseProvider, v as useMCP } from './index-CqaiXpfp.js';
1
+ export { D as DescriptionProvider, a as DescriptionProviderConfig, b as DescriptionProviderContext, M as MCPAnnotations, c as MCPConfig, d as MCPContentAnnotations, e as MCPIcon, f as MCPInputOverrides, g as MCPOperationsLoader, h as MCPOutputOverrides, i as MCPResourceAnnotations, j as MCPResourceConfig, k as MCPResourceTemplateConfig, l as MCPToolAnnotations, m as MCPToolConfig, n as MCPToolExecution, o as MCPToolHooks, p as MCPToolOverrides, q as MCPToolSource, R as ResolvedResource, r as ResolvedResourceTemplate, s as ResolvedToolConfig, t as ResourceTemplateResult, T as ToolHookContext, u as createLangfuseProvider, v as useMCP } from './index-CxPelOkz.js';
2
2
  import '@graphql-hive/logger';
3
3
  import '@whatwg-node/disposablestack';
4
4
  import '@whatwg-node/promise-helpers';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { D as DescriptionProvider, a as DescriptionProviderConfig, b as DescriptionProviderContext, M as MCPAnnotations, c as MCPConfig, d as MCPContentAnnotations, e as MCPIcon, f as MCPInputOverrides, g as MCPOperationsLoader, h as MCPOutputOverrides, i as MCPResourceAnnotations, j as MCPResourceConfig, k as MCPResourceTemplateConfig, l as MCPToolAnnotations, m as MCPToolConfig, n as MCPToolExecution, o as MCPToolHooks, p as MCPToolOverrides, q as MCPToolSource, R as ResolvedResource, r as ResolvedResourceTemplate, s as ResolvedToolConfig, t as ResourceTemplateResult, T as ToolHookContext, u as createLangfuseProvider, v as useMCP } from './index-CqaiXpfp.js';
1
+ export { D as DescriptionProvider, a as DescriptionProviderConfig, b as DescriptionProviderContext, M as MCPAnnotations, c as MCPConfig, d as MCPContentAnnotations, e as MCPIcon, f as MCPInputOverrides, g as MCPOperationsLoader, h as MCPOutputOverrides, i as MCPResourceAnnotations, j as MCPResourceConfig, k as MCPResourceTemplateConfig, l as MCPToolAnnotations, m as MCPToolConfig, n as MCPToolExecution, o as MCPToolHooks, p as MCPToolOverrides, q as MCPToolSource, R as ResolvedResource, r as ResolvedResourceTemplate, s as ResolvedToolConfig, t as ResourceTemplateResult, T as ToolHookContext, u as createLangfuseProvider, v as useMCP } from './index-CxPelOkz.js';
2
2
  import '@graphql-hive/logger';
3
3
  import '@whatwg-node/disposablestack';
4
4
  import '@whatwg-node/promise-helpers';
@@ -1,5 +1,5 @@
1
1
  import { MaybePromise } from '@whatwg-node/promise-helpers';
2
- import { G as GatewayConfigContext, g as MCPOperationsLoader } from '../index-CqaiXpfp.js';
2
+ import { G as GatewayConfigContext, g as MCPOperationsLoader } from '../index-CxPelOkz.js';
3
3
  import { ServerAdapterInitialContext } from '@whatwg-node/server';
4
4
  import '@graphql-hive/logger';
5
5
  import '@whatwg-node/disposablestack';
@@ -1,5 +1,5 @@
1
1
  import { MaybePromise } from '@whatwg-node/promise-helpers';
2
- import { G as GatewayConfigContext, g as MCPOperationsLoader } from '../index-CqaiXpfp.js';
2
+ import { G as GatewayConfigContext, g as MCPOperationsLoader } from '../index-CxPelOkz.js';
3
3
  import { ServerAdapterInitialContext } from '@whatwg-node/server';
4
4
  import '@graphql-hive/logger';
5
5
  import '@whatwg-node/disposablestack';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/plugin-mcp",
3
- "version": "0.2.2-alpha-b5b9a4d58624c7197367721a24bdc5b9dd5e9d1b",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,7 +51,7 @@
51
51
  "peerDependencies": {
52
52
  "@langfuse/client": "^5.0.2",
53
53
  "graphql": "^15.9.0 || ^16.9.0",
54
- "graphql-yoga": "6.0.0-alpha-20261019165905-4e993e96c2903cbe3084f9b49dfbf05042e3fe57"
54
+ "graphql-yoga": "^5.21.1"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@langfuse/client": {
@@ -69,11 +69,11 @@
69
69
  "tslib": "^2.8.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@graphql-hive/gateway-runtime": "2.13.0-alpha-b5b9a4d58624c7197367721a24bdc5b9dd5e9d1b",
72
+ "@graphql-hive/gateway-runtime": "^2.13.0",
73
73
  "@langfuse/client": "^5.0.2",
74
74
  "@opentelemetry/api": "^1.9.1",
75
75
  "graphql": "^16.13.2",
76
- "graphql-yoga": "6.0.0-alpha-20261019165905-4e993e96c2903cbe3084f9b49dfbf05042e3fe57",
76
+ "graphql-yoga": "^5.21.1",
77
77
  "pkgroll": "2.27.1"
78
78
  },
79
79
  "sideEffects": false