diff --git a/.changeset/thin-rings-buy.md b/.changeset/thin-rings-buy.md new file mode 100644 index 0000000000..31df75f059 --- /dev/null +++ b/.changeset/thin-rings-buy.md @@ -0,0 +1,5 @@ +--- +'graphql-yoga': major +--- + +export only specific things from `@envelop/core` diff --git a/packages/graphql-yoga/src/index.ts b/packages/graphql-yoga/src/index.ts index 45968da710..20f6dae5d3 100644 --- a/packages/graphql-yoga/src/index.ts +++ b/packages/graphql-yoga/src/index.ts @@ -2,7 +2,29 @@ export * from './types.js' export * from './logger.js' export * from './server.js' -export * from '@envelop/core' +export { + // useful for anyone creating a new envelop instance + envelop, + // Default plugins + useEnvelop, + useLogger, + useExtendContext, + usePayloadFormatter, + // useful helpers + isIntrospectionOperationString, + makeSubscribe, + mapAsyncIterator, + makeExecute, + handleStreamOrSingleExecutionResult, + finalAsyncIterator, + errorAsyncIterator, + isAsyncIterable, + // Handy type utils + Maybe, + Optional, + PromiseOrValue, + Spread, +} from '@envelop/core' export type { CORSOptions } from './plugins/useCORS.js' export type { GraphiQLOptions } from './plugins/useGraphiQL.js' export type { Plugin } from './plugins/types.js'