1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-21 08:45:53 +00:00
Commit Graph

371 Commits

Author SHA1 Message Date
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
Nick Williams
9dc5413cbd
fix(vite): respect isCustomElement config for jsx transform () 2023-02-16 04:45:08 -08:00
Daniel Roe
96b09ea982
feat(nuxt): add experimental app:chunkError hook and reload strategy () 2023-02-16 04:43:58 -08:00
Daniel Roe
d036d3dec5
ci: run webpack/vite and dev/prod as matrices () 2023-02-13 22:09:32 +00:00
Lioness100
b25b6c82c7
docs: fix typos () 2023-02-12 19:16:42 +00:00
Daniel Roe
19bef5aba4
fix(schema): allow type inference of arrays in runtime config ()
* fix(schema): allow type inference of arrays in runtime config

* test: add types fixture
2023-02-10 07:36:10 +00:00
Daniel Roe
5426e5609a test: decrease vite logging during tests 2023-02-09 09:26:23 +01:00
Julien Huang
113ce71c34
fix(nuxt): use parser to treeshake <ClientOnly> () 2023-02-08 00:59:57 -08:00
Dany Sluijk
bae73c3650
feat(nuxt): infer useFetch return based on the method () 2023-02-07 06:01:31 -08:00
Daniel Roe
01076d144f
feat(schema): add type hints for runtime config () 2023-02-06 15:27:35 -08:00
Daniel Roe
b8f6243621
fix(nuxt): provide fallback values for undefined runtime config () 2023-01-28 07:18:04 -08:00
Daniel Roe
1d68b51c2c
fix(nuxt): async transform for inline middleware () 2023-01-25 04:52:00 -08:00
Daniel Roe
fdb31f418f
fix(nuxt): don't render unknown components with placeholder () 2023-01-25 02:30:59 -08:00
Daniel Roe
9751c9dab7
fix(nuxt): do not override inferred type of <NuxtPage> () 2023-01-25 00:44:59 -08:00
pooya parsa
1af319e0fa
feat: experimental config schema () 2023-01-23 19:07:21 +01:00
Daniel Roe
c5d6db7fd0
fix(nuxt): await async callWithNuxt calls () 2023-01-23 11:13:21 +00:00
Anthony Fu
5ede291a14 test: init hmr testing () 2023-01-22 16:47:24 +00:00
Inesh Bose
98d292ae85
fix(nuxt): provide types for modules as array ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-01-21 16:55:44 +00:00
Alexander Lichter
fa2672485a
fix(kit): resolve group syntax of ignore () 2023-01-20 16:23:16 +00:00
Daniel Roe
5e1881c20a
feat(nuxt): support server components with extracted payloads () 2023-01-20 12:10:58 +00:00
Jose Morel
baf9d950db
feat(vite): support build.transpile as function ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-01-19 10:56:34 +00:00
Anthony Fu
1e8da22893
fix(vite): add additional before skipping vite transform () 2023-01-16 16:04:16 +00:00
Daniel Roe
bf649fe576
fix(nuxt): allow overriding lower layer composables () 2023-01-14 01:14:24 +00:00
renovate[bot]
0b1cdcc70d
chore(deps): update devdependency @nuxtjs/eslint-config-typescript to v12 ()
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 () 2023-01-14 00:58:54 +00:00
Julien Huang
f4ba7ec82d
fix(nuxt): don't short circuit middleware after validate function () 2023-01-14 00:23:20 +00:00
Daniel Roe
2d013c5fad
feat(nuxt): server-only components () 2023-01-09 11:20:33 +00:00
Daniel Roe
4cf110e0d8
fix(nuxt): make dev-only regexp less greedy () 2022-12-13 09:39:14 +00:00
Daniil Chudo
ab2456c295
refactor: split out type imports from value imports () 2022-12-11 21:44:52 +00:00
Evgeny Yurkin
4641e8e504
fix(nuxt): await plugin asyncdata promises in nuxt hook () 2022-12-10 22:44:29 +00:00
Daniel Roe
c26979a047
fix(nuxt): useCookie with defaults should return non-null value () 2022-12-02 10:45:33 +01:00
Daniel Roe
aa9aec112a
fix(nuxt): allow layouts to receive custom props () 2022-11-29 13:16:41 +01:00
Daniel Roe
ab125bd1c5
feat(nuxt): experimental server component islands ()
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 () 2022-11-16 15:27:24 +01:00
pooya parsa
5ac9d85a49
refactor!: remove deprecated api () 2022-11-16 03:26:35 +01:00
pooya parsa
6e78f9dbb0
fix(nuxt)!: enable payload extraction only for nuxi generate () 2022-11-15 17:27:34 +01:00
Harlan Wilton
fddc8b2e6e
feat(nuxt, schema): official @vueuse/head v1 support () 2022-11-15 17:26:38 +01:00
Daniel Roe
2c2fbdffc9
refactor(nuxt)!: move head option support into defineNuxtComponent () 2022-11-15 15:47:17 +01:00
pooya parsa
b49f2a8147
refactor: update unjs dependencies to stable v1 () 2022-11-15 15:33:43 +01:00
Daniel Roe
9227361027
fix(nuxt): detect non-functional imports within page meta () 2022-11-10 11:31:01 +01:00
Daniel Roe
4bbd2618ce
feat(nuxt): auto-import utils/ directory () 2022-11-09 10:43:16 +01:00
Daniel Roe
4e8f59bf70
fix(schema): add declarations to ignore list () 2022-11-09 10:01:09 +01:00
Daniel Roe
e76ebdddd0
fix(nuxt): allow cookies to be set to null to unset them ()
Co-authored-by: Magyar Balázs <magyarb94@gmail.com>
2022-11-09 09:59:23 +01:00
Daniel Roe
ee8e9ae656
test: update type test for strict mode () 2022-11-03 21:22:20 +01:00
Daniel Roe
491d02f6ca
fix(nuxt)!: use parser to generate page metadata () 2022-11-02 11:28:41 +01:00
Daniel Roe
bdacfa6ffe
fix(nuxt): pass async-data errors through to client () 2022-11-02 10:07:28 +01:00
pooya parsa
265db50515
refactor(nuxt)!: cleanup schema and split nuxt 2 types () 2022-10-27 12:36:37 +02:00
Daniel Roe
59d8c51b5b
refactor(schema)!: disable app.pageTransition and app.layoutTransition by default () 2022-10-24 17:23:49 +02:00
Daniel Roe
e79d72cd06
test: add bundle size test ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-19 17:29:01 +02:00
Daniel Roe
cfaa46201a
fix(nuxt): lazy-load entry CSS () 2022-10-18 18:13:50 +02:00
renovate[bot]
c14f9f5638
chore(deps): update all non-major dependencies ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-18 12:36:48 +02:00
Daniel Roe
63d778be13
test: update fixture with routeRules too 2022-10-17 15:15:59 +01:00
Daniel Roe
74a90c566c
chore: use pnpm for framework monorepo ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-17 12:10:05 +02:00
Daniel Roe
d862a6bfdd
fix(nuxt)!: refresh to override previous requests by default () 2022-10-15 13:02:23 +02:00
renovate[bot]
600a6059c1
chore(deps): update all non-major dependencies ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-12 19:00:30 +01:00
Harlan Wilton
9e6d292ba6
feat(nuxt): migrate to latest @vueuse/head () 2022-10-12 18:00:17 +01:00