Skip to content

Releases: nuxt-modules/apollo

Bugfix getAuth function ignored if set

19 Jun 09:28
Compare
Choose a tag to compare
Pre-release

Bugfix of getAuth as option of apollo. Now currently would work for setting a permanent token:

apollo:{
  clientConfigs:{
    getAuth:() => 'your_permanent_token'
  }
}

Add authenticationType to apollo options

13 Jun 00:16
Compare
Choose a tag to compare

A new option is now available as some requests are Basic or from any other authentication type.

apollo:{
  authenticationType: 'Basic' // => default: 'Bearer'
}

The default is Bearer so you might don't have to change any code in case you use a popular apollo server provider

Bugfix client-server hydration

08 Jun 03:25
Compare
Choose a tag to compare
Pre-release

Bring back cache mechanism for client-server hydration

Cleanup and improved documentation

08 Jun 01:12
Compare
Choose a tag to compare
Pre-release

Minor release towards final release of v4. Improved documentation and contribution guide. Fixed basic test

Zero config for your apollo configurations

07 Jun 09:30
Compare
Choose a tag to compare

To follow the same approach as the vue-cli-plugin-apollo version 4 will take of the configuration part entirely.

Breaking changes

This results into breaking changes
All you need to provide are the endpoints to your apollo backend:

// nuxt.config.js
apollo:{
  clientConfigs: {
      default: {
        httpEndpoint: YOUR_HTTP_ENDPOINT,
        wsEndpoint: YOUR_WS_ENDPOINT
      }
    }
}

New function calls for login and logout handling

Additionally you can call now 3 functions to make your login/logout handling as easy as possible:

this.$apolloHelpers.onLogin(token) // optional you can provide as second argument this.apolloProvider.clients.otherClient 
this.$apolloHelpers.onLogout() // optional you can provide this.apolloProvider.clients.otherClient
this.$apolloHelpers.getToken() // optional you can provide the token name

Updated to most recent vue-apollo

28 May 02:01
Compare
Choose a tag to compare

This is only a convenient release to update to the most recent vue-apollo version.

Add option for node_modules file recognition

05 Apr 00:32
Compare
Choose a tag to compare

Added the option to include graphql-tag/loader on node_modules. This is important if you have a npm modules which features graphql files.

options:{
  // config
  includeNodeModules:true
}

Updated dependencies

13 Mar 00:41
28ef041
Compare
Choose a tag to compare

Minor update for dependencies and typos. Thanks for the contributions!

Fixed regression with apollProvider

13 Feb 10:23
843ec9e
Compare
Choose a tag to compare

Fixed regression for the use of app.apolloProvider
Thanks @Akryum for the quick fix

Update to vue-apollo beta

13 Feb 07:51
ec5c88e
Compare
Choose a tag to compare

Minor release to update to the latest vue-apollo beta