Commit graph

41 commits

Author SHA1 Message Date
Yiming
00ccb7395a
feat(zmodel): "type" construct and strongly-typed Json fields (#1813) 2024-11-03 19:24:57 -08:00
ymc9
3b18362d2c Merge remote-tracking branch 'origin/main' into dev 2024-11-03 10:24:51 -08:00
ymc9
55c6fd6f7c change to use default export from 'cross-fetch' 2024-11-02 16:49:49 -07:00
ymc9
3ed1614939 fix(hooks): prefer to use global fetch when available 2024-11-02 16:38:17 -07:00
Yiming
00ecb2a748
fix(hooks): add null check to data before further deserialization (#1822) 2024-10-31 16:19:54 -07:00
Yiming
178f6977ca
fix(tanstack-query): non-zenstack queries are accidentally visited during optimistic update (#1775) 2024-10-14 11:54:26 -07:00
Yiming
814d64e653
fix(tanstack,swr): create/upsert hooks shouldn't be generated for delegate models (#1567) 2024-07-08 19:26:33 -07:00
Yiming
a4efa6e3fe
fix(tanstack): incorrect vue-query options typing for vue-query v5 (#1565) 2024-07-08 18:38:32 -07:00
Yiming
92f187f919
fix(tanstack): incorrect InfiniteData import for vue-query (#1498) 2024-06-11 10:28:51 +08:00
Yiming
ed5133c0e8
fix(tanstack): incorrect typing for svelte query hooks (#1492) 2024-06-08 11:49:41 +08:00
Yiming
e15837285e
fix(tanstack): infinite query typing issues (#1480) 2024-06-02 19:29:23 +08:00
Yiming
b22c6a3ce2
fix: avoid importing prisma-related code into language server (#1441) 2024-05-12 18:35:43 +08:00
Yiming
296ca259c8
fix: compatibility with Prisma's "omit" feature (#1432) 2024-05-11 15:54:35 +08:00
Yiming
10307700c5
feat: add check hooks generation to tanstack and swr plugins (#1422) 2024-05-09 13:19:42 +08:00
Yiming
420df87bf1
merge v2 to dev (#1281)
Co-authored-by: Augustin <43639468+Azzerty23@users.noreply.github.com>
Co-authored-by: Jonathan Stevens <jonathan.stevens@resnovas.com>
Co-authored-by: Jonathan S <jonathan.stevens@eventiva.co.uk>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ErikMCM <70036542+ErikMCM@users.noreply.github.com>
Co-authored-by: Jason Kleinberg <ustice@gmail.com>
Co-authored-by: Jonathan S <punk.gift9475@alias.org.uk>
Co-authored-by: Jiasheng <jiashengguo@outlook.com>
2024-04-24 21:19:41 +08:00
Yiming
f259d733b8
fix(tanstack): make sure vue-query hooks' input is reactive (#1185) 2024-03-27 20:34:44 -07:00
Yiming
a01065c0aa
fix(tanstack): improve typing of mutation errors (#1066) 2024-02-29 21:56:25 -08:00
Yiming
b2e1635cb1
fix: vue-query typing issue (#1009) 2024-02-18 17:57:51 -08:00
Yiming
43eb61508f
fix: generate suspense queries in tanstack-query plugin (#996) 2024-02-12 21:49:37 +08:00
Yiming
cc98e30655
fix: tanstack-query, fix the incorrect query typing when user provides a custom selector (#967) 2024-01-29 16:07:55 +08:00
Ben Bozzay
acb23d1d1e
fix: typing generated for options parameter in the hooks method (#946) 2024-01-12 13:38:42 +08:00
Yiming
45772326c7
fix: lint issue in generated swr/tanstack hooks (#877) 2023-12-01 22:08:39 -08:00
Yiming
08d317d150
fix: tanstack-query build issues and bugs in optimistic update (#843) 2023-11-21 15:11:56 -08:00
Yiming
93dc7df472
feat: automatic optimistic update for tanstack hooks (#830) 2023-11-15 08:40:15 -08:00
Yiming
742f606845
chore: don't generate attributes in frontend model meta (#798) 2023-11-01 11:18:09 -07:00
Yiming
42d654fcfa
feat: improved automatic query invalidation for tanstack-query (#790) 2023-10-31 20:11:44 -07:00
Yiming
0d04d8e6da
feat: tanstack-query v5 support (#788) 2023-10-28 22:09:41 -07:00
Yiming
916d3c141d
chore: add context helpers to the generated tanstack hooks (#767) 2023-10-16 20:29:57 -04:00
Yiming
033d95dcde
feat: Nuxt server adapter and tanstack-query for "vue" hooks generation (#757) 2023-10-13 16:55:42 -07:00
Yiming
330049949b
feat: infinite query support for tanstack-query (#679) 2023-09-08 12:39:09 +08:00
Yiming
32d5b262ca
fix: bugs related to model name casing (#645) 2023-08-23 16:16:24 +08:00
Yiming
3e09a3a664
fix: add CheckSelect type into code for Prisma version backward compatibility (#619) 2023-08-08 11:15:14 +08:00
Yiming
ca3ebdae4e
fix: hooks generation emits Provider export for backward compatibility (#594) 2023-07-19 18:18:43 +08:00
Yiming
b0d9154270
feat: support Prisma v5 (#587) 2023-07-18 22:56:53 +08:00
Yiming
46fec666c3
feat: always use superjson to serialize/deserialize in the api layer (#585) 2023-07-17 18:29:22 +08:00
Yiming
2a6b31a29c
feat: allow to use custom fetch with generated hooks (#556) 2023-07-05 16:03:33 +08:00
Yiming
5f3669e533
fix: support for custom prisma client output path (#514) 2023-06-25 17:16:49 +08:00
Yiming
9eaf2353e4
fix: canonicalize plugin's output folder detection; don't generate aux field unnecessarily (#423) 2023-05-20 22:02:00 +09:00
Yiming
3ee7821498
feat: swr plugin (#419) 2023-05-19 06:30:28 +09:00
Yiming
53716c99c3
feat: implementing sveltekit adapter and refactor server package (#418) 2023-05-18 17:05:39 +09:00
Yiming
9351fc9431
feat: implement tanstack-query generator plugin (#413) 2023-05-15 22:34:22 -07:00