All notable changes to this project will be documented in this file. File syntax. This project adheres to Semantic Versioning.
- Update
apollo-linkto latest version (1.2.13) and bump package minor version to republish for Meteor 1.9.
- Do not set auth header when not logged in #131
- New API, only providing a
getUser()function on the server. Docs for setting up Apollo Server 2.0 andapollo-boost.
- 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-expressbutapollo-server-express. See this blog post π
- Add support for an asynchronous context #105
- Fix #101: return an empty object from
getUserContextwhen nobody is authenticated. - Fixes lint issue on
package.js(from previous version) - Automatic update of
.versionfrom latest Meteor version.
- Allow
contextoption 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
apollo-client@1.0.0!
- Update dependencies:
apollo-client@1.0.0-rc.9&graphql-tools@0.11.0
- No more
dataIdFromObjectpre-configuration:apollo-clientdoes 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
rawCollectionmethod onMeteor.usersfor the current user lookup, to allow the tests to pass (also no need to wrap the GraphQL server inMeteor.bindEnvironmentas it no more a Fibers-aware code).
- Set up ESLint with prettier & Meteor settings.
- Provide
handleDoneutility for asynchronous tests which to catch errors. - Handle GraphQL subscriptions client-side with the option
enableSubscriptionsoncreateMeteorNetworkInterface& start a websocket server if apubsubmechanism is passed along theschematocreateApolloServer.
- Breaking: Use latest NPM dependencies, especially
apollo-cient@1.0.0-rc.0. - Provide a middleware handling (
apply(Batch)Middleware), related toapollo-client@1.0.0-rc.0. - In tests, use
printfromgraphqlitself and not fromgraphql-tag, related tographql-tag@1.3& upcominggraphql-tag@2.0.
- Pass
batchingIntervalto the batching network interface if configured to used it increateMeteorNetworkInterface. - Move
networkInterfaceconfiguration withcreateMeteorNetworkInterface()from thedefaultClientConfigto themeteorClientConfigfunction, 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/apolloto 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/apolloto 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
createMeteorNetworkInterfaceandmeteorClientConfigserver-side to allow server-side rendering, accept aloginTokenoption in the config of Apollo Client (for example the cookie frommeteorhacks:fast-renderused for SSR) #57 - Tests! #63 and #68
apollo-clientv0.5.x- Updated createNetworkInterface call to match new signature (@jasonphillips in #43).
graphql-serverv0.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