1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-17 06:11:56 +00:00
Commit Graph

426 Commits

Author SHA1 Message Date
Daniel Roe
137c0b6054
fix(nuxt): don't incl overridden layer pages as nested children () 2023-09-16 09:53:37 +01:00
Joaquín Sánchez
bc8a1fa614
fix(nuxt): load layer middlewares before project middlewares () 2023-09-16 09:39:51 +01:00
Daniel Roe
e729406805
fix(nuxt): use original escapes/quotes in page re-exports () 2023-09-14 07:06:07 +01:00
Daniel Roe
a95fd28725
fix(nuxt): allow importing server components from #components () 2023-09-13 23:35:53 +01:00
Daniel Roe
15e6dfb560
fix(nuxt): allow granularly overriding pages in layers () 2023-09-12 10:46:35 +01:00
Julien Huang
48fb6e243b
fix(nuxt): scroll to top by default on dynamic routes () 2023-09-06 20:44:59 +01:00
Joaquín Sánchez
89c4436ae1
fix(nuxt): load layer plugins before project plugins () 2023-09-04 23:41:51 +01:00
Alex Liu
2d46971162
fix(nuxt): ensure middleware is processed when returning true () 2023-08-31 10:19:26 +01:00
Maik Kowol
a256c87406
fix(nuxt): ensure typed layout prop persists through build () 2023-08-27 20:44:43 +01:00
Daniel Roe
54a6eab406
feat(kit,nuxt): respect nuxt ignore patterns in nitro () 2023-08-25 13:08:38 +01:00
Daniel Roe
b5ce892864
fix(nuxt): respect ignorelist when scanning auto-imports () 2023-08-24 13:42:15 +01:00
Jongmin Yoon
6f7d86be78
fix(nuxt): recreate asyncData when immediate is disabled () 2023-08-24 13:06:29 +01:00
Daniel Roe
29f4eeff69
feat(nuxt): add support for routeRules defined within pages () 2023-08-23 21:38:17 +01:00
Daniel Roe
815230c1b5
test: add regression test for escaping payload () 2023-08-23 21:03:10 +01:00
renovate[bot]
3d78c79e3d
chore(deps): update all non-major dependencies (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-08-18 17:05:38 +02:00
anhao
4e538a03e2
fix(vite): use '' key for root scope in variable collector () 2023-08-17 15:35:28 +02:00
Pooya Parsa
c8cba7a062 test: reduce verbose log outputs 2023-08-15 07:35:56 +01:00
Harlan Wilton
d50a416304
feat(nuxt): add experimental.headNext unhead integration () 2023-08-14 20:33:00 +01:00
Daniel Roe
b2cea4927e
feat(nuxt): allow experimental global: 'sync' components () 2023-08-09 12:19:00 +01:00
Daniel Roe
53c706b575
test: remove JS payload test + add non-async context test () 2023-08-08 10:45:37 +01:00
pooya parsa
554f868bce
feat(nuxt): experimental native async context support ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-08-08 00:57:35 +02:00
Lucas Vargas
ffd0223583
feat(vite,webpack): tree-shakable import.meta.* build flags () 2023-08-07 23:03:40 +01:00
Daniel Roe
ae8314b236
chore: refresh lockfile () 2023-08-07 14:03:41 +01:00
Daniel Roe
caf8329151
test: remove separate test for baseurl () 2023-08-03 14:25:26 +01:00
Harlan Wilton
ac93558aa6
fix(nuxt): broken capo.js injectHead usage () 2023-08-03 07:15:43 +01:00
anhao
17461fb03b
fix(nuxt): support uppercase route methods in useFetch () 2023-07-31 23:56:37 +01:00
Daniel Roe
5926bbeff8
feat(nuxt): allow 'lazy' (non-blocking) server components () 2023-07-31 09:51:09 +01:00
Julien Huang
0f839dd723
feat(nuxt): environment-specific plugin execution for islands () 2023-07-30 22:36:11 +01:00
Anthony Fu
e3437c67d6
fix(nuxt): components auto-import for JSX () 2023-07-26 05:30:44 +01:00
Daniel Roe
03fbd30d1c
fix(nuxt): allow validate return typing to be either error or boolean () 2023-07-25 16:09:41 +00:00
Julien Huang
2e6c4519cf
fix(nuxt): bind createClientOnly render function to ctx () 2023-07-24 09:00:31 +01:00
Maik Kowol
7046930a67
fix(nuxt): add overloads for asyncData generic + default () 2023-07-23 09:24:54 +01:00
Daniel Roe
5b409f8579
fix(nuxt): avoid premature hydration when using async layouts () 2023-07-19 07:55:53 +01:00
Daniel Roe
449a01526a
fix(nuxt): ensure we only increment hydrating count once () 2023-07-18 16:21:53 +01:00
Daniel Roe
a07cfb8663
refactor(cli,schema): add bundler module resolution flag () 2023-07-14 14:46:40 +01:00
Daniel Roe
c10a624052 chore: add explicit vue dependency in fixtures 2023-07-06 13:07:17 +01:00
Daniel Roe
d0dde6426f
fix(nuxt): preserve old vnode when leaving nested route () 2023-07-05 12:39:39 +02:00
anhao
e70ff83e72
fix(vite): fix issue detecting shadowed keyed composables () 2023-07-05 11:35:45 +02:00
ChronicStone
fd2b36a64d
fix(nuxt): support custom route name meta with typedPages () 2023-07-04 06:24:50 +01:00
renovate[bot]
d15df420a3
chore(deps): update all non-major dependencies (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-07-03 21:08:25 +01:00
Julien Huang
9f5130d06b
fix(nuxt): stop loading indicator on navigation failure () 2023-07-03 12:14:17 +01:00
Daniel Roe
e023c06353
fix(nuxt, vite): do not use cjs utils to resolve/alias vue () 2023-06-28 14:49:50 +01:00
Daniel Roe
489b088836
fix(nuxt): only redirect if path is not the same as initial url () 2023-06-27 11:15:35 +01:00
Daniel Roe
9c8746f2a6
chore: prune internal unused code and exports () 2023-06-27 10:38:40 +01:00
Daniel Roe
4a7134f9b4
fix(nuxt): use starting index when transforming islands () 2023-06-26 19:32:02 +01:00
Daniel Roe
12403d160f
fix(vite): emit assets referenced in inline css () 2023-06-26 13:11:12 +01:00
Daniel Roe
88bc32d42a
fix(nuxt): proxy headers to islands + returned prerender hints () 2023-06-25 17:38:15 +01:00
Anthony Fu
adb1c122a7
fix(nuxt): fix error on layout switching ()
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 () 2023-06-22 14:14:21 +01:00
Daniel Roe
343a46d5f9
fix(nuxt): inline css directly in root component () 2023-06-20 19:28:44 +01:00
Daniel Roe
2abcc16cfb
perf(nuxt): extract and apply plugin order at build time () 2023-06-20 00:00:03 +01:00
Daniel Roe
bb4ed5e406
fix(nuxi): add back default baseUrl in tsconfig.json () 2023-06-19 23:29:09 +01:00
Inesh Bose
c73bed8c6d
feat(kit): allow direct function in defineNuxtModule () 2023-06-16 15:47:38 +01:00
Daniel Roe
19fc2828fb
perf(nuxt): use prerendered islands to serialise/revive payload () 2023-06-14 10:09:27 +01:00
Daniel Roe
05a8c2d955
fix(nuxt): respect query/hash for external routes in navigateTo () 2023-06-11 22:27:02 +01:00
Julien Huang
41d34ca67d
feat(nuxt): allow accessing NuxtLayout ref via layoutRef () 2023-06-10 23:17:14 +01:00
Julien Huang
319935fc95
feat(nuxt): allow accessing NuxtPage ref via pageRef () 2023-06-10 23:13:33 +01:00
Nicolas Payot
c884a95f0f
feat(nuxt): return status from useAsyncData () 2023-06-09 22:38:14 +01:00
Hebilicious
ee6869b1ba
feat(kit): addTypeTemplate helper with auto-registration () 2023-06-09 22:24:03 +01:00
Daniel Roe
7710ed30fa
fix(nuxt): skip vue render when redirecting () 2023-06-07 13:18:50 +01:00
Daniel Roe
370b84e909
fix(nuxt): handle page rendering on different path () 2023-06-06 22:47:32 +01:00
anhao
67f2232014
fix(vite): skip generating keys for locally scoped functions () 2023-06-05 20:15:12 +01:00
Daniel Roe
ec72066f91
fix(nuxt): key distinct pages differently for legacy asyncData () 2023-06-05 19:36:26 +01:00
Daniel Roe
c9adf700a4
fix(nuxt): handle serialising empty bigint ()
Co-authored-by: lorado <eugen.sacharow@gmx.de>
2023-05-30 13:53:04 +02:00
Louis Haftmann
92bc999d0e
fix(nuxt): omit Set-Cookie header if value is null () 2023-05-26 14:42:12 -05:00
Alexander
e50cabfed1
fix(nuxt): show error page after fatal abortNavigation () 2023-05-25 13:29:22 -05:00
Daniel Roe
fd30cc1e89
test: refactor type tests into a separate fixture () 2023-05-22 20:44:03 +01:00
Daniel Roe
980728275a
fix(nuxt): use resolvePath to handle edge cases for modules () 2023-05-20 23:29:32 +01:00
Haruaki OTAKE
b88aab049f
fix(nuxt): use default type for initial value for composables () 2023-05-20 23:19:50 +01:00
Daniel Roe
26861e68ce
fix(kit): resolve relative module paths when installing () 2023-05-20 23:10:52 +01:00
Daniel Roe
dda338a1dc
fix(nuxt): resolve layer assets in relation to layer directory () 2023-05-18 15:10:12 +01:00
Daniel Roe
2cdc22a746
fix(nuxt): don't refresh when hydrating when data is present () 2023-05-17 14:23:52 +01:00
Daniel Roe
d2e14b678b
fix(nuxt): prioritise vue app context when available () 2023-05-17 13:26:16 +01:00
Gypsophyllite
f39eb6e981
fix(nuxt): infer useFetch method when generic is passed () 2023-05-17 12:56:47 +01:00
Julien Huang
70c5ec86d2
feat(nuxt): full scoped slots support for server components () 2023-05-15 23:43:53 +01:00
Daniel Roe
33e2bd3dc0
feat(nuxt): support separate server tsconfig () 2023-05-15 16:36:30 +01:00
Julien Huang
603e7e7fb1
feat(nuxt): allow keeping fallback for NuxtClientFallback () 2023-05-14 22:22:54 +01:00
Daniel Roe
7006064567
feat(kit): addBuildPlugin for builder-agnostic implementation () 2023-05-14 12:55:26 +01:00
Inesh Bose
d077c10c41
feat(nuxt): allow fallback production content in <DevOnly> () 2023-05-13 23:32:31 +01:00
Sébastien Chopin
6a052b583b
feat(nuxt): add useRequestURL helper () 2023-05-13 22:09:37 +01:00
Daniel Roe
7f0fe2fbe7
fix(nuxt): allow serialising undefined refs () 2023-05-13 20:49:05 +01:00
Daniel Roe
5e74fe4e0b
fix(nuxt): enable suspensible behaviour for nested pages () 2023-05-11 18:57:18 +01:00
Daniel Roe
f170075c79
feat(deps): update vue to v3.3 () 2023-05-11 09:37:32 +01:00
Daniel Roe
53fef72031
fix(nuxt): deduplicate global components before registration () 2023-05-10 13:57:27 +01:00
Eckhardt (Kaizen) Dreyer
10e9d71070
chore: fix typo in pnpm-workspace.yaml () 2023-05-10 09:15:11 +01:00
Eduardo San Martin Morote
5781cf1569
feat(nuxt): add experimental typedPages option () 2023-05-09 18:08:07 +01:00
Daniel Roe
80d7899f49
fix(nuxt): prevent treeshaking hooks with composable names () 2023-05-09 17:47:46 +01:00
Daniel Roe
47591c92ec
test: test with bundler module resolution ()
Co-authored-by: pooya parsa <pyapar@gmail.com>
2023-05-04 10:38:02 +01:00
Daniel Roe
566fa85fc8
fix(nuxt): run page meta plugin on all pages (and only pages) ()
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 () 2023-05-03 11:02:07 +01:00
Anthony Fu
84559e84aa
feat(kit): support passing getter to addVitePlugin and addWebpackPlugin () 2023-05-02 12:17:41 +01:00
Daniel Roe
16bf228437
fix(nuxt): ensure useError is called with nuxt app context () 2023-05-01 23:55:24 +01:00
Daniel Roe
8b86d39e30
refactor(schema): move runtimeCompiler option out of experimental () 2023-05-01 17:39:07 +01:00
Daniel Roe
f73bb1de0a
fix(nuxt): return RenderResponse for redirects () 2023-04-28 11:18:03 +01:00
Julien Huang
ecf41537ca
fix(nuxt): throw errors when running legacy asyncData () 2023-04-27 11:51:33 +01:00
Daniel Roe
197de3ecbb
fix(nuxt): call app:error in SSR before rendering error page () 2023-04-26 14:36:59 +01:00
Daniel Roe
dd0d13d425
fix(nuxt): improved typing support for app config () 2023-04-26 14:30:05 +01:00
Daniel Roe
ba320a5589 test: exclude default error pages from bundle test 2023-04-25 10:20:11 +01:00
Julien Huang
e8e01bac13
fix(nuxt): use key to force server component re-rendering () 2023-04-20 22:41:20 +01:00
Daniel Roe
83f0103a47
fix(schema): rely on installed telemetry types () 2023-04-19 22:02:15 +01:00
Daniel Roe
c7be5b4ec6
refactor(nuxt): rework and use isJS and isVue utilities consistently () 2023-04-19 19:17:36 +01:00
Preet Mishra
48b48dec00
fix(nuxt): handle pages with no content and log warning () 2023-04-19 17:58:43 +01:00
Daniel Roe
574a5616b4
perf: remove unused deps and add implicit deps () 2023-04-19 16:45:13 +01:00
Daniel Roe
8aa86559c8
fix(nuxt): mark useRequestHeaders keys as optional () 2023-04-15 15:43:19 +01:00
Daniel Roe
3754591257
fix(nuxt): return type directly if not picking asyncData () 2023-04-15 11:03:09 +01:00
Daniel Roe
f366ab4eb8
chore: remove @ts-ignore and fix some issues () 2023-04-14 13:53:21 +01:00
Daniel Roe
9110d41628
fix(nuxt): do not redirect when vue-router normalises url () 2023-04-13 03:14:44 -07:00
Daniel Roe
b011d3d76f
fix(nuxt): improve handling of redirects within middleware () 2023-04-13 02:58:25 -07:00
Daniel Roe
22f1f71e3e
fix(nuxt): mark entire payload as reactive () 2023-04-12 01:42:45 -07:00
Daniel Roe
67ca0815ac
test: add js payload test suite () 2023-04-11 15:57:12 -07:00
Daniel Roe
fe2800540c
fix(nuxt): set config on ssrContext in spa renderer () 2023-04-11 15:33:21 -07:00
Julien Huang
163913a744
feat(nuxt): add experimentalNoScripts route rule () 2023-04-11 07:17:44 -07:00
Daniel Roe
4285092879
feat(nuxt): support object-syntax plugins () 2023-04-11 04:58:43 -07:00
Daniel Roe
d6c3c2439a
feat(nuxt): support async transform of object properties () 2023-04-10 14:57:13 -07:00
Daniel Roe
b33b84d57e chore: use workspace ref 2023-04-10 12:36:07 +01:00
Daniel Roe
9878c5b6e4
style: enable sort-imports eslint rule () 2023-04-07 09:02:47 -07:00
Harlan Wilton
0c9823eb87
perf(head): disable @vueuse/head polyfill by default () 2023-04-07 06:10:35 -07:00
Daniel Roe
c65c5a8e79
fix(nuxt): deprecate old (pre-rc) runtimeConfig () 2023-04-07 04:36:45 -07:00
Daniel Roe
6ddea42f96
refactor(nuxt): remove #head alias () 2023-04-07 03:36:41 -07:00
pooya parsa
9e503be0f2
feat(nuxt): experimental option for rich json payloads ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-07 03:34:35 -07:00
Julien Huang
b068f79fee
fix(nuxt): add key to .client component placeholders () 2023-04-07 01:31:04 -07:00
Julien Huang
3fc9a75070
feat(nuxt): support vue runtime compiler () 2023-04-06 04:51:32 -07:00
Daniel Roe
b811742f89
fix(nuxt): add types for globally injected $config object () 2023-04-04 06:34:39 -07:00
Daniel Roe
f40b3e2492
feat(nuxt): support ~/~~/@/@@ aliases within layers () 2023-04-03 06:18:24 -07:00
Daniel Roe
c660b39447
fix(nuxt): disable x-nuxt-no-ssr header by default () 2023-04-03 03:39:01 -07:00
Daniel Roe
8c2ca23c55 chore: fix fixture package.json files 2023-03-31 10:49:29 +01:00
Julien Huang
4671294229
fix(nuxt): directly render server components () 2023-03-20 14:47:06 -07:00
Daniel Roe
ebd7dcd4ba
fix(nuxt): handle external navigation to api routes () 2023-03-20 17:15:01 +00:00
Anthony Fu
ce575b49e3
fix(nuxt): ignore falsy modules () 2023-03-19 16:16:13 -07:00
Daniel Roe
5d9d92c4e0
test: remove sourcemaps from minimal test () 2023-03-16 00:34:22 -07:00
Daniel Roe
4b2cb52f8a
fix(nuxt): fix default injection type for plugins () 2023-03-14 06:08:43 -07:00
Daniel Roe
0f6276dc6e
fix(nuxt): mark non-augmented NuxtApp properties as unknown () 2023-03-14 03:09:50 -07:00
pooya parsa
e84ec61eeb
feat(nuxt): support app config for server routes () 2023-03-14 02:54:59 -07:00
Daniel Roe
60b4c48eb4
fix(nuxt,schema): merge custom and resolved app configs () 2023-03-11 14:53:28 -08:00
Xin Du (Clark)
4de4de1a71
fix(nuxt): improve types for data fetching with transform () 2023-03-11 14:36:10 -08:00
Daniel Roe
b19b35fb67
fix(nuxt): provide node16-style type exports () 2023-03-11 13:16:01 -08:00
Harlan Wilton
c91e4d7933
feat(nuxt): add useHeadSafe and remove layer around head imports () 2023-03-10 00:01:21 -08:00
Julien Huang
1729d2e42f
feat(nuxt): add <NuxtClientFallback> component () 2023-03-08 13:13:06 -08:00
Harlan Wilton
8732720221
perf(head): drop @vueuse/head dependency () 2023-03-08 07:32:24 -08:00
Daniel Roe
df3ae8cb4e
feat(nuxt): enable chunk error handling by default () 2023-03-08 12:17:22 +00:00
Daniel Roe
60d07df4cc
feat(nuxt): support custom keyed composables () 2023-03-07 13:06:15 -08:00
Harlan Wilton
bb61496e98
feat(nuxt): allow configuring treeshakeable composables () 2023-03-07 01:30:05 -08:00
Alex Korytskyi
3a73f42d1c
feat(nuxt): support trailingSlashBehavior in defineNuxtLink () 2023-03-06 23:17:42 -08:00
pooya parsa
71225e50c5
feat(nuxt): enable config schema by default () 2023-03-04 06:39:26 -08:00
Daniel Roe
3681bddfd5
feat(nuxt): auto-register modules in ~/modules () 2023-03-03 17:52:55 +00:00
Anthony Fu
59918f569e
feat(nuxt): scan composables with star export () 2023-03-01 04:24:46 -08:00
Mathieu Magalhaes
f5a3d7968c
fix(nuxt): respect redirects which differ only by trailing slash ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-16 09:26:15 -08:00
Daniel Roe
1e8b27f36c
perf(nuxt): don't include side-effects from #components () 2023-02-16 07:00:40 -08:00
Daniel Roe
7d0ecb5a96
fix(nuxt): show client error if no page matches after validate fails () 2023-02-16 04:56:14 -08:00
Julien Huang
61cd6b5c71
fix(nuxt): use parser to treeshake client-only declarations () 2023-02-16 04:47:42 -08:00