Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

v2.0.0-0

Pre-release
Pre-release
Compare
Choose a tag to compare
@old-fusion-bot old-fusion-bot released this 19 Mar 18:43
e6726a4

Changelog

Highlighted Changes

  • Refactor into a render plugin rather than an app wrapper (#159)

Migration Guide

v2.0.0

The 2.0.0 release also marks a refactor from fusion-apollo as an app wrapper into fusion-plugin-apollo which is implemented as a plugin to be
registered on the RenderToken. We also consolidated the code from fusion-apollo-universal-server into this module. The migration looks like this:

+import {RenderToken} from 'fusion-core';
+import App from 'fusion-react';
-import App from 'fusion-apollo';
+import ApolloPlugin from 'fusion-plugin-apollo';
-import ApolloServer from 'fusion-plugin-apollo-server';

export default async function main() {
  const app = new App();
+ app.register(RenderToken, ApolloPlugin);
- app.register(ApolloServer); // apollo-server 2.0 now integrated by default
- app.middleware(require('koa-bodyparser')()); // Body parsing for /graphql route is included by default now with apollo-server 2
}