Skip to content

Commit 1d50849

Browse files
ardatansaihaj
andauthoredNov 14, 2022
chore: re-export specific things from @envelop/core (#2091)
Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
1 parent c90756b commit 1d50849

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
 

‎.changeset/thin-rings-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-yoga': major
3+
---
4+
5+
export only specific things from `@envelop/core`

‎packages/graphql-yoga/src/index.ts

+23-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,29 @@ export * from './types.js'
22
export * from './logger.js'
33
export * from './server.js'
44

5-
export * from '@envelop/core'
5+
export {
6+
// useful for anyone creating a new envelop instance
7+
envelop,
8+
// Default plugins
9+
useEnvelop,
10+
useLogger,
11+
useExtendContext,
12+
usePayloadFormatter,
13+
// useful helpers
14+
isIntrospectionOperationString,
15+
makeSubscribe,
16+
mapAsyncIterator,
17+
makeExecute,
18+
handleStreamOrSingleExecutionResult,
19+
finalAsyncIterator,
20+
errorAsyncIterator,
21+
isAsyncIterable,
22+
// Handy type utils
23+
Maybe,
24+
Optional,
25+
PromiseOrValue,
26+
Spread,
27+
} from '@envelop/core'
628
export type { CORSOptions } from './plugins/useCORS.js'
729
export type { GraphiQLOptions } from './plugins/useGraphiQL.js'
830
export type { Plugin } from './plugins/types.js'

0 commit comments

Comments
 (0)
Please sign in to comment.