@graphql-hive/gateway-runtime 2.5.0-alpha-d9649dff14ca22b877d8ccc366274dedd5141c5b → 2.5.0-alpha-fd2d1e0d8e449617611fe942cb85652de6ab07c4
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 +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2969,7 +2969,7 @@ const FAKE_DOCUMENT = {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
]
|
|
2971
2971
|
};
|
|
2972
|
-
function getGraphQLWSOptions(
|
|
2972
|
+
function getGraphQLWSOptions(yoga, onContext) {
|
|
2973
2973
|
function onSubscribe(ctx, idOrMessage, paramsOrUndefined) {
|
|
2974
2974
|
let params;
|
|
2975
2975
|
if (typeof idOrMessage === "string") {
|
|
@@ -2988,7 +2988,7 @@ function getGraphQLWSOptions(gwRuntime, onContext) {
|
|
|
2988
2988
|
document: FAKE_DOCUMENT,
|
|
2989
2989
|
contextValue: {
|
|
2990
2990
|
connectionParams: ctx.connectionParams,
|
|
2991
|
-
waitUntil:
|
|
2991
|
+
waitUntil: yoga.waitUntil,
|
|
2992
2992
|
params,
|
|
2993
2993
|
...additionalContext
|
|
2994
2994
|
}
|
|
@@ -2998,7 +2998,7 @@ function getGraphQLWSOptions(gwRuntime, onContext) {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
function handleRegularArgs(args) {
|
|
3000
3000
|
const context = args.contextValue;
|
|
3001
|
-
return
|
|
3001
|
+
return yoga.getResultForParams(
|
|
3002
3002
|
{
|
|
3003
3003
|
params: context.params,
|
|
3004
3004
|
request: context.request
|
package/dist/index.d.cts
CHANGED
|
@@ -899,6 +899,6 @@ declare function getProxyExecutor<TContext extends Record<string, any>>({ config
|
|
|
899
899
|
instrumentation: () => Instrumentation$2 | undefined;
|
|
900
900
|
}): Executor;
|
|
901
901
|
|
|
902
|
-
declare function getGraphQLWSOptions<TContext extends Record<string, any>, E>(
|
|
902
|
+
declare function getGraphQLWSOptions<TContext extends Record<string, any>, E>(yoga: YogaServerInstance<Record<string, any>, TContext>, onContext: (ctx: Context<ConnectionInitMessage['payload'], E>) => MaybePromise<Record<string, unknown>>): ServerOptions<ConnectionInitMessage['payload'], E>;
|
|
903
903
|
|
|
904
904
|
export { type GatewayConfig, type GatewayConfigBase, type GatewayConfigContext, type GatewayConfigProxy, type GatewayConfigSchemaBase, type GatewayConfigSubgraph, type GatewayConfigSupergraph, type GatewayContext, type GatewayGraphOSManagedFederationOptions, type GatewayGraphOSOptions, type GatewayGraphOSReportingOptions, type GatewayHiveCDNOptions, type GatewayHivePersistedDocumentsOptions, type GatewayHiveReportingOptions, type GatewayPlugin, type GatewayRuntime, type Instrumentation, type OnCacheDeleteHook, type OnCacheDeleteHookEventPayload, type OnCacheDeleteHookResult, type OnCacheErrorHook, type OnCacheErrorHookPayload, type OnCacheGetHook, type OnCacheGetHookEventPayload, type OnCacheGetHookResult, type OnCacheHitHook, type OnCacheHitHookEventPayload, type OnCacheMissHook, type OnCacheSetHook, type OnCacheSetHookEventPayload, type OnCacheSetHookResult, type OnFetchHook, type OnFetchHookDone, type OnFetchHookDonePayload, type OnFetchHookPayload, type ProgressiveOverrideHandler, type PropagateHeadersOpts, type StaticFilesOpts, type UnifiedGraphConfig, createGatewayRuntime, createLoggerFromLogging, getGraphQLWSOptions, getProxyExecutor, getRetryInfo, isRetryExecutionRequest, useCustomFetch, usePropagateHeaders, useStaticFiles, useUpstreamRetry, useUpstreamTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -899,6 +899,6 @@ declare function getProxyExecutor<TContext extends Record<string, any>>({ config
|
|
|
899
899
|
instrumentation: () => Instrumentation$2 | undefined;
|
|
900
900
|
}): Executor;
|
|
901
901
|
|
|
902
|
-
declare function getGraphQLWSOptions<TContext extends Record<string, any>, E>(
|
|
902
|
+
declare function getGraphQLWSOptions<TContext extends Record<string, any>, E>(yoga: YogaServerInstance<Record<string, any>, TContext>, onContext: (ctx: Context<ConnectionInitMessage['payload'], E>) => MaybePromise<Record<string, unknown>>): ServerOptions<ConnectionInitMessage['payload'], E>;
|
|
903
903
|
|
|
904
904
|
export { type GatewayConfig, type GatewayConfigBase, type GatewayConfigContext, type GatewayConfigProxy, type GatewayConfigSchemaBase, type GatewayConfigSubgraph, type GatewayConfigSupergraph, type GatewayContext, type GatewayGraphOSManagedFederationOptions, type GatewayGraphOSOptions, type GatewayGraphOSReportingOptions, type GatewayHiveCDNOptions, type GatewayHivePersistedDocumentsOptions, type GatewayHiveReportingOptions, type GatewayPlugin, type GatewayRuntime, type Instrumentation, type OnCacheDeleteHook, type OnCacheDeleteHookEventPayload, type OnCacheDeleteHookResult, type OnCacheErrorHook, type OnCacheErrorHookPayload, type OnCacheGetHook, type OnCacheGetHookEventPayload, type OnCacheGetHookResult, type OnCacheHitHook, type OnCacheHitHookEventPayload, type OnCacheMissHook, type OnCacheSetHook, type OnCacheSetHookEventPayload, type OnCacheSetHookResult, type OnFetchHook, type OnFetchHookDone, type OnFetchHookDonePayload, type OnFetchHookPayload, type ProgressiveOverrideHandler, type PropagateHeadersOpts, type StaticFilesOpts, type UnifiedGraphConfig, createGatewayRuntime, createLoggerFromLogging, getGraphQLWSOptions, getProxyExecutor, getRetryInfo, isRetryExecutionRequest, useCustomFetch, usePropagateHeaders, useStaticFiles, useUpstreamRetry, useUpstreamTimeout };
|
package/dist/index.js
CHANGED
|
@@ -2968,7 +2968,7 @@ const FAKE_DOCUMENT = {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
]
|
|
2970
2970
|
};
|
|
2971
|
-
function getGraphQLWSOptions(
|
|
2971
|
+
function getGraphQLWSOptions(yoga, onContext) {
|
|
2972
2972
|
function onSubscribe(ctx, idOrMessage, paramsOrUndefined) {
|
|
2973
2973
|
let params;
|
|
2974
2974
|
if (typeof idOrMessage === "string") {
|
|
@@ -2987,7 +2987,7 @@ function getGraphQLWSOptions(gwRuntime, onContext) {
|
|
|
2987
2987
|
document: FAKE_DOCUMENT,
|
|
2988
2988
|
contextValue: {
|
|
2989
2989
|
connectionParams: ctx.connectionParams,
|
|
2990
|
-
waitUntil:
|
|
2990
|
+
waitUntil: yoga.waitUntil,
|
|
2991
2991
|
params,
|
|
2992
2992
|
...additionalContext
|
|
2993
2993
|
}
|
|
@@ -2997,7 +2997,7 @@ function getGraphQLWSOptions(gwRuntime, onContext) {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
function handleRegularArgs(args) {
|
|
2999
2999
|
const context = args.contextValue;
|
|
3000
|
-
return
|
|
3000
|
+
return yoga.getResultForParams(
|
|
3001
3001
|
{
|
|
3002
3002
|
params: context.params,
|
|
3003
3003
|
request: context.request
|