graphql-yoga 5.0.2 → 5.1.0
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/cjs/index.js +3 -1
- package/esm/index.js +1 -0
- package/package.json +1 -1
- package/typings/index.d.cts +2 -1
- package/typings/index.d.ts +2 -1
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSSEProcessor = exports.usePayloadFormatter = exports.useLogger = exports.useExtendContext = exports.useErrorHandler = exports.useEnvelop = exports.mapAsyncIterator = exports.makeSubscribe = exports.makeExecute = exports.isIntrospectionOperationString = exports.isAsyncIterable = exports.handleStreamOrSingleExecutionResult = exports.finalAsyncIterator = exports.errorAsyncIterator = exports.envelop = exports.createLRUCache = exports.maskError = exports.useSchema = exports.useReadinessCheck = exports.shouldRenderGraphiQL = exports.renderGraphiQL = exports.createGraphQLError = void 0;
|
|
3
|
+
exports.getSSEProcessor = exports.usePayloadFormatter = exports.useLogger = exports.useExtendContext = exports.useErrorHandler = exports.useEnvelop = exports.mapAsyncIterator = exports.makeSubscribe = exports.makeExecute = exports.isIntrospectionOperationString = exports.isAsyncIterable = exports.handleStreamOrSingleExecutionResult = exports.finalAsyncIterator = exports.errorAsyncIterator = exports.envelop = exports.mergeSchemas = exports.createLRUCache = exports.maskError = exports.useSchema = exports.useReadinessCheck = exports.shouldRenderGraphiQL = exports.renderGraphiQL = exports.createGraphQLError = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var error_js_1 = require("./error.js");
|
|
6
6
|
Object.defineProperty(exports, "createGraphQLError", { enumerable: true, get: function () { return error_js_1.createGraphQLError; } });
|
|
@@ -20,6 +20,8 @@ var mask_error_js_1 = require("./utils/mask-error.js");
|
|
|
20
20
|
Object.defineProperty(exports, "maskError", { enumerable: true, get: function () { return mask_error_js_1.maskError; } });
|
|
21
21
|
var create_lru_cache_js_1 = require("./utils/create-lru-cache.js");
|
|
22
22
|
Object.defineProperty(exports, "createLRUCache", { enumerable: true, get: function () { return create_lru_cache_js_1.createLRUCache; } });
|
|
23
|
+
var schema_1 = require("@graphql-tools/schema");
|
|
24
|
+
Object.defineProperty(exports, "mergeSchemas", { enumerable: true, get: function () { return schema_1.mergeSchemas; } });
|
|
23
25
|
var core_1 = require("@envelop/core");
|
|
24
26
|
// useful for anyone creating a new envelop instance
|
|
25
27
|
Object.defineProperty(exports, "envelop", { enumerable: true, get: function () { return core_1.envelop; } });
|
package/esm/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from './subscription.js';
|
|
|
9
9
|
export * from './types.js';
|
|
10
10
|
export { maskError } from './utils/mask-error.js';
|
|
11
11
|
export { createLRUCache } from './utils/create-lru-cache.js';
|
|
12
|
+
export { mergeSchemas } from '@graphql-tools/schema';
|
|
12
13
|
export {
|
|
13
14
|
// useful for anyone creating a new envelop instance
|
|
14
15
|
envelop, errorAsyncIterator, finalAsyncIterator, handleStreamOrSingleExecutionResult, isAsyncIterable,
|
package/package.json
CHANGED
package/typings/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { type Plugin } from './plugins/types.cjs';
|
|
|
4
4
|
export { type GraphiQLOptions } from './plugins/use-graphiql.cjs';
|
|
5
5
|
export { renderGraphiQL, shouldRenderGraphiQL } from './plugins/use-graphiql.cjs';
|
|
6
6
|
export { useReadinessCheck } from './plugins/use-readiness-check.cjs';
|
|
7
|
-
export { useSchema } from './plugins/use-schema.cjs';
|
|
7
|
+
export { type YogaSchemaDefinition, useSchema } from './plugins/use-schema.cjs';
|
|
8
8
|
export * from './schema.cjs';
|
|
9
9
|
export * from './server.cjs';
|
|
10
10
|
export * from './subscription.cjs';
|
|
@@ -12,5 +12,6 @@ export * from './types.cjs';
|
|
|
12
12
|
export { maskError } from './utils/mask-error.cjs';
|
|
13
13
|
export { type OnParamsEventPayload } from './plugins/types.cjs';
|
|
14
14
|
export { createLRUCache } from './utils/create-lru-cache.cjs';
|
|
15
|
+
export { mergeSchemas } from '@graphql-tools/schema';
|
|
15
16
|
export { type Maybe, type Optional, type PromiseOrValue, type Spread, envelop, errorAsyncIterator, finalAsyncIterator, handleStreamOrSingleExecutionResult, isAsyncIterable, isIntrospectionOperationString, makeExecute, makeSubscribe, mapAsyncIterator, useEnvelop, useErrorHandler, useExtendContext, useLogger, usePayloadFormatter, } from '@envelop/core';
|
|
16
17
|
export { getSSEProcessor } from './plugins/result-processor/sse.cjs';
|
package/typings/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { type Plugin } from './plugins/types.js';
|
|
|
4
4
|
export { type GraphiQLOptions } from './plugins/use-graphiql.js';
|
|
5
5
|
export { renderGraphiQL, shouldRenderGraphiQL } from './plugins/use-graphiql.js';
|
|
6
6
|
export { useReadinessCheck } from './plugins/use-readiness-check.js';
|
|
7
|
-
export { useSchema } from './plugins/use-schema.js';
|
|
7
|
+
export { type YogaSchemaDefinition, useSchema } from './plugins/use-schema.js';
|
|
8
8
|
export * from './schema.js';
|
|
9
9
|
export * from './server.js';
|
|
10
10
|
export * from './subscription.js';
|
|
@@ -12,5 +12,6 @@ export * from './types.js';
|
|
|
12
12
|
export { maskError } from './utils/mask-error.js';
|
|
13
13
|
export { type OnParamsEventPayload } from './plugins/types.js';
|
|
14
14
|
export { createLRUCache } from './utils/create-lru-cache.js';
|
|
15
|
+
export { mergeSchemas } from '@graphql-tools/schema';
|
|
15
16
|
export { type Maybe, type Optional, type PromiseOrValue, type Spread, envelop, errorAsyncIterator, finalAsyncIterator, handleStreamOrSingleExecutionResult, isAsyncIterable, isIntrospectionOperationString, makeExecute, makeSubscribe, mapAsyncIterator, useEnvelop, useErrorHandler, useExtendContext, useLogger, usePayloadFormatter, } from '@envelop/core';
|
|
16
17
|
export { getSSEProcessor } from './plugins/result-processor/sse.js';
|