Breaking changes
graphql
is now apeerDependency
(v15 or v16)- Update packages
envelop
peer dependency is now v2- Throw
400
response if request JSON body parsing throws graphiql
is not included by default anymore.
This shaves off about 1 MB of the worker if not needed!
This can now be done manually, on-demand like so:
import { shouldRenderGraphiQL, getGraphiQLResponse } from 'helix-flare'
// ...
async fetch(request) {
if (await shouldRenderGraphiQL(request)) {
return getGraphiQLResponse()
}
// ...
}
Bundlers will automatically tree-shake it if it's not included