Commit Graph

797 Commits

Author SHA1 Message Date
Daniel Roe
5b409f8579
fix(nuxt): avoid premature hydration when using async layouts (#22198) 2023-07-19 07:55:53 +01:00
Daniel Roe
449a01526a
fix(nuxt): ensure we only increment hydrating count once (#22200) 2023-07-18 16:21:53 +01:00
Anthony Fu
f6b64f6a65
fix(nuxt): resolve race condition regenerating auto imports (#22201) 2023-07-18 16:20:06 +01:00
Julien Huang
f4ec04f520
fix(nuxt): add baseURL to island fetch requests (#22009) 2023-07-18 16:07:35 +01:00
Alexander Lichter
4b6f3e1ba1
fix(nuxt): work around payload extraction issue (#22162)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-07-18 13:31:35 +02:00
Daniel Roe
b8a282e115
fix(nuxt): don't redirect if initial path has trailing slash (#22192) 2023-07-18 11:03:14 +01:00
Alexander Lichter
fed5868184
fix(core): correctly use toLowerCase for possible moduleResolution (#22160) 2023-07-16 00:48:03 +02:00
云游君
e3553a36f9
fix(nuxt): skip scanning components that do not produce a name (#22074) 2023-07-14 14:50:14 +01:00
Jianqi Pan
988e75bbc7
fix(nuxt): skip view transitions where there is no route change (#22140) 2023-07-14 14:49:57 +01:00
Daniel Roe
a07cfb8663
refactor(cli,schema): add bundler module resolution flag (#22142) 2023-07-14 14:46:40 +01:00
Daniel Roe
e9dac76348
fix(nuxt): add pages in correct hook when generating (#22088) 2023-07-12 08:26:52 +01:00
Daniel Roe
dcef9d94cd
perf(nuxt): prepopulate island payloads from rendered html (#22049)
Co-authored-by: Julien Huang <julien.huang@outlook.fr>
2023-07-12 07:28:22 +01:00
Daniel Roe
74c11dc662
perf(nuxt): use getters when constructing reactive routes (#21957) 2023-07-05 14:33:12 +02:00
Daniel Roe
d0dde6426f
fix(nuxt): preserve old vnode when leaving nested route (#21823) 2023-07-05 12:39:39 +02:00
Julien Huang
52a427d583
fix(nuxt): use $fetch.raw in dev client mode for islands (#21904) 2023-07-05 11:48:01 +02:00
Anthony Fu
28e91a7aad
fix(nuxt): regenerate imports after template (#21934) 2023-07-05 11:25:21 +02:00
ChronicStone
fd2b36a64d
fix(nuxt): support custom route name meta with typedPages (#21659) 2023-07-04 06:24:50 +01:00
Daniel Roe
435ac87961
perf(nuxt): allow hmr for server components in dev mode (#21916) 2023-07-04 05:21:27 +01:00
Julien Huang
9f5130d06b
fix(nuxt): stop loading indicator on navigation failure (#21751) 2023-07-03 12:14:17 +01:00
Daniel Roe
87e01ccf0e
fix(nuxt): handle injecting multiple entry ids for styles (#21864) 2023-06-30 05:25:43 +01:00
Daniel Roe
669e9bcf2d
fix(nuxt): ensure static presets equivalent to nuxi generate (#21860) 2023-06-29 10:14:35 +01:00
Julien Huang
cc4cf68ed4
perf(nuxt): don't run island transform plugin if disabled (#21844) 2023-06-28 17:44:43 +01:00
renovate[bot]
07a0e9d412
chore(deps): update all non-major dependencies (main) (#21833)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-06-28 15:43:04 +01:00
Daniel Roe
b108b1ee70
fix(nuxt): improve default prerender behaviour (#21817) 2023-06-28 15:17:19 +01:00
Daniel Roe
e023c06353
fix(nuxt, vite): do not use cjs utils to resolve/alias vue (#21837) 2023-06-28 14:49:50 +01:00
Daniel Roe
489b088836
fix(nuxt): only redirect if path is not the same as initial url (#21815) 2023-06-27 11:15:35 +01:00
Daniel Roe
9c8746f2a6
chore: prune internal unused code and exports (#21809) 2023-06-27 10:38:40 +01:00
Daniel Roe
4a7134f9b4
fix(nuxt): use starting index when transforming islands (#21795) 2023-06-26 19:32:02 +01:00
Anthony Fu
3550893227
fix(nuxt): support importing types from #imports (#21796) 2023-06-26 16:53:29 +01:00
Daniel Roe
4cc9a7135d
fix(nuxt): inline global css with ssr: false route rule (#21763) 2023-06-25 22:50:42 +01:00
Daniel Roe
5b8370414a
fix(nuxt): augment nitro config within server context as well (#21724) 2023-06-25 17:40:53 +01:00
Daniel Roe
1cd48cbef9
fix(nuxt): escape colons in page paths (#21731) 2023-06-25 17:40:30 +01:00
Daniel Roe
c72bc95473
fix(nuxt): only remove one item from middleware (#21730) 2023-06-25 17:40:12 +01:00
Daniel Roe
6b8cb97d54
fix(nuxt): remove path from SPA payload (#21732) 2023-06-25 17:38:51 +01:00
Daniel Roe
068ab19aab
fix(nuxt): respect false to disable spa loading template (#21739) 2023-06-25 17:38:31 +01:00
Daniel Roe
88bc32d42a
fix(nuxt): proxy headers to islands + returned prerender hints (#21740) 2023-06-25 17:38:15 +01:00
Daniel Roe
789c8bfa95
fix(nuxt): use esbuild/acorn instead of typescript dep (#21729) 2023-06-24 00:01:17 +01:00
Anthony Fu
adb1c122a7
fix(nuxt): fix error on layout switching (#21450)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-06-23 11:02:01 +01:00
Daniel Roe
dd5dff37d5
fix(nuxt,schema): prefer unknown rather than any for signatures (#21700) 2023-06-22 14:14:21 +01:00
Daniel Roe
e00beddad6
fix(nuxt): add aliases and augmentations for nitro context (#21680) 2023-06-22 11:49:14 +01:00
Daniel Roe
14a7d95139
fix(nuxt): use static nitro build if possible (#21655) 2023-06-22 11:00:50 +01:00
Daniel Roe
be3f6f7018
feat(nuxt): update devdependency nitropack to v2.5.1 (#21696)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 10:38:26 +01:00
Daniel Roe
bd34a8c158
fix(nuxt): do not embed error path in payload (#21671) 2023-06-21 11:04:44 +01:00
Daniel Roe
c3c56c14ab
fix(nuxt): guard res.end() calls with check if event is handled (#21665) 2023-06-21 07:07:02 +01:00
c-schwan
5460873161
fix(nuxt): move to @typescript-eslint/typescript-estree (#21664) 2023-06-20 22:01:31 +01:00
Daniel Roe
c66c82e6a0
feat(nuxt): allow configuring spa loading indicator (#21640) 2023-06-20 19:55:20 +01:00
Daniel Roe
343a46d5f9
fix(nuxt): inline css directly in root component (#21573) 2023-06-20 19:28:44 +01:00
Israel Ortuño
91ebcd7ee9
fix(nuxt): scroll to top in nested routes (#21657) 2023-06-20 17:14:56 +01:00
Daniel Roe
de639e7ef9
fix(nuxt): stop indicator when not changing page component (#21656) 2023-06-20 17:02:59 +01:00
Daniel Roe
b57d841614
fix(nuxt): post non-proxied cookie value via BroadcastChannel (#21653) 2023-06-20 17:02:13 +01:00
Daniel Roe
2abcc16cfb
perf(nuxt): extract and apply plugin order at build time (#21611) 2023-06-20 00:00:03 +01:00
Daniel Roe
bb4ed5e406
fix(nuxi): add back default baseUrl in tsconfig.json (#21632) 2023-06-19 23:29:09 +01:00
Daniel Roe
3fd6c179e4
fix(nuxt): replace : in rendered server components (for win) (#21645) 2023-06-19 23:06:46 +01:00
Daniel Roe
0e575ad5ab
feat(nuxt): expose useNuxtApp to window for convenience (#21636) 2023-06-19 17:17:15 +01:00
Nozomu Ikuta
634829a08c
fix(nuxt): improve warning for invalid children of <Title> (#21613) 2023-06-17 22:37:05 +01:00
Daniel Roe
2a42a5f807
fix(nuxt): ensure prerendered components are treated as islands (#21583) 2023-06-16 15:47:59 +01:00
Quentin
7e74e7c2fc
feat(nuxt): start loading indicator state with middleware (#21003) 2023-06-16 15:47:20 +01:00
Rodrigo Pimentel
b37ec72f8a
feat(nuxt): emit error in ssr-error event (#21547) 2023-06-14 19:44:43 +01:00
Nicolas Payot
187230b0c5
fix(nuxt): abort navigation when updating window.location (#21521) 2023-06-14 15:37:21 +01:00
Daniel Roe
19fc2828fb
perf(nuxt): use prerendered islands to serialise/revive payload (#21461) 2023-06-14 10:09:27 +01:00
Daniel Roe
05a8c2d955
fix(nuxt): respect query/hash for external routes in navigateTo (#21500) 2023-06-11 22:27:02 +01:00
Daniel Roe
03186d6d44
fix(nuxt): don't disable vue endpoint in dev mode (#21524) 2023-06-11 21:41:22 +01:00
Julien Huang
41d34ca67d
feat(nuxt): allow accessing NuxtLayout ref via layoutRef (#19465) 2023-06-10 23:17:14 +01:00
Julien Huang
319935fc95
feat(nuxt): allow accessing NuxtPage ref via pageRef (#19403) 2023-06-10 23:13:33 +01:00
Edward Hibbert
13aae836e8 perf(nuxt): import error component synchronously (#21406) 2023-06-10 10:11:26 +01:00
Daniel Roe
acdc28a99e
fix(nuxi,nuxt): remove baseUrl + use relative paths in tsconfig (#21081) 2023-06-09 23:19:42 +01:00
Nicolas Payot
c884a95f0f
feat(nuxt): return status from useAsyncData (#21045) 2023-06-09 22:38:14 +01:00
Jongmin Yoon
31a1b98f3f
feat(nuxt): provide clearNuxtState composable (#21409) 2023-06-09 22:22:21 +01:00
Anthony Fu
02ba4b30ac
fix(nuxt): fix typo on nitro.autoImport option (#21485) 2023-06-09 10:15:33 +01:00
Julien Huang
ed5732196d
fix(nuxt): prefix server component ids to avoid collisions (#21472) 2023-06-08 21:55:21 +01:00
Wilson Pinto
5a25fca475
fix(nuxt): add missing vue types (#21445) 2023-06-07 20:49:19 +01:00
Wilson Pinto
c4e5ac83bf
feat(nuxt): add open option in navigateTo helper (#21333) 2023-06-07 20:27:00 +01:00
pooya parsa
05f3decfa9
fix(nuxt): avoid early returning renderer with empty response (#21439) 2023-06-07 14:11:59 +01:00
Daniel Roe
7710ed30fa
fix(nuxt): skip vue render when redirecting (#21412) 2023-06-07 13:18:50 +01:00
Anthony Fu
6d59a027c7
perf(nuxt): mark define functions as side-effect free at source (#21434) 2023-06-07 11:11:24 +01:00
John Jenkins
6bb0a849fe
feat(nuxt): add renderResult to app:rendered (#18610) 2023-06-07 10:25:05 +01:00
Asher White
0bc38b7e19
fix(nuxt): replace BigInt literal with BigInt constructor (#21427) 2023-06-07 09:57:44 +01:00
Alexander B
a31899af65
feat(nuxt): sync useCookie state between tabs (#20970) 2023-06-06 23:21:51 +01:00
Daniel Roe
370b84e909
fix(nuxt): handle page rendering on different path (#21408) 2023-06-06 22:47:32 +01:00
Daniel Roe
ec72066f91
fix(nuxt): key distinct pages differently for legacy asyncData (#21263) 2023-06-05 19:36:26 +01:00
Daniel Roe
05b577e550
fix(nuxt): support usage of std-env in runtime code (#21372) 2023-06-05 19:23:38 +01:00
Daniel Roe
a302fe8062
perf(nuxt): avoid watching nested paths (#21256) 2023-05-31 14:11:46 +01:00
Daniel Roe
c9adf700a4
fix(nuxt): handle serialising empty bigint (#21257)
Co-authored-by: lorado <eugen.sacharow@gmx.de>
2023-05-30 13:53:04 +02:00
Daniel Roe
6eacad03b8
fix(nuxt): resolve modules relative to modulesDir (#21082) 2023-05-27 11:24:21 -05:00
Louis Haftmann
92bc999d0e
fix(nuxt): omit Set-Cookie header if value is null (#21072) 2023-05-26 14:42:12 -05:00
Daniel Roe
75cd6b7894
fix(nuxt): normalize windows paths in granular watcher (#21066) 2023-05-25 16:38:34 -05:00
Alexander
e50cabfed1
fix(nuxt): show error page after fatal abortNavigation (#21047) 2023-05-25 13:29:22 -05:00
Lucie
a672cd7a42
fix(nuxt): await nuxt ready state before refreshNuxtData (#21008) 2023-05-23 00:09:05 +01:00
Julien Huang
7cc7297ea7
fix(nuxt): treeshake <DevOnly> with webpack (#21013)
Co-authored-by: Inesh Bose <56732164+ineshbose@users.noreply.github.com>
2023-05-22 21:29:59 +01:00
Daniel Roe
c37ebab1ef
perf(nuxt): use .test and hoist regexps where possible (#21011) 2023-05-22 21:25:42 +01:00
Daniel Roe
f94984e5cb
fix(nuxt): use simple incrementing id on client (#20992) 2023-05-22 21:25:04 +01:00
Daniel Roe
397c54c9db fix(nuxt): add type support for router composables without pages/ integration 2023-05-22 19:42:25 +01:00
Daniel Roe
3ed0d0ffc1
fix(nuxt): scan component dirs case-sensitively (#20995) 2023-05-22 11:04:02 +01:00
Haruaki OTAKE
bb28819d3c
fix(nuxt): fix useLazyFetch types (#20989) 2023-05-22 08:25:50 +01:00
Julien Huang
2d680455ae
fix(nuxt): skip middleware for islands components (#20924) 2023-05-20 23:26:29 +01:00
Haruaki OTAKE
b88aab049f
fix(nuxt): use default type for initial value for composables (#20968) 2023-05-20 23:19:50 +01:00
Daniel Roe
957a75a7e1
fix(nuxt): exclude plugin declaration from non-existent files (#20974) 2023-05-20 23:14:52 +01:00
Daniel Roe
25c150136d
fix(nuxt): don't match partial component names with prefix (#20939) 2023-05-19 08:11:46 +01:00
Daniel Roe
dda338a1dc
fix(nuxt): resolve layer assets in relation to layer directory (#20932) 2023-05-18 15:10:12 +01:00
Daniel Roe
9dea9bc1b2
perf(nuxt): use granular watcher to avoid crawling ignored dirs (#20836) 2023-05-18 14:44:24 +01:00
Daniel Roe
2cdc22a746
fix(nuxt): don't refresh when hydrating when data is present (#20916) 2023-05-17 14:23:52 +01:00
Daniel Roe
d2e14b678b
fix(nuxt): prioritise vue app context when available (#20910) 2023-05-17 13:26:16 +01:00
Gypsophyllite
f39eb6e981
fix(nuxt): infer useFetch method when generic is passed (#20797) 2023-05-17 12:56:47 +01:00
Daniel Roe
53bd8a44ec
fix(nuxt): allow island renders without / route (#20894) 2023-05-16 22:50:55 +01:00
Daniel Roe
a0583ba96e
fix(nuxt): pass from + savedPosition to first scrollBehavior (#20859) 2023-05-16 10:55:13 +01:00
Anthony Fu
433b52930a
feat(nuxt): support parallel plugins (#20460) 2023-05-16 09:50:43 +01:00
Julien Huang
70c5ec86d2
feat(nuxt): full scoped slots support for server components (#20284) 2023-05-15 23:43:53 +01:00
Daniel Roe
038c84c4b1
fix(nuxt): add types for webpack/vite environments (#20749) 2023-05-15 17:17:39 +01:00
Daniel Roe
33e2bd3dc0
feat(nuxt): support separate server tsconfig (#20559) 2023-05-15 16:36:30 +01:00
Alexander
e9b2f6286c
fix(nuxt): stop loading indicator on vue errors (#20738) 2023-05-15 16:34:20 +01:00
Dario Ferderber
ec9dcdb093
fix(nuxt): allow pages:extend to enable pages module (#20806) 2023-05-15 13:47:30 +01:00
白雾三语
ce84c9b44f
fix(nuxt): ensure all dir parts are present in component name (#20779) 2023-05-15 13:34:04 +01:00
Inesh Bose
1f30cf18e3
fix(nuxt): get fallback for <DevOnly> from parsed html (#20840) 2023-05-15 13:33:46 +01:00
Julien Huang
603e7e7fb1
feat(nuxt): allow keeping fallback for NuxtClientFallback (#20336) 2023-05-14 22:22:54 +01:00
Inesh Bose
d077c10c41
feat(nuxt): allow fallback production content in <DevOnly> (#20817) 2023-05-13 23:32:31 +01:00
Julien Huang
900ee6dc8b
fix(nuxt): transform client fallbacks directly on SFCs (#20835) 2023-05-13 22:39:50 +01:00
Sébastien Chopin
6a052b583b
feat(nuxt): add useRequestURL helper (#20765) 2023-05-13 22:09:37 +01:00
Daniel Roe
7f0fe2fbe7
fix(nuxt): allow serialising undefined refs (#20828) 2023-05-13 20:49:05 +01:00
Julien Huang
90ab1b50f4
fix(nuxt): always inline styles for server/island components (#20599) 2023-05-11 23:33:17 +01:00
Lehoczky Zoltán
6b7197fd8c
fix(nuxt): avoid destructuring error prop (works around upstream bug) (#20795) 2023-05-11 22:54:07 +01:00
Daniel Roe
5e74fe4e0b
fix(nuxt): enable suspensible behaviour for nested pages (#20777) 2023-05-11 18:57:18 +01:00
Daniel Roe
0258acdc8a fix(nuxt): remove webstorm compatibility augmentation 2023-05-11 15:28:03 +01:00
Daniel Roe
93ba5e7cd2
feat(nuxt): use runWithContext within callWithNuxt (#20775) 2023-05-11 12:39:08 +01:00
Daniel Roe
f170075c79
feat(deps): update vue to v3.3 (#20478) 2023-05-11 09:37:32 +01:00
Daniel Roe
53fef72031
fix(nuxt): deduplicate global components before registration (#20743) 2023-05-10 13:57:27 +01:00
Julien Huang
018bf125ab
feat(nuxt): add apps to nuxt build-time instance (#20637) 2023-05-09 23:46:03 +01:00
Eduardo San Martin Morote
5781cf1569
feat(nuxt): add experimental typedPages option (#20367) 2023-05-09 18:08:07 +01:00
Daniel Roe
80d7899f49
fix(nuxt): prevent treeshaking hooks with composable names (#20745) 2023-05-09 17:47:46 +01:00
Daniel Roe
eb8e9169d6
fix(nuxt): generate empty sourcemaps for wrappers (#20744) 2023-05-09 16:57:23 +01:00
Daniel Roe
1da25c8069
fix(nuxt): allow resolving client nuxt app to singleton (#20639) 2023-05-09 11:22:38 +01:00
Anthony Fu
1f38863c06
fix(nuxt, vite): ignore nuxt_component ssr style and isVue (#20679) 2023-05-04 17:19:03 +01:00
Daniel Roe
566fa85fc8
fix(nuxt): run page meta plugin on all pages (and only pages) (#20628)
Co-authored-by: Julien Huang <julien.huang@outlook.fr>
2023-05-03 15:14:12 +01:00
Daniel Roe
da3357449f
feat(nuxt): add nuxtApp.runWithContext (#20608) 2023-05-03 11:02:07 +01:00
Anthony Fu
fb76b3931a
feat(nuxi): allow greater control of nuxi analyze from cli (#20387) 2023-05-02 14:24:11 +01:00
Anthony Fu
84559e84aa
feat(kit): support passing getter to addVitePlugin and addWebpackPlugin (#20525) 2023-05-02 12:17:41 +01:00
Daniel Roe
16bf228437
fix(nuxt): ensure useError is called with nuxt app context (#20585) 2023-05-01 23:55:24 +01:00
renovate[bot]
f3cfb5f630
chore(deps): update all non-major dependencies (main) (#20609)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-05-01 23:46:29 +01:00
Daniel Roe
8b86d39e30
refactor(schema): move runtimeCompiler option out of experimental (#20606) 2023-05-01 17:39:07 +01:00
Daniel Roe
8353e4c66e
feat(nuxt): allow access to components within app (#20604) 2023-05-01 17:35:00 +01:00
Daniel Roe
2c55bb6f84
fix(nuxt): remove internal <FragmentWrapper> (#20607) 2023-05-01 12:56:30 +01:00
Harlan Wilton
d2170b80b9
fix(nuxt): skip payload extraction for island context (#20590) 2023-04-30 10:10:09 +01:00
Anthony Fu
d2fc6ae614
fix(nuxt): properly handle query for component wrapper (#20591) 2023-04-30 10:08:08 +01:00
Anthony Fu
a13b18eddf
fix(nuxt): add @nuxt/devtools module before core modules (#20595) 2023-04-30 10:06:43 +01:00
Daniel Roe
6ef2e1caea
fix(nuxt): remove backwards-compatible runtimeConfig proxy (#20340) 2023-04-29 23:38:40 +01:00
Stefan Milosevic
fac160c79f
feat(nuxt): auto import 'watchPostEffect' and 'watchSyncEffect' from vue (#20279) 2023-04-29 23:33:29 +01:00
Daniel Roe
e1e3d2cd8e
feat(nuxt): add scoped helper for clearing error within boundary (#20508) 2023-04-29 23:32:29 +01:00
Daniel Roe
f73bb1de0a
fix(nuxt): return RenderResponse for redirects (#20496) 2023-04-28 11:18:03 +01:00
Anthony Fu
98b20c45c8
fix(nuxt): transform #components imports into direct component imports (#20547)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-28 10:14:42 +01:00
Julien Huang
ecf41537ca
fix(nuxt): throw errors when running legacy asyncData (#20535) 2023-04-27 11:51:33 +01:00
Daniel Roe
65a8f4eb3e
fix(nuxt): restrict access to single renderer outside of test/rootDir (#20543) 2023-04-27 11:31:52 +01:00