Commit Graph

334 Commits

Author SHA1 Message Date
Daniel Roe
f1ded44e80 fix(nuxt): add basic typings for <ClientOnly> 2023-04-20 22:56:22 +01:00
Julien Huang
e8e01bac13
fix(nuxt): use key to force server component re-rendering (#19911) 2023-04-20 22:41:20 +01:00
Daniel Roe
12f347a928
fix(nuxt): clone app config on server (#20278) 2023-04-20 13:33:45 +01:00
Daniel Roe
8aa86559c8
fix(nuxt): mark useRequestHeaders keys as optional (#20286) 2023-04-15 15:43:19 +01:00
Daniel Roe
ac2e466175
fix(nuxt): provide more helpful error when instance unavailable (#20289) 2023-04-15 14:47:34 +01:00
Daniel Roe
3754591257
fix(nuxt): return type directly if not picking asyncData (#20288) 2023-04-15 11:03:09 +01:00
Daniel Roe
f366ab4eb8
chore: remove @ts-ignore and fix some issues (#20273) 2023-04-14 13:53:21 +01:00
Daniel Roe
b011d3d76f
fix(nuxt): improve handling of redirects within middleware (#20244) 2023-04-13 02:58:25 -07:00
Daniel Roe
e5d1d29b1d
fix(nuxt): add missing imports to <NuxtClientFallback> (#20237) 2023-04-12 10:10:18 -07:00
Daniel Roe
22f1f71e3e
fix(nuxt): mark entire payload as reactive (#20218) 2023-04-12 01:42:45 -07:00
Daniel Roe
4285092879
feat(nuxt): support object-syntax plugins (#20003) 2023-04-11 04:58:43 -07:00
Daniel Roe
d6c3c2439a
feat(nuxt): support async transform of object properties (#20182) 2023-04-10 14:57:13 -07:00
Daniel Roe
e99f923aa5
feat(nuxt): add experimental View Transitions API support (#20092) 2023-04-10 04:33:14 -07:00
Daniel Roe
9878c5b6e4
style: enable sort-imports eslint rule (#20133) 2023-04-07 09:02:47 -07:00
Daniel Roe
c65c5a8e79
fix(nuxt): deprecate old (pre-rc) runtimeConfig (#20082) 2023-04-07 04:36:45 -07:00
pooya parsa
9e503be0f2
feat(nuxt): experimental option for rich json payloads (#19205)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-07 03:34:35 -07:00
cany748
4f0b3c7223
fix(nuxt): add undefined type for useCookie return value 2023-04-07 01:45:44 -07:00
Julien Huang
b068f79fee
fix(nuxt): add key to .client component placeholders (#20093) 2023-04-07 01:31:04 -07:00
Anthony Fu
72ba53efbc
feat(test-utils): allow mounting single component for testing (#5723) 2023-04-06 05:07:22 -07:00
Aleksandar Trpkovski
1ae30ba474
fix(nuxt): throw error on protocol relative path in useFetch (#20052) 2023-04-04 15:04:38 -07:00
Daniel Roe
ee8d3f6ea6
feat(nuxt): support disabling watch with useFetch (#19823) 2023-04-03 05:36:14 -07:00
Daniel Roe
61699f864e
feat(nuxt): warn in dev when useRoute is used in middleware (#20050) 2023-04-03 03:36:17 -07:00
Daniel Roe
2f8e991b94 chore: fix typo in code comment 2023-04-01 12:12:34 +01:00
Daniel Roe
822202239c
fix(nuxt): sync setResponseStatus signature with h3 (#19987) 2023-03-31 07:02:26 -07:00
Daniel Roe
4ed5d2f872
fix(nuxt): suppress handled errors (#20002) 2023-03-31 02:17:10 -07:00
Julien Huang
4671294229
fix(nuxt): directly render server components (#19605) 2023-03-20 14:47:06 -07:00
Mehdi HosseinZade
3a971d0b36
fix(nuxt): observe slot element in custom nuxt-link (#19802) 2023-03-20 14:46:12 -07:00
Daniel Roe
ebd7dcd4ba
fix(nuxt): handle external navigation to api routes (#19829) 2023-03-20 17:15:01 +00:00
Daniel Roe
3055ce35b1
fix(nuxt): use h3 utilities to set response status/code (#19713) 2023-03-19 16:20:04 -07:00
Daniel Roe
4ca2dccd38
fix(nuxt): unset context after app is created (#19753) 2023-03-17 19:01:16 +00:00
Daniel Roe
4b2cb52f8a
fix(nuxt): fix default injection type for plugins (#19669) 2023-03-14 06:08:43 -07:00
Daniel Roe
0f6276dc6e
fix(nuxt): mark non-augmented NuxtApp properties as unknown (#19643) 2023-03-14 03:09:50 -07:00
Xin Du (Clark)
4de4de1a71
fix(nuxt): improve types for data fetching with transform (#19487) 2023-03-11 14:36:10 -08:00
Daniel Roe
b19b35fb67
fix(nuxt): provide node16-style type exports (#18431) 2023-03-11 13:16:01 -08:00
Daniel Roe
e6bbf71fd5
chore: improve internal type safety (#19599) 2023-03-11 18:22:29 +00:00
Harlan Wilton
c91e4d7933
feat(nuxt): add useHeadSafe and remove layer around head imports (#19548) 2023-03-10 00:01:21 -08:00
Daniel Roe
9a5e3e3044
chore(nuxt): update to new hasProtocol options format (#19555) 2023-03-09 18:37:18 +00:00
Daniel Roe
d469740105
fix(nuxt): dedupe payload cache by payload url (#19563) 2023-03-09 18:36:54 +00:00
Daniel Roe
a313f06261
fix(nuxt): only log boot errors on client-side (#19553) 2023-03-09 06:37:39 -08:00
Julien Huang
1729d2e42f
feat(nuxt): add <NuxtClientFallback> component (#8216) 2023-03-08 13:13:06 -08:00
Daniel Roe
df3ae8cb4e
feat(nuxt): enable chunk error handling by default (#19086) 2023-03-08 12:17:22 +00:00
Daniel Roe
c2ab76d68e
perf(vite): mark more core functions as side-effect free (#19508) 2023-03-07 14:51:08 -08:00
Alex Korytskyi
3a73f42d1c
feat(nuxt): support trailingSlashBehavior in defineNuxtLink (#19458) 2023-03-06 23:17:42 -08:00
Alex Liu
ca32852122
feat(nuxt): enable preloading object-syntax routes (#19120) 2023-03-06 03:34:17 -08:00
Daniel Roe
a420369c90
fix(nuxt): don't print layout warning if page is not ssr (#19434) 2023-03-03 08:47:08 -08:00
Xin Du (Clark)
654b9a21d7
fix(schema): update vite import.meta types (#19338) 2023-03-03 02:20:15 -08:00
Lucie
0be8cda77a
fix(nuxt): prevent fallthrough attributes on custom NuxtLink (#19379) 2023-03-02 01:53:46 -08:00
Daniel Roe
d4a75240ac
feat(nuxt): add versions to runtime nuxtApp (#19064) 2023-03-01 07:08:23 -08:00
Alexander Lichter
639189ca88
fix(nuxt): clear loading indicator on unmount (#19340) 2023-02-28 20:18:47 +01:00
renovate[bot]
8bfc66d6f7
chore(deps): update all non-major dependencies (main) (#19235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-27 11:02:11 -08:00
Daniel Roe
f16cce8824
fix(nuxt): compatible route object for custom external routes (#19261) 2023-02-27 07:13:14 -08:00
igayamaguchi
9e6fa9f7ba
fix(nuxt): preserve explicit rel attribute on internal link (#19309) 2023-02-27 13:29:57 +01:00
Daniel Roe
7479d469dd
fix(nuxt): log errors thrown when booting the nuxt app (#19187) 2023-02-21 07:06:10 -08:00
Alex Liu
268cded26c
fix(nuxt): prefetch object-syntax routes with <NuxtLink> (#19144) 2023-02-20 12:31:27 -08:00
Daniel Roe
af55b9882e fix(nuxt): test generated pathname 2023-02-16 17:16:51 +00:00
Daniel Roe
e9ff34ace4 fix(nuxt): restore previous check on payload url 2023-02-16 16:59:06 +00:00
Daniel Roe
7aa35ff958
fix(nuxt): validate no // in path when constructing payload url (#19085) 2023-02-16 06:40:51 -08:00
Nathan Chase
681cfa83fd
perf(nuxt): animate transform rather than width (#19073) 2023-02-16 05:04:09 -08:00
Daniel Roe
96b09ea982
feat(nuxt): add experimental app:chunkError hook and reload strategy (#19038) 2023-02-16 04:43:58 -08:00
Xin Du (Clark)
859fbd0add
fix(nitro): ensure ssr error statusCode is a number (#19001) 2023-02-13 22:55:29 +00:00
Daniel Roe
6016aef859
fix(nuxt): expose nuxt/schema subpath for augmentation (#18922) 2023-02-13 22:42:04 +00:00
Lioness100
b25b6c82c7
docs: fix typos (#18976) 2023-02-12 19:16:42 +00:00
Daniel Roe
ee2f568fc1 refactor(nuxt): combine imports from same relative path 2023-02-10 10:32:02 +01:00
Daniel Roe
71d67ad47f chore: combine import statements 2023-02-09 09:13:48 +01:00
Daniel Roe
9a035a15c5
refactor(nuxt): within nuxt app, import directly from source file (#18902) 2023-02-08 22:26:41 -08:00
pooya parsa
9845467421
feat(nuxt): upgrade to nitropack 2.2 (#18889) 2023-02-09 07:02:07 +01:00
Dany Sluijk
bae73c3650
feat(nuxt): infer useFetch return based on the method (#18526) 2023-02-07 06:01:31 -08:00
Alex Liu
526a78095a
fix(nuxt): defer adding route path to preloaded record (#18862) 2023-02-07 06:01:03 -08:00
Daniel Roe
39747ce095
perf(vite): use stub entry in vite server build when ssr: false (#18782) 2023-02-06 15:25:24 -08:00
Daniel Roe
cb0860ba6c
fix(nuxt): make onNuxtReady safe to run on server-side (#18706) 2023-02-02 05:27:48 -08:00
Daniel Roe
7d812db9e8
fix(nuxt): augment interfaces exported from vue (#18505) 2023-01-25 07:59:02 -08:00
Daniel Roe
629d2c099e fix(nuxt): import onServerPrefetch 2023-01-23 23:40:09 +00:00
Daniel Roe
de4086f6ed
fix(nuxt): let router handle internal redirects within middleware (#18445) 2023-01-23 11:18:33 +00:00
Daniel Roe
c5d6db7fd0
fix(nuxt): await async callWithNuxt calls (#18443) 2023-01-23 11:13:21 +00:00
Daniel Roe
0236a799f2
fix(vite): don't skip loading styles in hydration phase (#18433) 2023-01-21 23:15:48 +00:00
Kareem Dabbeet
ea9812a559
feat(nuxt): allow disabling color for <NuxtLoadingIndicator> (#18432) 2023-01-21 23:15:32 +00:00
Alan Poulain
50e23bad35
fix(nuxt): use query for hashing the fetch key (#18411) 2023-01-20 18:05:10 +00:00
Daniel Roe
5e1881c20a
feat(nuxt): support server components with extracted payloads (#10113) 2023-01-20 12:10:58 +00:00
Daniel Roe
0db3c6373a
fix(nuxt): name anonymous components in render tree (#10011) 2023-01-14 01:27:38 +00:00
renovate[bot]
0b1cdcc70d
chore(deps): update devdependency @nuxtjs/eslint-config-typescript to v12 (#9086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-01-14 01:13:48 +00:00
Mohammad Saleh Fadaei
5b19a0dc34
fix(nuxt): don't try to override computed layouts in definePageMeta (#9161) 2023-01-14 00:58:54 +00:00
Sébastien Chopin
71a5727589
fix(nuxt): support deep assign on empty object for app config (#10087) 2023-01-13 23:28:07 +00:00
Daniel Roe
a68da6d6a7
chore: case police update (#10085) 2023-01-13 15:00:57 +00:00
Alex Liu
9de94c21cf
refactor: improve internal type definitions of <NuxtLink> (#9869) 2023-01-10 14:33:21 +00:00
Alejandro Romano
7f4f10a733
fix(nuxt): set is loading state for <NuxtLoadingIndicator> after throttle (#9832) 2023-01-02 19:20:53 +01:00
Mehdi HosseinZade
04c8625843
feat(nuxt): deep watch useCookie ref value by default (#9664)
* feat(nuxt): useCookie add deep watch option

* docs(api): useCookie add deepWatch option

* feat(nuxt): useCookie change deepWatch to watch option

* boolean|shallow

* enable watch by default

* docs: fix example

* docs(api): update useCookie example

Co-authored-by: Pooya Parsa <pooya@pi0.io>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-12-19 12:50:46 +01:00
renovate[bot]
3733f123df
chore(deps): update all non-major dependencies (#9670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-12-12 16:45:15 +00:00
Daniel Roe
5afcaca98f
feat(vite): upgrade to vite 4 (#9238) 2022-12-12 15:22:04 +00:00
Daniil Chudo
ab2456c295
refactor: split out type imports from value imports (#9225) 2022-12-11 21:44:52 +00:00
Evgeny Yurkin
4641e8e504
fix(nuxt): await plugin asyncdata promises in nuxt hook (#9616) 2022-12-10 22:44:29 +00:00
Mahdi Boomeri
9c478ee16e
feat: useNuxtData composable (#9262)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-12-05 14:07:33 +01:00
Daniel Roe
5fe7c1c24d
fix(nuxt): speculation rules should be reactive (#9472) 2022-12-05 11:46:13 +01:00
Daniel Roe
4c4249dc33
feat(nuxt): add onNuxtReady composable (#9478) 2022-12-05 11:09:58 +01:00
Daniel Roe
52421a9354
fix(nuxt): defer render-blocking prefetches until after load (#9475) 2022-12-02 16:13:35 +00:00
Daniel Roe
c26979a047
fix(nuxt): useCookie with defaults should return non-null value (#9449) 2022-12-02 10:45:33 +01:00
Daniel Roe
aa9aec112a
fix(nuxt): allow layouts to receive custom props (#9395) 2022-11-29 13:16:41 +01:00
Daniel Roe
ab125bd1c5
feat(nuxt): experimental server component islands (#5689)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-11-24 13:24:14 +01:00
Toby Faux
32044dc8a5
fix(nuxt): allow union type arguments for useAsyncData (#9061) 2022-11-16 15:27:24 +01:00
pooya parsa
5ac9d85a49
refactor!: remove deprecated api (#9029) 2022-11-16 03:26:35 +01:00
Daniel Roe
f7850526e8
fix(nuxt)!: include request url and params in useFetch key (#6632) 2022-11-15 17:47:41 +01:00
Daniel Roe
2c2fbdffc9
refactor(nuxt)!: move head option support into defineNuxtComponent (#8901) 2022-11-15 15:47:17 +01:00
pooya parsa
b49f2a8147
refactor: update unjs dependencies to stable v1 (#9011) 2022-11-15 15:33:43 +01:00
Julien Huang
8c4ff5c585
fix(nuxt): avoid passing attrs to default slot for ClientOnly (#8921) 2022-11-14 11:27:57 +01:00
Daniel Roe
e6351349c0
feat(nuxt): add onBeforeRouteLeave and onBeforeRouteUpdate composables (#8889) 2022-11-10 14:52:04 +01:00
pooya parsa
52c2bffa76
fix(nuxt)!: remove initialCache option (#8885) 2022-11-10 14:27:59 +01:00
pooya parsa
0ff4ebe808
feat: allow customizing root id and tag (#8883) 2022-11-10 12:41:02 +01:00
renovate[bot]
dd600bbb66
chore(deps): update all non-major dependencies (#8779) 2022-11-10 10:43:24 +01:00
Daniel Roe
17099348e7
fix(nuxt)!: only add $f fetch prefix to auto-keys (#8852) 2022-11-10 09:39:49 +01:00
Daniel Roe
3839dba06a
refactor(nuxt): explicitly import app in nuxt-root (#8729) 2022-11-09 10:14:15 +01:00
Daniel Roe
aec07f4255
style: lint Route interface (#8822) 2022-11-09 10:08:50 +01:00
Daniel Roe
4d1be089d7
chore(nuxt): remove unused plugins (#8819) 2022-11-09 10:07:22 +01:00
Alexander Lichter
0cf0f59bc5
fix(ssr): ensure useRequestHeaders are case-insensitive (#8805)
Co-authored-by: Haruaki OTAKE <aaharu@hotmail.com>
2022-11-09 10:04:19 +01:00
Alexander Lichter
15d4cea97e
feat(nuxt-link): add isExternal to slot props (#8800) 2022-11-09 10:02:11 +01:00
Daniel Roe
e76ebdddd0
fix(nuxt): allow cookies to be set to null to unset them (#8769)
Co-authored-by: Magyar Balázs <magyarb94@gmail.com>
2022-11-09 09:59:23 +01:00
pooya parsa
19a2cd1492
fix(nuxt): ensure payload url has no protocol (#8675) 2022-11-03 23:28:13 +01:00
Daniel Roe
bdacfa6ffe
fix(nuxt): pass async-data errors through to client (#8521) 2022-11-02 10:07:28 +01:00
Sacha STAFYNIAK
b010e3e861
feat: add dev-only component (#7950) 2022-10-26 14:43:37 +02:00
Daniel Roe
1d795f0274
fix(nuxt): call data refresh hook in parallel (#8470) 2022-10-25 17:29:35 +02:00
Daniel Roe
91eab1b312
feat(nuxt): add dev warnings when setPageLayout is used incorrectly (#8464) 2022-10-25 14:25:49 +02:00
Daniel Roe
59d8c51b5b
refactor(schema)!: disable app.pageTransition and app.layoutTransition by default (#8436) 2022-10-24 17:23:49 +02:00
Daniel Roe
6bcd9cdeb1
fix(nuxt): avoid directly importing vue-router inside <NuxtLayout> (#8421) 2022-10-24 10:36:49 +02:00
Daniel Roe
e1ab5cf6d6
fix(nuxt): don't load payloads for external urls (#8370) 2022-10-21 10:27:58 +02:00
Daniel Roe
69a6a86d7c
feat(nuxt): make useFetch options reactive (#8374) 2022-10-21 10:13:14 +02:00
Joel Wenzel
ba3a11800c
feat(nuxt): default router scroll behavior (#3851)
Co-authored-by: joel <joel.wenzel@flexagon.com>
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-19 14:43:03 +02:00
Daniel Roe
d3f3f9f348
fix(nuxt): don't use or assignment (#8299) 2022-10-19 09:55:32 +02:00
Daniel Roe
a90b303d97
fix(nuxt): avoid preloading external routes (#8255) 2022-10-17 19:54:32 +02:00
Daniel Roe
2a4ebfb18b
perf(nuxt): improve link prefetching (#8225) 2022-10-17 13:15:29 +02:00
pooya parsa
895ecc7677
feat!: upgrade to nitropack@0.6 and h3@0.8 (#8218) 2022-10-15 20:42:57 +02:00
Daniel Roe
d862a6bfdd
fix(nuxt)!: refresh to override previous requests by default (#8190) 2022-10-15 13:02:23 +02:00
Daniel Roe
6dcff8e428
feat(nuxt): add hook debug mode (#7690) 2022-10-15 12:56:15 +02:00
Daniel Roe
2083ed4a63
perf(nuxt): remove vue-router dependency from minimal app (#8188) 2022-10-14 10:36:03 +02:00
Benicio Cardozo
9fa147dc22
types: include nuxt-link target types (#8172)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-13 19:51:26 +02:00
Daniel Roe
385674494d
feat(nuxt): refresh override for data fetching composables (#7864) 2022-10-10 11:33:16 +01:00
Daniel Roe
829a550580
feat(pages): add validate hook for definePageMeta (#7870) 2022-10-10 11:18:20 +01:00
Daniil Chudo
75f4a54f7e
feat(nuxt): add default slot to <NuxtLoadingIndicator> (#7128)
Co-authored-by: Alexander Lichter <github@lichter.io>
2022-10-10 11:12:36 +01:00
Daniel Roe
6d904663a4
fix(nuxt): use correct cache and add baseURL to payload (#7984) 2022-10-09 15:22:19 +01:00
mmis1000
c404cb1be4
fix(nuxt): page hydration and double load (#7940)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-08 16:18:57 +02:00
Julien Huang
e6ca07bdc0
fix(nuxt): remove fragment from createClientOnly (#7774)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
2022-10-03 16:14:55 +02:00
菜狗
a68a7fe07d
refactor(nuxt): use unref in fetch.ts (#7813) 2022-09-26 11:13:30 +02:00
chenying
30277da960
refactor(nuxt): use unref in layout.ts (#7818)
Co-authored-by: chenying <1770365139@qq.com>
2022-09-26 11:12:20 +02:00
Daniel Roe
2894a75bc8
fix(nuxt): respect immediate option in useFetch (#7720) 2022-09-22 15:55:29 +02:00
Daniel Roe
b68cf0706d
fix(nuxt): do not warn for non-existent default layout (#7748) 2022-09-22 15:54:55 +02:00
Daniel Roe
a9a8571e35
fix(nuxt): export and auto-import clearNuxtData (#7710) 2022-09-21 11:53:38 +02:00
Daniel Roe
98ce2e6492
fix(nuxt): only observe tag elements for <NuxtLink> prefetching (#7679) 2022-09-20 11:29:22 +02:00
Julien Huang
c4fe8525ef
fix(nuxt): add missing process.client for early redirect in navigateTo (#7625) 2022-09-19 10:54:35 +02:00
pooya parsa
1ebdef77a6
fix(nuxt): keep state in the initial state instead of extracting it (#7567) 2022-09-16 12:49:00 +02:00
Daniel Roe
c1ed6ecc3c
fix(nuxt): load payload after middleware and once final route is resolved (#7574) 2022-09-16 12:15:10 +02:00
Daniel Roe
3ed63a6b70
fix(nuxt): do not pass prefetched class to custom link (#7522) 2022-09-15 09:52:21 +02:00
pooya parsa
9024d76165
fix(nuxt): add payload.client plugin only for production build (#7498) 2022-09-14 15:01:02 +02:00
Daniel Roe
ee75b48526
refactor(nuxt): use relative imports into composables (#7487) 2022-09-14 11:22:03 +02:00