Commit Graph

835 Commits

Author SHA1 Message Date
Guillaume Chau ea123fa414 fix(useQuery): reset error on refetch/fetchMore, closes #1105 2021-09-20 19:19:36 +02:00
Guillaume Chau a90840c288 fix(SubscribeToMore): use beforeUnmount 2021-09-20 19:17:57 +02:00
Guillaume Chau e1026a344f fix: don't use internal merge strat, closes #1229 2021-09-20 19:15:14 +02:00
Guillaume Chau fb18286177 fix(useApolloClient): save current client in closure, closes #1249 2021-09-20 19:07:17 +02:00
Guillaume Chau 9761471ce0 docs: update installation 2021-09-20 19:02:18 +02:00
Guillaume Chau 99a3865ceb docs: compatibility nodes 2021-09-20 19:00:16 +02:00
Guillaume Chau 89aa996b82 chore: regen yarn.lock 2021-09-20 18:55:06 +02:00
Guillaume Chau 1180679236 fix: remove $isServer, closes #1241 2021-09-20 18:50:13 +02:00
Simon Garner 7ffb5f8c9d fix(types): add throttle and debounce options (#1258)
Fixes vuejs#335

These options were missing from the `VueApolloQueryDefinition` interface.
2021-09-20 18:23:11 +02:00
Andrew Luca 09d66ed801 chore: add repository for all packages.json (#1259)
> If the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives:
> ```json
> "repository": {
>   "type" : "git",
>   "url" : "https://github.com/facebook/react.git",
>   "directory": "packages/react-dom"
> }
> ```
> — https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository

I use a lot https://njt.vercel.app/ to jump to different packages information,
and with this PR we can know exactly what package in what folder lives

Made the changes with a script to make it easier 🙂

https://gist.github.com/iamandrewluca/5cc85b56a595056f0099d04ed6dd8a79
2021-09-20 18:21:02 +02:00
Guillaume Chau b67ff78d6a fix(smart apollo): ensure SmartQuery variables still function when watched expression evaluated (#1161), closes #991 2021-09-20 18:19:43 +02:00
Guillaume Chau f4e2a14bba chore: upgrade deps 2021-09-20 18:12:05 +02:00
Guillaume Chau e0786acda0 fix: apollo-client 3.4 FetchMoreQueryOptions, closes #1252 2021-09-20 18:11:09 +02:00
Guillaume Chau a35b04ff05 fix: vue peerDependencies, closes #1234 2021-09-20 18:04:07 +02:00
Guillaume Chau 4475805cb6 fix(useResult): data => data deep required & non-nullable, closes #1250 2021-09-20 17:56:33 +02:00
Thomas Citharel 3792daa586 docs: Remove leftover new in docs (#1236)
createApolloProvider shouldn't be prefixed by new
2021-08-02 17:55:18 +02:00
Guillaume Chau 8ed17e87e2 docs(readme): link to v4 docs website 2021-07-19 16:26:09 +02:00
Guillaume a9d9376546 docs: update 2021-07-19 16:22:50 +02:00
Guillaume 27c12e9f94 v4.0.0-alpha.14 2021-07-19 16:06:52 +02:00
Guillaume f53bcdec5b fix: importing react -_-' 2021-07-19 16:05:17 +02:00
Guillaume 213c4c484e chore: fix build 2021-07-19 16:02:35 +02:00
Guillaume 182c2a0969 chore: regen yarn 2021-07-19 16:01:17 +02:00
Guillaume e496ba2604 fix: target es2018, closes #1220 2021-07-19 15:54:58 +02:00
Guillaume 335d538dd3 fix(mixin): use unmounted instead of destroyed 2021-07-19 15:46:36 +02:00
Oliver Hoff 334310d5e6 feat: convert errors into ApolloError (#1225) 2021-07-19 15:45:40 +02:00
TimoStolz 08b6b0e7d9 fix: reference error, when using useQuery (#1218)
(ReferenceError: can't access lexical declaration
'currentOptions' before initialization, occure in
useQuery.ts:358)
2021-07-19 15:44:07 +02:00
OYΞD 07cb7f7b9b docs: Fix setup docs for Vue 3 (#1214)
`h` import from `vue` is the Vue 3 way
2021-07-05 12:37:46 +02:00
Guillaume 9758a32764 docs(useMutation): throws option 2021-07-05 01:05:15 +02:00
Guillaume 60e7ee3b24 v4.0.0-alpha.13 2021-07-05 01:01:14 +02:00
Guillaume f306027fde chore: fix global test script 2021-07-05 00:59:39 +02:00
Guillaume badd3387d5 chore: pre-test before release (easier than having to revert a commit) (thx lerna) 2021-07-05 00:48:52 +02:00
Guillaume c17a63937d chore: build before publish 2021-07-05 00:48:15 +02:00
Guillaume 63775f2465 chore: fix build 2021-07-05 00:47:17 +02:00
Guillaume 4ecf8a1abb chore: rename folder 2021-07-05 00:45:04 +02:00
Guillaume 5153498346 chore: fix docs build 2021-07-05 00:41:35 +02:00
Guillaume 61a7df9144 tesst: reworked refetch test 2021-07-05 00:32:55 +02:00
Guillaume 8c68dbecf7 Merge branch 'v4' of github.com:vuejs/vue-apollo into v4 2021-07-05 00:14:24 +02:00
Guillaume a308d43ff8 test: refetch + notifyOnNetworkStatusChange 2021-07-05 00:14:19 +02:00
Guillaume d3b035f2b6 chore(composable): dev script 2021-07-05 00:14:08 +02:00
Yannik Rödel 689c284207 fix(composable): Clear previous error when recieving a result (#1120)
Co-authored-by: Yannik Rödel <yannik.roedel@iwelt.de>
2021-07-04 23:43:15 +02:00
Caleb Cox 619b0d1e62 types: Single key result with __typename still counts as single key (#1163)
Previously, a response with a single key and a __typename field would
not be considered as having a single key and could not be
automatically extracted by useQuery.
2021-07-04 23:42:21 +02:00
Guillaume c877bb89c6 chore: fix merge 2021-07-04 23:39:03 +02:00
Caleb Cox 4c51cb4415 feat(composable): Type MutateOverrideOptions 2021-07-04 23:38:14 +02:00
Guillaume 9ddd4fa176 fiox(composable): type fixes 2021-07-04 23:18:38 +02:00
Guillaume 924b0cbc26 chore: types in esbuild.mjs 2021-07-04 23:15:57 +02:00
Guillaume 0d8bebeffc types: fix mutate return type 2021-07-04 23:03:59 +02:00
Guillaume bfd8db4e4b fea(useMutation): throws option 2021-07-04 23:00:21 +02:00
Guillaume fabd27ebe7 docs: update setup to Vue 3 2021-07-04 22:31:42 +02:00
Guillaume b72d9ba818 docs: simplify titles 2021-07-04 22:26:52 +02:00
Markus Ebner e06beb6995 docs: How to setup with Vue 3 Composition API (#1187)
new Vue(...) is changed to createApp(...)
2021-07-04 22:26:03 +02:00