Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@dan-lee dan-lee released this 01 Apr 13:50
· 4 commits to main since this release
279ff40

Breaking changes

  • graphql is now a peerDependency (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