-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Support Nuxt 3 #430
Conversation
I reviewed the docs and looks good to me now. Beautiful work ❤️ |
Had some time to play around with this and test it out on a demo project, working really nicely. I'm not sure how useful I'll be, but if you need any help with testing or anything else let me know. Thanks @Diizzayy and anyone else who has contributed, amazing work in putting this together! |
Would love to play with this but having difficulties with |
I was also having issues so my installation is semi-manual, I'm only using it for testing at the moment so it's not critical to have it working seamlessly just yet:
yarn add Diizzayy/apollo-module#chore/nuxt3
pnpm install && pnpm build
{
"scripts": {
"postinstall": "cp -R lib/apollo-module node_modules/@nuxtjs/apollo/dist"
}
} Obviously this requires completing steps 2 & 3 again as updates are pushed to the branch. |
@Diizzayy Thanks for putting in the effort to make it compatible with Nuxt 3! |
@dwin94 This will be merged and released under v5 soon enough. |
waiting for a stable release of nuxt? |
This PR introduces a variety of changes, many of which are in-fact breaking changes.
The first and perhaps biggest being the adaptation of Vue 3 using Vue Apollo v4
Changes
clientConfigs
is nowclients
authenticationType
is nowauthType
tokenName
defaults toapollo:<client-name>.token
proxyCookies
flagauthHeader
supporttokenStorage
- ( cookie or localStorage )defineApolloClient
helperapollo:auth
hook; replacesgetAuth
apollo:error
hook; replaces globalerrorHandler
subscriptions-transport-ws
toGraphQLWsLink
via graphql-ws.gql
/.graphql
files (Vite & Webpack)useQuery
,useMutation
,useSubscription
, etc...Closes #312
Closes #297
Closes #426