Skip to content

Commit

Permalink
chore: re-export specific things from @envelop/core (#2061)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Nov 11, 2022
1 parent 8a415a9 commit 3759d27
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-rings-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-yoga': major
---

export only specific things from `@envelop/core`
24 changes: 23 additions & 1 deletion packages/graphql-yoga/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3759d27

Please sign in to comment.