Commit Graph

616 Commits

Author SHA1 Message Date
Daniel Roe
2960aa3426
fix(schema): transpile nuxt/app by default (#19009) 2023-02-14 00:23:12 +00:00
Daniel Roe
4219ff21e9
fix(nuxt): prevent hyphens forming child routes & warn if dupes are detected (#18944) 2023-02-13 22:56:39 +00: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
pooya parsa
7111b6cf44
fix(nuxt): avoid recursive import in nitro renderer (#18948)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-10 16:33:06 +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
Julien Huang
113ce71c34
fix(nuxt): use parser to treeshake <ClientOnly> (#8713) 2023-02-08 00:59:57 -08:00
Yasser Lahbibi
e451a9965e
fix(nuxt): don't exclude pnpm layers from nitro esbuild/imports (#9952) 2023-02-07 09:18:47 -08: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
Anthony Fu
2677b88f5f
feat(nuxt): support type auto-import (#18859) 2023-02-07 06:00:11 -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
renovate[bot]
39b5886a0d
chore(deps): update all non-major dependencies (main) (#18775)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-05 04:31:53 -08:00
Julien Huang
bf617c790c
fix(nuxt): treeshake client-only components with placeholders (#8789) 2023-02-04 07:36:03 -08:00
Daniel Roe
2b75414f47
perf(nuxt): cache result of importing styles module (#18734) 2023-02-03 04:50:17 -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
b7591e639d
perf(nuxt): simplify generated variable names (#18629) 2023-01-30 12:24:58 -08:00
Daniel Roe
a0085b70a3
fix(nuxt): dedupe vue-router (#18626) 2023-01-30 10:22:15 -08:00
Daniel Roe
5037dd6876
fix: use named export from defu in all places (#18624) 2023-01-30 04:09:48 -08:00
Daniel Roe
7d812db9e8
fix(nuxt): augment interfaces exported from vue (#18505) 2023-01-25 07:59:02 -08:00
Daniel Roe
1d68b51c2c
fix(nuxt): async transform for inline middleware (#18460) 2023-01-25 04:52:00 -08:00
Daniel Roe
fdb31f418f
fix(nuxt): don't render unknown components with placeholder (#18494) 2023-01-25 02:30:59 -08:00
Daniel Roe
9751c9dab7
fix(nuxt): do not override inferred type of <NuxtPage> (#18495) 2023-01-25 00:44:59 -08:00
Daniel Roe
f711046171
perf(nuxt): add tree-shaken useServerSeoMeta composable (#18476) 2023-01-24 15:34:20 +00:00
Daniel Roe
629d2c099e fix(nuxt): import onServerPrefetch 2023-01-23 23:40:09 +00:00
pooya parsa
1af319e0fa
feat: experimental config schema (#18410) 2023-01-23 19:07:21 +01:00
Harlan Wilton
1406d21ed2
feat(head): useSeoMeta composable (#18441) 2023-01-23 11:39:17 +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
Inesh Bose
98d292ae85
fix(nuxt): provide types for modules as array (#18416)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-01-21 16:55:44 +00:00
Alan Poulain
50e23bad35
fix(nuxt): use query for hashing the fetch key (#18411) 2023-01-20 18:05:10 +00:00
renovate[bot]
7c1712013c
chore(deps): update all non-major dependencies (main) (#11127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2023-01-20 16:17:31 +00:00
Daniel Roe
5e1881c20a
feat(nuxt): support server components with extracted payloads (#10113) 2023-01-20 12:10:58 +00:00
Sébastien Chopin
912eafbbf6
feat(nuxt): prefetch middleware/layouts + await layout loading (#10155) 2023-01-19 13:01:21 +00:00
Daniel Roe
0db3c6373a
fix(nuxt): name anonymous components in render tree (#10011) 2023-01-14 01:27:38 +00:00
Daniel Roe
488479ab1b
fix(nuxt): avoid injecting url helpers into globalThis (#9627) 2023-01-14 01:27:06 +00:00
Kyohei Oka
86ed4ef1f4
fix(nuxt): update class prop type for head components (#9133) 2023-01-14 01:18:55 +00:00
Daniel Roe
bf649fe576
fix(nuxt): allow overriding lower layer composables (#10017) 2023-01-14 01:14:24 +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
Julien Huang
f4ba7ec82d
fix(nuxt): don't short circuit middleware after validate function (#9180) 2023-01-14 00:23:20 +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
ef39d2c9d9
fix(nuxt): add build.transpile strings to nitro inline list (#10094) 2023-01-13 23:19:03 +00:00
Daniel Roe
a68da6d6a7
chore: case police update (#10085) 2023-01-13 15:00:57 +00:00
Daniel Roe
698a3103e0
fix(nuxt): include components runtime dir in build output (#10046) 2023-01-11 20:51:49 +00:00
Alex Liu
9de94c21cf
refactor: improve internal type definitions of <NuxtLink> (#9869) 2023-01-10 14:33:21 +00:00
Anthony Fu
586df1a817
feat(imports): imports:context hook for unimport context (#9971) 2023-01-09 11:35:44 +00:00
Daniel Roe
2d013c5fad
feat(nuxt): server-only components (#9972) 2023-01-09 11:20:33 +00:00
Alejandro Romano
7f4f10a733
fix(nuxt): set is loading state for <NuxtLoadingIndicator> after throttle (#9832) 2023-01-02 19:20:53 +01:00
Yann Odeyer
da6fa9ab44
perf(nuxt): use static import of @unhead/ssr (#9826) 2022-12-23 14:18:14 +01:00
Anthony Fu
faf260757c
feat(vite): display production build stats (#9761) 2022-12-19 12:57:08 +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
Daniel Roe
0cb9a4c51d
refactor(nuxt): do not add all composable auto-imports to globalThis (#9630) 2022-12-13 10:30:12 +00:00
Daniel Roe
4cf110e0d8
fix(nuxt): make dev-only regexp less greedy (#9679) 2022-12-13 09:39:14 +00: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
Daniel Roe
23307cd8e0
fix(nuxt): remove absolute paths from routes objects (#9655) 2022-12-12 13:25:00 +01:00
Harlan Wilton
4cb7e425a1
refactor(nuxt): remove vue-meta for head support (#9638) 2022-12-12 11:07:31 +01: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
Daniel Roe
2396fc657f
fix(nuxt): remove deprecated req/res access (#9636) 2022-12-10 19:54:35 +00:00
Alexander Lichter
d0c0cd7ad2
refactor(nuxt): use pathe.join for layer lookup (#9540) 2022-12-06 12:30:14 +01:00
Alexander Lichter
5f935aad48
feat(nuxt): support for extending error.vue in layers (#9521) 2022-12-06 09:44:03 +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
Damian Głowala
4f2bfbe5c0
fix(nuxt): include missing <NuxtPage> component props (#9204)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-11-21 14:03:22 +01:00
Danil Zalizchuk
e85e3ab6e5
refactor(nuxt): fix typo in internal plugin names (#9201) 2022-11-21 11:45:54 +01:00
Toby Faux
32044dc8a5
fix(nuxt): allow union type arguments for useAsyncData (#9061) 2022-11-16 15:27:24 +01:00
pooya parsa
d6bfa216ae
fix(nuxt): removed auto imports (#9045) 2022-11-16 10:59:45 +01:00
pooya parsa
5ac9d85a49
refactor!: remove deprecated api (#9029) 2022-11-16 03:26:35 +01:00
Anthony Fu
f1ae40fc4e
fix(nuxt): improve hmr for pages macros (#8940)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-11-15 18:15:44 +01:00
Daniel Roe
f7850526e8
fix(nuxt)!: include request url and params in useFetch key (#6632) 2022-11-15 17:47:41 +01:00
Harlan Wilton
fddc8b2e6e
feat(nuxt, schema): official @vueuse/head v1 support (#8975) 2022-11-15 17:26:38 +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
Daniel Roe
4c8369fbf3
fix(nuxt): include layers in esbuild transform (#9014) 2022-11-15 14:52:16 +01:00
kevin olson
79d5634c69
docs: add a bit more detail in the definePageMeta warning to specify it needs to be in a page (#8923) 2022-11-14 11:28:31 +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
Toby Faux
3e34a61506
fix(nuxt): use app.baseURL when fetching error page on server (#8888)
Co-authored-by: Toby Faux <tobyfaux@Tobys-MacBook-Pro.local>
2022-11-10 14:42:55 +01:00
pooya parsa
52c2bffa76
fix(nuxt)!: remove initialCache option (#8885) 2022-11-10 14:27:59 +01:00
pooya parsa
83b5c09090
fix(nuxt): preserve render errors (#8884)
* fix(nuxt): preserve render errors

* simplify logic
2022-11-10 13:28:20 +01:00
pooya parsa
0ff4ebe808
feat: allow customizing root id and tag (#8883) 2022-11-10 12:41:02 +01:00
Daniel Roe
9227361027
fix(nuxt): detect non-functional imports within page meta (#8881) 2022-11-10 11:31:01 +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
4bbd2618ce
feat(nuxt): auto-import utils/ directory (#8817) 2022-11-09 10:43:16 +01:00
Daniel Roe
3839dba06a
refactor(nuxt): explicitly import app in nuxt-root (#8729) 2022-11-09 10:14:15 +01:00
Daniel Roe
453ce78300
fix(nuxt): swallow issues with query selectors (#8843) 2022-11-09 10:10:32 +01:00
Daniel Roe
aec07f4255
style: lint Route interface (#8822) 2022-11-09 10:08:50 +01:00
Daniel Roe
5a32927935
fix(nuxt): do not render page if we are throwing error (#8821) 2022-11-09 10:08:37 +01:00
Daniel Roe
4d1be089d7
chore(nuxt): remove unused plugins (#8819) 2022-11-09 10:07:22 +01:00
Daniel Roe
10c2272f4f
refactor(nuxt)!: remove support for 404.vue shorthand (#8809) 2022-11-09 10:05: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
30d99477ce
fix(nuxt): add catchall paths to prerender list (#8782) 2022-11-09 10:00:34 +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
Agénor Debriat
b60f1364c5
refactor(nuxt)!: fix typo for NuxtRenderHTMLContext.bodyPrepend (#8712) 2022-11-07 11:29:41 +01:00
Sébastien Chopin
fe433a4222
fix(nuxt): check if global transitions are activated for scroll behavior (#8700) 2022-11-04 19:09:28 +01:00
pooya parsa
19a2cd1492
fix(nuxt): ensure payload url has no protocol (#8675) 2022-11-03 23:28:13 +01:00
pooya parsa
9eb6a62471
fix: resolve ids to support pnpm (#8671) 2022-11-03 22:48:51 +01:00
pooya parsa
253c8f7ee0
fix(nuxt): disallow directly rendering error page (#8673) 2022-11-03 22:48:29 +01:00
pooya parsa
ea17148a6b
feat(kit, nuxt): support prerender:routes and addPrerenderRoutes (#8670) 2022-11-03 22:03:12 +01:00
Daniel Roe
cda498b070
fix(nuxt): do not inline global styles in html response (#8666) 2022-11-03 20:17:43 +01:00
Daniel Roe
71ecffa234
fix(nuxt): don't force prerender / if user doesn't have that route (#8639)
* fix(nuxt): don't force prerender `/` if user doesn't have `~/pages/index.vue`

* docs: add code comment
2022-11-03 15:52:03 +01:00
Daniel Roe
496fa14468
feat(nuxt): allow setting name and path for a route in definePageMeta (#8633) 2022-11-03 15:05:38 +01:00
Daniel Roe
491d02f6ca
fix(nuxt)!: use parser to generate page metadata (#8536) 2022-11-02 11:28:41 +01:00
Daniel Roe
bdacfa6ffe
fix(nuxt): pass async-data errors through to client (#8521) 2022-11-02 10:07:28 +01:00
Daniel Roe
28ffb7fea0
fix(nuxt): add vue-router to optimized deps (#8544) 2022-11-02 09:53:23 +01:00
pooya parsa
1f6b3be7d4
fix(nuxt, nuxi): improve pages creation and removal dx (#8502) 2022-10-27 17:50:24 +02:00
pooya parsa
265db50515
refactor(nuxt)!: cleanup schema and split nuxt 2 types (#8487) 2022-10-27 12:36:37 +02:00
Sacha STAFYNIAK
b010e3e861
feat: add dev-only component (#7950) 2022-10-26 14:43:37 +02:00
renovate[bot]
8e1bcae8c6
chore(deps): update all non-major dependencies (#8435)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-26 13:16:56 +02:00
Anthony Fu
bbea416c23
feat: upgrade unimport to 0.7.0 (#8483) 2022-10-26 10:28:00 +02:00
Daniel Roe
12808f175b
fix(nuxt): allow responding with custom headers from error.vue (#8469) 2022-10-26 10:25:27 +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
5a88510cb7
feat(kit): add updateTemplates utility (#8413) 2022-10-24 10:53:02 +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
Christian Burkhart
a0a59e2157
fix(nuxt): routerBehavior comparison for hash block (#8383) 2022-10-21 10:27:40 +02:00
Daniel Roe
69a6a86d7c
feat(nuxt): make useFetch options reactive (#8374) 2022-10-21 10:13:14 +02:00
pooya parsa
0f2ef5d412
perf(nuxt): use simple JSON.stringify to compare params (#8340) 2022-10-19 17:31:05 +02:00
Johann Schopplich
7b16719649
fix(nuxt): router defaults overwrite custom options always (#8334) 2022-10-19 16:48:16 +02:00
Sébastien Chopin
0106e09e32
fix(nuxt): scroll to top on dynamic routes with different params (#8327)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-19 16:33:01 +02:00
pooya parsa
418b5671ff
fix: update h3 (#8329) 2022-10-19 15:59:11 +02:00
Daniel Roe
3333ef8dae
chore(nuxt): add type for headers (#8326) 2022-10-19 15:28:38 +02:00
Dmitriy
d82d145a0b
fix(nuxt): pass original request headers to the error page (#7340) 2022-10-19 15:03:01 +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
pooya parsa
2b2a5f3f89
fix(nuxt): ignore cache rules for middleware and errors (#8291) 2022-10-18 20:01:23 +02:00
Daniel Roe
cfaa46201a
fix(nuxt): lazy-load entry CSS (#8278) 2022-10-18 18:13:50 +02:00
Anthony Fu
e18da780a8
chore: upgrade unplugin to 0.10.x (#8271) 2022-10-18 11:36:06 +02:00
Daniel Roe
96a8807abf
fix(nuxt): allow disabling early hints (#8264) 2022-10-17 22:20:13 +02:00
Daniel Roe
a90b303d97
fix(nuxt): avoid preloading external routes (#8255) 2022-10-17 19:54:32 +02:00
Daniel Roe
7ebd1558ee
refactor: use getRouteRules (#8251) 2022-10-17 15:55:29 +02:00
Daniel Roe
2a4ebfb18b
perf(nuxt): improve link prefetching (#8225) 2022-10-17 13:15:29 +02:00
renovate[bot]
2cf9009d33
chore(deps): update all non-major dependencies (#8222) 2022-10-17 12:23:51 +02:00
Daniel Roe
9388e65971
refactor(nuxt): use h3 early hints util (#8245) 2022-10-17 11:16:19 +02:00
pooya parsa
895ecc7677
feat!: upgrade to nitropack@0.6 and h3@0.8 (#8218) 2022-10-15 20:42:57 +02:00
Harlan Wilton
c0e9f428f4
fix(nuxt): avoid head dom update on same route click (#8206) 2022-10-15 18:57:58 +02:00
Daniel Roe
5e7dfc2338
refactor(nuxt): deprecate <Script> component tag in template (#8197) 2022-10-15 13:20:24 +02:00
Benicio Cardozo
b9d6f37dfd
fix(nuxt): enable router when app/router.options.ts file is present (#8193) 2022-10-15 13:04:06 +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
Julien Huang
23ad303f19
feat(nuxt)!: add <NuxtPage> to #components (#8145) 2022-10-14 10:36:52 +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
Harlan Wilton
577573f3e8
perf(nuxt)!: use component loader to add meta components (#8167)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-13 17:54:06 +02:00
Harlan Wilton
9e6d292ba6
feat(nuxt): migrate to latest @vueuse/head (#8000) 2022-10-12 18:00:17 +01:00
Alex
6ef6eae2c7
fix(nuxt): don't inline styles for per-request ssr: false (#8106)
Co-authored-by: Alex C <alex.canals@jkweb.ch>
2022-10-12 09:50:16 +01:00
Daniel Roe
5f003a9738
feat(nuxt): add ssr route rule to enable SPA mode (#7938) 2022-10-11 17:03:52 +01:00
Julien Huang
ee41bb6d5d
feat(nuxt): wrap #components client exports with createClientOnly (#7412)
Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
2022-10-11 16:26:03 +01:00
Daniel Roe
26b1c9ca0e
feat(nuxt): parse html to treeshake client-only components (#7527) 2022-10-10 16:48:23 +01:00
Daniel Roe
5a2616cfee
perf(nitro): respond with early hints in node-based environments (#7893) 2022-10-10 12:02:35 +01:00
Daniel Roe
81a8a25834
feat(schema, nuxt): allow user-configurable serverDir (#7868) 2022-10-10 11:49:44 +01: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
Daniel Roe
1477d3759e
feat(nuxt): allow configuring plugins directory (#7981) 2022-10-07 09:13:12 +02:00
Daniel Roe
92ff066ab2
fix(nuxt): don't prerender index.html with a server (#7831) 2022-10-03 16:17:46 +02:00
MiniDigger | Martin
63c88056c7
fix(head): allow using the default slot for script content like noscript (#7858)
Co-authored-by: Martin Benndorf <martin.benndorf@gothaer.de>
2022-10-03 16:16:37 +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
Julien Huang
2c8c21209b
fix(nuxt): fix lazy import of .client components (#7422)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-03 16:14:07 +02:00
Daniel Roe
a3fd4193ce
fix(nuxt): allow auto-import component with same filename (#7713) 2022-10-03 15:38:43 +02:00
Daniel Roe
4823b17836
fix(nuxt): handle schema types for relative module paths (#7946) 2022-10-03 15:32:01 +02:00
Daniel Roe
4c5048826c
fix(nuxt): don't disable scripts in dev mode with experimental noScripts (#7745) 2022-09-26 11:52:43 +02:00
Daniel Roe
c0e99c7273
fix(nuxt): respect baseURL when rendering payload path (#7809) 2022-09-26 11:16:34 +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
1c26e07141
feat(nuxt): support redirect within page metadata (#7746) 2022-09-22 15:54:34 +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
Daniel Roe
347abcd065
fix(nuxt): strip non-.vue extensions from component types (#7673) 2022-09-20 10:54:46 +02:00
Daniel Roe
f8a23564c3
fix(nuxt): don't treeshake client-only fallback templates (#7659) 2022-09-20 08:24:45 +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
pooya parsa
5605f1ce18
feat: allow disabling payload extraction (#7588) 2022-09-16 12:14:41 +02:00
pooya parsa
b933015850
feat(kit): useNitro() utility (#7557) 2022-09-15 18:10:50 +02:00
pooya parsa
4b4558c2be
fix(nuxt): remove modulepreload for spa fallback routes with ssr:true (#7553) 2022-09-15 14:20:16 +02:00
Daniel Roe
5855ba4684
fix(nuxt): pass fully resolved path to nitro dist files (#7494) 2022-09-15 13:24:43 +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
6e18237e7a
fix(nuxt): disable payload extraction for spa generated pages (#7535) 2022-09-15 09:31:55 +02:00
pooya parsa
9ee5ca2b47
feat(nuxt): generate spa fallback for nuxt generate (#7507) 2022-09-14 17:16:24 +02:00
pooya parsa
9024d76165
fix(nuxt): add payload.client plugin only for production build (#7498) 2022-09-14 15:01:02 +02:00
pooya parsa
ac0b3a63a2
feat(nuxt, kit): auto import defineNuxtConfig (#7497) 2022-09-14 13:10:10 +02:00
pooya parsa
3a60bf69ce
perf(nuxt): import defineNuxtConfig from nuxt/config (#7485) 2022-09-14 12:37:30 +02:00
Daniel Roe
5d79ed5f9e
feat(nuxt): allow passing transition & keepalive props to <NuxtPage> (#7492) 2022-09-14 12:34:16 +02:00
Daniel Roe
ee75b48526
refactor(nuxt): use relative imports into composables (#7487) 2022-09-14 11:22:03 +02:00
Daniel Roe
40d090745b
fix(nuxt): only delete assets when building (#7486) 2022-09-13 23:57:58 +02:00
Alex Liu
addcb5cd47
feat(nuxt): support prefetching <nuxt-link> (#4329)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-13 22:20:23 +02:00
Daniel Roe
31de18100c
perf(nuxt): only inject preload helper when webpack is used (#7460) 2022-09-13 12:57:14 +02:00
Daniel Roe
3753ea0ead
feat(nuxt): add workspaceDir option and add it to modulesDir (#7439) 2022-09-12 22:06:17 +02:00
pooya parsa
ceb61ada2b
refactor(schema): upgrade to untyped 0.5 (#7452) 2022-09-12 20:22:41 +02:00
Daniel Roe
13dc0b94c4
feat(nuxt): allow exposing type augmentations from extends layers (#7442) 2022-09-12 15:41:15 +02:00
Daniel Roe
5893dc201f
fix(nuxt): augment GlobalComponents from @vue/runtime-core (#7448) 2022-09-12 15:40:44 +02:00
Daniel Roe
46240a8c14
test(nuxt): add tests for import protection plugin (#7416) 2022-09-12 11:23:37 +02:00
Daniel Roe
563cf7c1c9
fix(nuxt): use more specific FetchError for useFetch errors (#7435) 2022-09-12 11:23:19 +02:00
pooya parsa
888bd7c145
feat(nuxt): payload rendering support (#6455)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-09-10 15:57:16 +02:00
Daniel Roe
9abc7a2122
fix(nuxt): do not apply import protection to top-level resolution (#7344) 2022-09-10 13:51:17 +02:00
Daniel Roe
83949c3734
fix(nuxt): always inline entry styles (#7386) 2022-09-10 11:43:17 +02:00
Daniel Roe
e60d03b940
fix(nuxt): de-default layout/component imports (#7389) 2022-09-10 11:41:32 +02:00
Daniel Roe
9c3bef4a01
fix(nuxt): allow abortMiddleware to receive a nuxt error or error options (#7335) 2022-09-08 10:52:00 +02:00
Alex Kozack
6b3a1a4256
feat(nuxt): filter support for clearNuxtData (#7323) 2022-09-07 15:25:37 +02:00
Daniel Roe
eab4706614
feat: allow client-side sourcemaps in production (#7313) 2022-09-07 13:32:10 +02:00
Alex Kozack
b2f573f685
feat(nuxt): add clearNuxtData (#5227)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-07 13:20:09 +02:00
Vl4dimyr
fc2be9ed42
feat(nuxt): add immediate option for useAsyncData and useFetch (#5500)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-07 11:47:40 +02:00
Daniel Roe
5a69f48244
fix(nuxt): don't try to set cookie after redirect (#7288) 2022-09-07 10:34:16 +02:00
Julien Huang
f8f5771646
perf(nuxt): cache createClientOnly wrapper using weakmap (#7297) 2022-09-07 10:31:11 +02:00
Daniel Roe
1ca294e125
fix(nuxt): don't override payload error if it is present (#7290) 2022-09-06 18:21:53 +02:00
Daniel Roe
a931667111
feat(kit): add addImportsSources utility (#7270) 2022-09-06 12:17:41 +02:00
Anthony Fu
96b5b8fd6d
fix(nuxt): import and wrap client-only components once (#7245) 2022-09-06 09:40:25 +02:00
Daniel Roe
cc87d2a37a
feat(nuxt): support experimental flag to render no client-side js (#7248) 2022-09-05 15:46:47 +02:00
Pooya Parsa
80a66dc5af chore(deps): update nitropack to 0.5.1 2022-09-05 13:03:42 +02:00
Kévin Schnekenburger
4bd1be9174
feat(nuxt): allow extending routes with custom alias (#7074)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-05 09:53:01 +02:00
HomWang
1fc34e6c06 chore: lint (#7213) 2022-09-04 10:31:57 +02:00
pooya parsa
ac56ce7dd1
feat(nuxt): router with hash mode (#6980) 2022-09-04 10:11:28 +02:00
Daniel Roe
720506d263
feat(nuxt): custom history and routes for app/router.options.ts (#7129)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-04 09:42:47 +02:00
Daniel Roe
de62520990
feat(nuxt, vite): inline global and component styles in server response (#7160)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-03 15:03:30 +02:00
Harlan Wilton
fe3fc34b12
fix(head): case http-equiv correctly (#7190) 2022-09-03 14:31:09 +02:00
Damian Głowala
3e9f1efb1e
fix(nuxt): update default redirect code of navigateTo to 302 Found (#7189) 2022-09-03 14:30:03 +02:00
Pooya Parsa
ee20a00f65 chore: fix typo in deprecation messages 2022-09-03 12:35:16 +02:00
pooya parsa
abd5dc58c9
fix: improve autoImports deprecation dx (#7158) 2022-09-02 15:42:46 +02:00
pooya parsa
9eb95e2371
build(nuxt): update nitropack to 0.5.x (#7141) 2022-09-01 18:57:10 +02:00
Daniel Roe
6fbbf8c5bc
refactor(nuxt): remove unused meta:register hook (#7130) 2022-09-01 11:08:56 +02:00
HomWang
cafc955fb8
docs: add explanatory comment before universal router stubs (#7124)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-09-01 11:07:44 +02:00
Daniel Roe
d7b2d32b5e
chore(nuxt): prevent error page rendering a null error (#7119) 2022-08-31 22:19:28 +02:00
renovate[bot]
e38e1de740
refactor: apply lints from @nuxtjs/eslint-config-typescript v11 (#7114)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-31 20:34:17 +02:00
Daniel Roe
b90d286631
feat(nuxt): add setPageLayout utility (#6826) (#7075)
Co-authored-by: HomWang <516310460@qq.com>
2022-08-31 10:02:48 +02:00
Daniel Roe
a520185442
perf(nuxt): don't prefetch all global components (#7069) 2022-08-30 16:41:11 +02:00
pooya parsa
afc9d9bfc8
perf(nuxt): tree-shake asyncData client logic from server (#7056)
Co-authored-by: Ohb00 <43827372+OhB00@users.noreply.github.com>
2022-08-30 12:48:26 +02:00
pooya parsa
5a17458af5
fix(nuxt): use shared state for asyncData (#7055)
Co-authored-by: Ohb00 <43827372+OhB00@users.noreply.github.com>
2022-08-30 12:34:09 +02:00
Anthony Fu
9db2229f70
refactor: enable strict type checking everywhere (#6943) 2022-08-26 17:47:29 +02:00