Brian Bugh
32d1f7568e
fix(ts): Add full test coverage for TypeScript hook types & fix missing overloads ( #895 )
...
* fix: add apollo-composable type overloads + tests
There were a lot of TypeScript edge cases, where calling functions with
certain argument options would result in `any` being expressed as a
type, or where the variables/options were not strictly requiring the
desired inputs.
This adds TypeScript function overloads for all hook edge cases so that
all types are correct. This does not change any behavior.
This also adds almost complete coverage for types, excepting the cases
where `strict` is required, or where a failure is expected, which
TypeScript does not currently support. See:
https://github.com/microsoft/TypeScript/issues/29394
* chore: run type tests on prepublish
* chore: code style
2020-01-11 00:16:51 +01:00
Brian Bugh
9d64fca7bc
fix(useMutation): "mutate" optional arguments
2020-01-11 00:04:26 +01:00
Brian Bugh
0ad08c792e
fix(useMutation): useMutation not taking a Ref
2020-01-11 00:03:14 +01:00
Guillaume Chau
fb1565d207
fix(useSbuscription): currentOptions undefined error, closes #903
2020-01-10 23:55:31 +01:00
Natalia Tepluhina
23c7f66bfc
docs: added example of overriding mutation options ( #898 )
2019-12-24 16:41:33 +01:00
Guillaume Chau
d22de85892
v4.0.0-alpha.4
2019-12-17 12:13:01 +01:00
Guillaume Chau
a04f2c1d98
Merge branch 'v4' of github.com:Akryum/vue-apollo into v4
2019-12-17 12:12:17 +01:00
Guillaume Chau
dbb1c094bd
fix: loading tracking not cleanup correctly on component unmount
2019-12-17 12:12:14 +01:00
Guillaume Chau
9c4b6b09b7
fix: use onBeforeUnmount
2019-12-17 11:07:50 +01:00
kahirokunn
d86e6b72fe
chore: remove blank ( #882 )
2019-12-10 09:56:43 +01:00
Brian Bugh
9edcf2feb8
fix(type): useResult type inferring 'any' ( #872 )
2019-12-05 15:15:53 +01:00
Brian Bugh
5ff22e61e9
chore: Fix build glob portability ( #873 )
2019-12-05 14:57:00 +01:00
Guillaume Chau
2a9ca9f7fa
v4.0.0-alpha.3
2019-12-04 16:36:08 +01:00
Guillaume Chau
280301f4ac
fix(useQuery): throttle & debounce not being applied initially
2019-12-04 16:35:48 +01:00
Guillaume Chau
947ceb1743
fix: enabled option for useQuery & useSubscription
2019-12-04 16:31:31 +01:00
Guillaume Chau
ff4c1630a6
v4.0.0-alpha.2
2019-12-04 15:54:40 +01:00
Guillaume Chau
ebea61eca6
fix: useXXXLoading() oldValue being undefined and triggering watcher
2019-12-04 15:54:04 +01:00
Guillaume Chau
39215877e9
feat(useMutation): overrideOptions
2019-12-04 15:49:44 +01:00
Guillaume Chau
8f3502f578
docs: fix missing language
2019-12-02 14:55:26 +01:00
Guillaume Chau
b0eb4ad3f9
docs: fix typos
2019-12-02 14:53:25 +01:00
Guillaume Chau
0d1e9c3d46
docs: fix userQuery => useQuery
2019-12-02 14:51:24 +01:00
Guillaume Chau
b5ffc720e7
chore: update lerna version
2019-12-02 04:22:28 +01:00
Guillaume Chau
169d6b39bb
docs: fix broken links
2019-12-02 04:15:48 +01:00
Guillaume Chau
66546223a7
docs: fix broken link
2019-12-02 04:12:35 +01:00
Guillaume Chau
1bf955206a
fix(useQuery): do not use finally
2019-12-02 04:08:59 +01:00
Guillaume Chau
bf3a7e87dd
docs: fix import @vue/apollo-option
2019-12-02 04:04:03 +01:00
Guillaume Chau
1d3bdf9e7c
test(ci): add ssr composition tests
2019-12-02 04:01:20 +01:00
Guillaume Chau
a6ded4f5ae
test(ci): fix cache
2019-12-02 04:00:43 +01:00
Guillaume Chau
151fbd2fc3
feat(useQuery): prefetch option
2019-12-02 03:59:38 +01:00
Guillaume Chau
b1cc1c9711
docs: ssr improvements & fixes
2019-12-02 03:58:44 +01:00
Guillaume Chau
049f5defa4
test: SSR composition API
2019-12-02 03:53:03 +01:00
Guillaume Chau
b4df941f28
fix(useQuery): immediate result
2019-12-02 03:49:16 +01:00
Guillaume Chau
4c72ff24c0
fix(useSubscription): don't start on server
2019-12-02 03:41:08 +01:00
Guillaume Chau
5d3b7dc598
feat(useQuery): SSR support
2019-12-02 03:40:18 +01:00
Guillaume Chau
e930f0cbff
fix(useQuery): isEnabled
2019-12-02 03:39:41 +01:00
Guillaume Chau
f9c3f72900
chore: update composition-api
2019-12-02 03:29:57 +01:00
Guillaume Chau
ab71f8742e
fix: ts error
2019-12-02 02:28:05 +01:00
Guillaume Chau
d4348440e6
chore: update deps
2019-12-02 02:27:29 +01:00
Guillaume Chau
75cd9e90d7
test: fix ssr tests
2019-12-02 02:11:19 +01:00
Guillaume Chau
ddb28e8b1d
docs: useLoading
2019-12-02 01:14:34 +01:00
Guillaume Chau
008e5f3fc8
feat: useLoading
2019-12-02 01:07:30 +01:00
Guillaume Chau
30267b297e
feat(composition): debounce + throttle
2019-12-01 22:54:48 +01:00
Guillaume Chau
f289394e90
fix: deps
2019-12-01 22:39:24 +01:00
Guillaume Chau
3f9eb596e9
refactor: split into @vue/apollo-ssr
2019-12-01 22:37:31 +01:00
Guillaume Chau
6e7a2822c9
test(ci): fix cache
2019-12-01 22:21:47 +01:00
Guillaume Chau
53c59fb12e
test: remove vue-apollo
2019-12-01 22:20:09 +01:00
Guillaume Chau
6e63246267
test: remove unused file
2019-12-01 22:19:20 +01:00
Guillaume Chau
f23d37c9f1
fix(components): main files
2019-12-01 22:15:18 +01:00
Guillaume Chau
28552ce0d6
text(ci): fix unnecessary commands
2019-12-01 22:11:18 +01:00
Guillaume Chau
24fa735842
text(ci): store artifacts for test-e2e-composition
2019-12-01 22:09:23 +01:00