Commit Graph

1293 Commits

Author SHA1 Message Date
Julien Huang
e4c9940269 fix: ssr improvement + static vnode rendering 2024-04-13 11:06:09 +02:00
Ryan Clements
b7ba3a4a80
fix(nuxt): hint prerenderer to crawl routes at runtime (#26694) 2024-04-13 00:21:02 +02:00
Damian Głowala
dec7191ac5
fix(nuxt): correctly remove extension from path in hasSuffix (#26725) 2024-04-11 08:23:14 +02:00
Michael Brevard
cfb6660fcd
fix: missing question marks 2024-04-11 00:42:29 +03:00
Michael Brevard
8555cec97d
fix: ensure el itself isn't null 2024-04-11 00:20:34 +03:00
Michael Brevard
2ee3cf53ee
fix: verify none null 2024-04-11 00:16:39 +03:00
Michael Brevard
dc6d922773
fix: join the fragments 2024-04-11 00:13:22 +03:00
Michael Brevard
e2d0350698
fix: use VNode type 2024-04-11 00:10:54 +03:00
Michael Brevard
580d9bd463
fix: import useNuxtApp and provide types 2024-04-11 00:06:49 +03:00
autofix-ci[bot]
31002ecc2d
[autofix.ci] apply automated fixes 2024-04-10 21:05:11 +00:00
Michael Brevard
2375650c36
feat: support lazy hydration on SSR 2024-04-11 00:02:48 +03:00
Michael Brevard
b4c4d47721
Merge branch 'main' into patch-21 2024-04-10 10:43:21 +03:00
Michael Brevard
effebbb02f
fix: strict types 2024-04-10 10:32:26 +03:00
Julien Huang
30e27f48d1
fix(nuxt): encode location header in navigateTo (#26712) 2024-04-10 09:03:25 +02:00
Michael Brevard
2df20ac681
fix: remove comma 2024-04-10 10:02:39 +03:00
Michael Brevard
503b560d9b
wip: network idle based delayed component 2024-04-10 10:00:38 +03:00
Michael Brevard
8c1c23a422
chore: trying to resolve default 2024-04-09 23:47:41 +03:00
julien huang
b3250e4a46 fix(nuxt): send the component loader and not the name 2024-04-09 21:55:27 +02:00
Michael Brevard
59edd16fce
chore: mark no side effects 2024-04-09 22:12:57 +03:00
Michael Brevard
9b94d100a2
chore: retrying without ClientOnly 2024-04-09 22:01:37 +03:00
autofix-ci[bot]
669fcee81b
[autofix.ci] apply automated fixes 2024-04-09 18:51:50 +00:00
Michael Brevard
2fa63ccfff
Merge branch 'main' into patch-21 2024-04-09 21:49:35 +03:00
Michael Brevard
988a99b771
fix: don't use the default that is used for slots 2024-04-09 21:49:02 +03:00
Anthony Fu
36c0137b7e
feat(nuxt): introduce imports.scan option (#26576) 2024-04-09 15:03:42 +02:00
Damian Głowala
0a1b72f9fd
feat(nuxt): support passing options to useRequestURL (#26687) 2024-04-09 15:03:29 +02:00
Han
98a02744bd
fix(nuxt): prevent getCachedData from shaping type of useAsyncData (#25946) 2024-04-08 18:38:40 +01:00
Michael Brevard
36dc73152f
fix: append identifier before import 2024-04-08 19:28:58 +03:00
autofix-ci[bot]
816ba111b4
[autofix.ci] apply automated fixes 2024-04-08 14:22:13 +00:00
Michael Brevard
20a32b2200
wip: provide hardcoded check to test delayed hydration runtime comp 2024-04-08 17:19:59 +03:00
autofix-ci[bot]
66938bc152
[autofix.ci] apply automated fixes 2024-04-08 07:24:28 +00:00
Michael Brevard
758824463d
Merge branch 'main' into patch-21 2024-04-08 10:21:48 +03:00
Julien Huang
bfb7eeac07
perf(nuxt): don't add client fallback plugin if not enabled (#26666) 2024-04-06 16:15:47 +01:00
Anthony Fu
f209158352
chore: cleanup eslint rules with latest @nuxt/eslint-config (#26653) 2024-04-05 19:08:32 +01:00
Anthony Fu
ee608cea2c
chore: update moduleResolution to Bundler (#26658) 2024-04-05 16:36:52 +01:00
Michael Brevard
444e5be6e8
Merge branch 'main' into patch-21 2024-04-05 12:36:56 +03:00
Alex Liu
af3594c788
fix(nuxt): handle missing Nuxt context in useRoute (#26633) 2024-04-03 21:49:09 +01:00
Luke Nelson
a3a28a913e
chore: migrate to ESLint flat config (#26583) 2024-04-03 21:46:58 +01:00
Julien Huang
2dc4505c8a
fix(nuxt): normalise rollup opts in island transform w/o nuxt (#26589) 2024-04-03 11:36:15 +01:00
Daniel Roe
be49918139
perf(nuxt): reduce router resolutions (#26519) 2024-04-03 10:56:27 +01:00
Daniel Roe
1019ed9fba
fix(nuxt): handle auto-importing named components (#26556) 2024-04-03 10:15:36 +01:00
Daniel Roe
cbb4a1cb61
perf(nuxt): unsubscribe from watch when scope is disposed (#26554) 2024-04-03 10:15:21 +01:00
Daniel Roe
2f8915127d
fix(nuxt): suppress warning about resolve cache-driver (#26595) 2024-04-03 09:51:05 +01:00
Michael Brevard
586cfa5a3e
Merge branch 'main' into patch-21 2024-03-30 16:12:02 +03:00
Alex Liu
8eef1e3c57
refactor(nuxt): simplify runtimeConfig initialization of client side (#26558) 2024-03-30 07:48:43 +00:00
Julien Huang
6dcad76a06
perf(nuxt): reduce nuxt island payload (#26569) 2024-03-30 07:41:46 +00:00
Alex Liu
a33674b06b
refactor(nuxt): simplify check in navigateTo for server (#26546) 2024-03-29 10:42:06 +00:00
xjccc
9b243631b4
refactor(nuxt): remove duplicated check (#26544) 2024-03-29 10:09:25 +00:00
Daniel Roe
22dfac7bd7
fix(nuxt): augment GlobalComponents in multiple vue modules (#26541) 2024-03-29 09:13:04 +00:00
Daniel Roe
4a87c35df6
fix(nuxt): handle errors parsing/stringifying logs 2024-03-27 17:12:57 +00:00
Michael Brevard
36f2c75290
Merge branch 'main' into patch-21 2024-03-27 13:47:31 +02:00
Daniel Roe
fa9d43753d
fix(nuxt): support serialising rich server logs (#26503) 2024-03-27 11:42:43 +00:00
Daniel Roe
baf8539f31
fix(nuxt): add build id to rendered payload url (#26504) 2024-03-27 11:13:19 +00:00
Michael Brevard
600f55d2a3
wip: rename client-io-component.ts to client-delayed-component.ts for future wrappers 2024-03-26 16:20:49 +02:00
Michael Brevard
0caf8153ea
Merge branch 'main' into patch-21 2024-03-26 16:19:44 +02:00
Julien Huang
fd7d9d26e2
fix(nuxt): check island element instead of hydration state (#26480) 2024-03-26 14:03:00 +00:00
Michał Zarach
1dbd46ec99
fix(nuxt): ignore fetch errors in getLatestManifest (#26486) 2024-03-26 13:47:59 +00:00
Julien Huang
67c664656c
fix(nuxt): move directives to client component island wrapper (#26387) 2024-03-26 13:47:40 +00:00
autofix-ci[bot]
1e16b4a088
[autofix.ci] apply automated fixes 2024-03-25 17:23:25 +00:00
Michael Brevard
f6ba2255e6
fix: ensure observer is not undefined 2024-03-25 19:21:01 +02:00
Michael Brevard
966c17be72
fix: provide a proper wrapper for IO with the comp 2024-03-25 19:19:35 +02:00
Michael Brevard
caf73523c8
Merge branch 'main' into patch-21 2024-03-25 15:29:18 +02:00
autofix-ci[bot]
b3b1676202
[autofix.ci] apply automated fixes 2024-03-25 13:17:29 +00:00
Michael Brevard
f51c9362ce
fix: export function as opposed to type 2024-03-25 15:15:11 +02:00
Michael Brevard
7d2f345511
fix: remove unnecessary imports 2024-03-25 15:12:09 +02:00
Michael Brevard
f039dfd09f
feat: provide exported function 2024-03-25 15:07:52 +02:00
Michael Brevard
624188a7cf
feat: extract useObserver 2024-03-25 15:06:53 +02:00
Julien Huang
8911c0d0dd
fix(nuxt): move v-if to wrapper in islands transform (#26386) 2024-03-25 10:19:02 +00:00
autofix-ci[bot]
85b4d6932b
[autofix.ci] apply automated fixes 2024-03-24 21:17:18 +00:00
Michael Brevard
d94436b9c4
fix: import type Ref and provide emit 2024-03-24 23:15:02 +02:00
Michael Brevard
2ac2a975e0
fix: proper intersection callback type 2024-03-24 23:08:51 +02:00
Michael Brevard
cb221ed579
types: client-io-component.ts 2024-03-24 22:24:55 +02:00
autofix-ci[bot]
932d143688
[autofix.ci] apply automated fixes 2024-03-24 17:54:31 +00:00
Michael Brevard
6a32dc1c9e
fix: client-io-component.ts 2024-03-24 19:52:16 +02:00
Michael Brevard
ae2bb27ac0
fix: provide ref 2024-03-24 19:46:43 +02:00
Michael Brevard
84b0a71b8c
feat: provide an emit 2024-03-24 19:45:47 +02:00
Michael Brevard
9ac1261662
feat: client-io-component.ts barebones functionality 2024-03-24 19:41:29 +02:00
autofix-ci[bot]
d64d78fde8
[autofix.ci] apply automated fixes 2024-03-24 17:36:36 +00:00
Michael Brevard
9f629ad45a
feat: lazy hydration 2024-03-24 19:30:58 +02:00
Daniel Roe
22ada37b4f
fix(nuxt): early return from refreshCookie on server 2024-03-21 15:06:39 +00:00
Daniel Roe
cca81bcae4
fix(nuxt): exclude <srcDir>/index.html from import protection (#26430) 2024-03-21 13:18:09 +00:00
Daniel Roe
57b8d977b9
perf(nuxt): don't tree-shake useServerHead in dev (#26421) 2024-03-21 12:17:09 +00:00
Daniel Roe
8c3159f4ba
fix(nuxt): pass joinRelativeURL + share paths on server (#26407) 2024-03-21 11:57:11 +00:00
Daniel Roe
4647d2f925
fix(nuxt): don't warn about definePageMeta in server pages (#26422) 2024-03-21 11:51:20 +00:00
Anthony Fu
4a880cb693
fix(nuxt): print errors when compiling templates (#26410) 2024-03-21 09:38:54 +00:00
Alexander Lichter
6f2e7a8b23
fix(nuxt): ignore navigateTo open option on server side (#26392) 2024-03-20 09:55:40 +00:00
Daniel Roe
4e6812d92c
fix(nuxt): don't append new route for redirect if one exists (#26368) 2024-03-20 09:54:25 +00:00
Daniel Roe
5de7244032
fix(nuxt): handle underscores in island names (#26370) 2024-03-20 00:01:28 +00:00
Daniel Roe
c49d206647
fix(nuxt): pass undefined name when resolving trailing slash (#26358) 2024-03-18 21:12:17 +00:00
zunderbolt
7284e70de9
fix(nuxt): prevent losing pages routes on prerender (#26354) 2024-03-18 20:27:18 +00:00
Daniel Roe
90591e3a3c
fix(nuxt): don't warn when injecting client-only components (#26341) 2024-03-18 14:41:01 +00:00
Daniel Roe
2c0fc3a15e
fix(nuxt): handle failure creating BroadcastChannel (#26340) 2024-03-18 14:15:10 +00:00
Julien Huang
03f7b0941e
chore(nuxt): remove unused code (#26319) 2024-03-17 21:27:43 +00:00
Daniel Roe
523db1a197
fix(nuxt): ignore failures to access asyncContext in environments without it 2024-03-17 20:12:45 +01:00
Daniel Roe
0d9c63b828
fix(nuxt): correct finish types and add to docs
resolves https://github.com/nuxt/nuxt/issues/26317
2024-03-17 20:09:19 +01:00
Daniel Roe
5b29dd3f3c
fix(nuxt): conditionally use tsx parser (#26314) 2024-03-17 17:57:11 +01:00
Daniel Roe
b3ced3d694
fix(nuxt): ignore console.logs called outside event context
resolves https://github.com/nuxt/nuxt/issues/26308
2024-03-17 16:36:45 +01:00
Daniel Roe
1cae15a3a4
chore(nuxt): ensure type template has const filename 2024-03-16 17:21:43 -07:00
Damian Głowala
02d6838293
feat(nuxt): add clear utility to useAsyncData/useFetch (#26259) 2024-03-16 17:19:44 -07:00
Daniel Roe
3c7e68c846
fix(nuxt): handle nightly releases for hoisted types 2024-03-16 17:18:31 -07:00
Daniel Roe
33ce71dd12
refactor(nuxt): use addTypeTemplate in more places 2024-03-16 17:15:53 -07:00
Daniel Roe
87c0678f99
fix(nuxt): provide appMiddleware types with universal router 2024-03-16 15:12:49 -07:00
Daniel Roe
4925670dcd
refactor(nuxt): use addTypeTemplate for page augmentations 2024-03-16 15:09:04 -07:00
Daniel Roe
cac7454702
refactor(nuxt): rename nuxtMiddleware to appMiddleware 2024-03-16 15:03:09 -07:00
Daniel Roe
c6aa617839
chore: do not export unused type 2024-03-16 14:59:03 -07:00
Horu
f9fe282506
feat(nuxt): add nuxtMiddleware route rule (#25841) 2024-03-16 11:53:01 -07:00
Daniel Roe
977377777a
fix(nuxt): guard window access more carefully 2024-03-15 19:51:35 -07:00
Daniel Roe
0362ebf43c
fix(nuxt): use joinRelativeURL for build assets (#26282) 2024-03-15 18:31:29 -07:00
Daniel Roe
814859d769
fix(nuxt): don't generate separate chunk for stubs (#26291) 2024-03-15 17:07:38 -07:00
Daniel Roe
e272b2f2e1
feat(nuxt): pass server logs to client (#25936)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2024-03-15 16:36:47 -07:00
Julien Huang
4be430e13f
feat(nuxt): pass nuxt instance to getCachedData (#26287) 2024-03-15 13:54:47 -07:00
Daniel Roe
81933dfc3d
fix(nuxt): don't ignore any files from buildAssetsDir 2024-03-15 11:16:57 -07:00
Daniel Roe
85166cced7
feat(schema): allow configuring type hoists with typescript.hoist 2024-03-15 11:00:19 -07:00
Maik Kowol
a6d6fde9df
fix(nuxt): access shared asyncData state with useNuxtData (#22277) 2024-03-15 09:40:00 -07:00
Marc Cremer
6439244c96
fix(nuxt): respect baseUrl within server components (#25727) 2024-03-15 09:16:41 -07:00
Anthony Fu
5dc96de8a9
fix(nuxt): update auto imports after other templates (#26249) 2024-03-14 13:26:40 -07:00
Anthony Fu
bd0e759b22
perf(nuxt): only update changed templates (#26250) 2024-03-14 11:56:17 -07:00
Daniel Roe
5c6dc4c14e
docs: escape 'elements' in jsdoc comments 2024-03-14 11:31:42 -07:00
Daniel Roe
b102d04185
feat(vite): handle multiple/custom public dirs (#26163) 2024-03-13 17:18:44 -07:00
Daniel Roe
a9effe9c8a
feat(nuxt): allow generating metadata for nuxt components (#26204) 2024-03-13 15:57:04 -07:00
Anthony Aslangul
2baaab9893
fix(nuxt): register/scan plugins with jsx/tsx extensions (#26230) 2024-03-13 15:50:15 -07:00
Daniel Roe
9bfd988ca6
feat(nuxt): enable islands if server pages/components present (#26223) 2024-03-13 07:39:35 -07:00
Daniel Roe
f080c426a2
fix(nuxt): init payload when using islands with ssr: false 2024-03-12 17:06:46 -07:00
Mehmet
8010b04f69
fix(nuxt): only strip supported extensions when generating import types (#26218) 2024-03-12 10:25:28 -07:00
Daniel Roe
a04b88bfcd
fix(nuxt): generate typed routes after pages are scanned (#26206) 2024-03-12 06:28:54 -07:00
Alex Liu
79cdb0b881
refactor(nuxt): simplify request computation (#26191) 2024-03-11 09:33:39 -07:00
Harlan Wilton
06af1cd6d3
fix(nuxt): improved plugin annotating warnings (#26193) 2024-03-11 07:34:10 -07:00
Alexander Lichter
536998727a
feat(nuxt): add dedicated #teleports element for ssr teleports (#25043) 2024-03-11 07:33:49 -07:00
Alex Liu
ac54da242f
perf(nuxt): use faster approach to check cache exists (#26172) 2024-03-10 13:07:00 -07:00
Julien Huang
6723123a2e
perf(nuxt): skip adding selective-client code if not enabled (#26176) 2024-03-10 10:28:14 -07:00
Julien Huang
8bb8d824c7
fix(nuxt): detect component usage within ssrRender (#26162) 2024-03-09 13:38:08 +01:00
Daniel Roe
8323220f74
perf(nuxt): tree shake island renderer 2024-03-09 11:25:11 +01:00
Daniel Roe
264bf98339 fix(nuxt): clone paths to prevent shared object 2024-03-09 06:56:21 +00:00
Daniel Roe
7252b56d52 chore: add back stylistic rules and lint project 2024-03-09 06:48:15 +00:00
Daniel Roe
63bfaac120 fix(nuxt): handle errors resolving package paths 2024-03-09 06:07:39 +00:00
Daniel Roe
dd1cdbc052
fix(nuxt): provide typescript aliases for core packages (#26158) 2024-03-08 22:58:37 +00:00
Daniel Roe
0cc7f298f9
feat(nuxt): support async transforms for data composables (#26154) 2024-03-08 19:22:46 +00:00
Daniel Roe
b7516a1392
fix(nuxt): access prerender cache synchronously (#26146) 2024-03-08 17:03:38 +00:00
Daniel Roe
6407cea620
fix(nuxt): watch custom cookieRef values deeply (#26151) 2024-03-08 17:03:31 +00:00
Daniel Roe
47cdd7dd07
fix(nuxt): use flat cache directory for prerender data 2024-03-08 09:47:57 +00:00
Daniel Roe
e9082ad28e
fix(nuxt): handle external redirects from routeRules (#26120) 2024-03-07 01:17:40 +00:00
Bogdan Kostyuk
98aa2c222f
feat(nuxt): usePreviewMode composable (#21705) 2024-03-06 17:14:15 +00:00
Julien Huang
f0442d0ddb
feat(nuxt): emit error if <NuxtIsland> can't fetch island (#25798) 2024-03-06 16:45:43 +00:00
Divine
83314f1c95
feat(nuxt): custom loading reset/hide delay + force finish() (#25932) 2024-03-06 16:27:05 +00:00
Horváth Bálint
7095048f3b
feat(nuxt): add page:view-transition:start hook (#26045) 2024-03-06 15:58:40 +00:00
Julien Huang
6d93014c52
feat(nuxt): allow using nuxt-client in all components (#25479) 2024-03-06 15:26:19 +00:00
Bogdan Kostyuk
230f6b4f19
feat(nuxt): client-only pages (#25037) 2024-03-06 14:38:39 +00:00
Daniel Roe
bc44dfc484
perf(nuxt): use fallthrough cache for prerender (#26104) 2024-03-06 14:29:07 +00:00
i-udas
c6e1c9bb70
fix(nuxt): add space before <html> and <body> attrs (#26027) 2024-03-06 14:20:17 +00:00
Andre van Tonder
f09311d717
fix(nuxt): export AsyncDataRequestStatus type (#26023) 2024-03-06 12:59:21 +00:00
Daniel Roe
209ae4ac62
fix(nuxt): cache-bust payloads with build id (#26068) 2024-03-06 12:50:59 +00:00