All notable changes to this project will be documented in this file. File syntax. This project adheres to Semantic Versioning.
- Basic support for Apollo Client 2.0 with
createApolloClient
, and drop support for Apollo Client 1.0
- This package doesn't depend anymore on
graphql-server-express
butapollo-server-express
. See this blog post π
- Add support for an asynchronous context #105
- Fix #101: return an empty object from
getUserContext
when nobody is authenticated. - Fixes lint issue on
package.js
(from previous version) - Automatic update of
.version
from latest Meteor version.
- Allow
context
option to be a function that accepts context with the current user, and returns final context.
- Remove NPM warnings: just make it fail early if you don't have dependencies installed.
- Invite the package's users to install
[email protected]
!
- Update dependencies:
[email protected]
&[email protected]
- No more
dataIdFromObject
pre-configuration:apollo-client
does it for us. - Fix accounts client-side: the login token is handled per request and not per client, by looking for it directly in the middleware.
- Fix options server-side (issue #90).
- Breaking: Subscriptions configuration are not any more handled in this package: this package is intended to provide easy configuration of an Apollo client and its network interface to communicate with a GraphQL Express Server. A new package is going to be created to configure GraphQL subscriptions in a Meteor context.
- Depends on latest
apollo-client
: version 1.0.0-rc.3. Also updategraphql-subscriptions
(note: dependency on this latter package should be removed on next release, see discussion).
- Move logic code to
/src
. - Use
rawCollection
method onMeteor.users
for the current user lookup, to allow the tests to pass (also no need to wrap the GraphQL server inMeteor.bindEnvironment
as it no more a Fibers-aware code).
- Set up ESLint with prettier & Meteor settings.
- Provide
handleDone
utility for asynchronous tests which to catch errors. - Handle GraphQL subscriptions client-side with the option
enableSubscriptions
oncreateMeteorNetworkInterface
& start a websocket server if apubsub
mechanism is passed along theschema
tocreateApolloServer
.
- Breaking: Use latest NPM dependencies, especially
[email protected]
. - Provide a middleware handling (
apply(Batch)Middleware
), related to[email protected]
. - In tests, use
print
fromgraphql
itself and not fromgraphql-tag
, related to[email protected]
& upcoming[email protected]
.
- Pass
batchingInterval
to the batching network interface if configured to used it increateMeteorNetworkInterface
. - Move
networkInterface
configuration withcreateMeteorNetworkInterface()
from thedefaultClientConfig
to themeteorClientConfig
function, so that it's only executed when needed and not on startup too...
- The argument to
meteorClientConfig()
was changed:meteorClientConfig(networkInterfaceConfig)
->meteorClientConfig(customClientConfig)
. If you previously didmeteorClientConfig({ batchingInterface: false })
, it should be changed to: - Don't force
meteor/apollo
to update their NPM dependencies on Graphql-related packages, clean-up the User Accounts middleware #74
meteorClientConfig({
networkInterface: createMeteorNetworkInterface({ batchingInterface: false })
});
-
Make it possible to extend the default Apollo Client & network interface configuration objects with any Apollo Client & interface options (+ some tests) #70
-
Don't force
meteor/apollo
to update their NPM dependencies on Graphql-related packages, clean-up the User Accounts middleware #74
- Fixed bug in
v0.3.0
#69
AKA The Xavier Release π
apollo-client
^0.7.0 || ^0.8.0'
apollo-server-express
^0.5.0
- Export
createMeteorNetworkInterface
andmeteorClientConfig
server-side to allow server-side rendering, accept aloginToken
option in the config of Apollo Client (for example the cookie frommeteorhacks:fast-render
used for SSR) #57 - Tests! #63 and #68
apollo-client
v0.5.x- Updated createNetworkInterface call to match new signature (@jasonphillips in #43).
graphql-server
v0.4.2
- Added the logged-in user's doc to
context.user
- Pass a function to configure the express server in createApolloServer (@nicolaslopezj in #32).
- Automatically pass Meteor authentication in GraphiQL (@nicolaslopezj in #35).
- Fix userId persisting in options.context (reported in #37)
- Fixed global auth issue
- Fix dependencies #17