1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-04 18:54:09 +00:00
Commit Graph

411 Commits

Author SHA1 Message Date
Yann Odeyer
da6fa9ab44
perf(nuxt): use static import of @unhead/ssr () 2022-12-23 14:18:14 +01:00
Anthony Fu
faf260757c
feat(vite): display production build stats () 2022-12-19 12:57:08 +01:00
Mehdi HosseinZade
04c8625843
feat(nuxt): deep watch useCookie ref value by default ()
* 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 () 2022-12-13 10:30:12 +00:00
Daniel Roe
4cf110e0d8
fix(nuxt): make dev-only regexp less greedy () 2022-12-13 09:39:14 +00:00
renovate[bot]
3733f123df
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-12-12 16:45:15 +00:00
Daniel Roe
5afcaca98f
feat(vite): upgrade to vite 4 () 2022-12-12 15:22:04 +00:00
Daniel Roe
23307cd8e0
fix(nuxt): remove absolute paths from routes objects () 2022-12-12 13:25:00 +01:00
Harlan Wilton
4cb7e425a1
refactor(nuxt): remove vue-meta for head support () 2022-12-12 11:07:31 +01: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
2396fc657f
fix(nuxt): remove deprecated req/res access () 2022-12-10 19:54:35 +00:00
Alexander Lichter
d0c0cd7ad2
refactor(nuxt): use pathe.join for layer lookup () 2022-12-06 12:30:14 +01:00
Alexander Lichter
5f935aad48
feat(nuxt): support for extending error.vue in layers () 2022-12-06 09:44:03 +00:00
Mahdi Boomeri
9c478ee16e
feat: useNuxtData composable ()
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 () 2022-12-05 11:46:13 +01:00
Daniel Roe
4c4249dc33
feat(nuxt): add onNuxtReady composable () 2022-12-05 11:09:58 +01:00
Daniel Roe
52421a9354
fix(nuxt): defer render-blocking prefetches until after load () 2022-12-02 16:13:35 +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
Damian Głowala
4f2bfbe5c0
fix(nuxt): include missing <NuxtPage> component props ()
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 () 2022-11-21 11:45:54 +01:00
Toby Faux
32044dc8a5
fix(nuxt): allow union type arguments for useAsyncData () 2022-11-16 15:27:24 +01:00
pooya parsa
d6bfa216ae
fix(nuxt): removed auto imports () 2022-11-16 10:59:45 +01:00
pooya parsa
5ac9d85a49
refactor!: remove deprecated api () 2022-11-16 03:26:35 +01:00
Anthony Fu
f1ae40fc4e
fix(nuxt): improve hmr for pages macros ()
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 () 2022-11-15 17:47:41 +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
4c8369fbf3
fix(nuxt): include layers in esbuild transform () 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 () 2022-11-14 11:28:31 +01:00
Julien Huang
8c4ff5c585
fix(nuxt): avoid passing attrs to default slot for ClientOnly () 2022-11-14 11:27:57 +01:00
Daniel Roe
e6351349c0
feat(nuxt): add onBeforeRouteLeave and onBeforeRouteUpdate composables () 2022-11-10 14:52:04 +01:00
Toby Faux
3e34a61506
fix(nuxt): use app.baseURL when fetching error page on server ()
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 () 2022-11-10 14:27:59 +01:00
pooya parsa
83b5c09090
fix(nuxt): preserve render errors ()
* 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 () 2022-11-10 12:41:02 +01:00
Daniel Roe
9227361027
fix(nuxt): detect non-functional imports within page meta () 2022-11-10 11:31:01 +01:00
renovate[bot]
dd600bbb66
chore(deps): update all non-major dependencies () 2022-11-10 10:43:24 +01:00
Daniel Roe
17099348e7
fix(nuxt)!: only add $f fetch prefix to auto-keys () 2022-11-10 09:39:49 +01:00
Daniel Roe
4bbd2618ce
feat(nuxt): auto-import utils/ directory () 2022-11-09 10:43:16 +01:00
Daniel Roe
3839dba06a
refactor(nuxt): explicitly import app in nuxt-root () 2022-11-09 10:14:15 +01:00
Daniel Roe
453ce78300
fix(nuxt): swallow issues with query selectors () 2022-11-09 10:10:32 +01:00
Daniel Roe
aec07f4255
style: lint Route interface () 2022-11-09 10:08:50 +01:00
Daniel Roe
5a32927935
fix(nuxt): do not render page if we are throwing error () 2022-11-09 10:08:37 +01:00
Daniel Roe
4d1be089d7
chore(nuxt): remove unused plugins () 2022-11-09 10:07:22 +01:00
Daniel Roe
10c2272f4f
refactor(nuxt)!: remove support for 404.vue shorthand () 2022-11-09 10:05:22 +01:00
Alexander Lichter
0cf0f59bc5
fix(ssr): ensure useRequestHeaders are case-insensitive ()
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 () 2022-11-09 10:02:11 +01:00
Daniel Roe
30d99477ce
fix(nuxt): add catchall paths to prerender list () 2022-11-09 10:00:34 +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
Agénor Debriat
b60f1364c5
refactor(nuxt)!: fix typo for NuxtRenderHTMLContext.bodyPrepend () 2022-11-07 11:29:41 +01:00
Sébastien Chopin
fe433a4222
fix(nuxt): check if global transitions are activated for scroll behavior () 2022-11-04 19:09:28 +01:00
pooya parsa
19a2cd1492
fix(nuxt): ensure payload url has no protocol () 2022-11-03 23:28:13 +01:00
pooya parsa
9eb6a62471
fix: resolve ids to support pnpm () 2022-11-03 22:48:51 +01:00
pooya parsa
253c8f7ee0
fix(nuxt): disallow directly rendering error page () 2022-11-03 22:48:29 +01:00
pooya parsa
ea17148a6b
feat(kit, nuxt): support prerender:routes and addPrerenderRoutes () 2022-11-03 22:03:12 +01:00
Daniel Roe
cda498b070
fix(nuxt): do not inline global styles in html response () 2022-11-03 20:17:43 +01:00
Daniel Roe
71ecffa234
fix(nuxt): don't force prerender / if user doesn't have that route ()
* 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 () 2022-11-03 15:05:38 +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
Daniel Roe
28ffb7fea0
fix(nuxt): add vue-router to optimized deps () 2022-11-02 09:53:23 +01:00
pooya parsa
1f6b3be7d4
fix(nuxt, nuxi): improve pages creation and removal dx () 2022-10-27 17:50:24 +02:00
pooya parsa
265db50515
refactor(nuxt)!: cleanup schema and split nuxt 2 types () 2022-10-27 12:36:37 +02:00
Sacha STAFYNIAK
b010e3e861
feat: add dev-only component () 2022-10-26 14:43:37 +02:00
renovate[bot]
8e1bcae8c6
chore(deps): update all non-major dependencies ()
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 () 2022-10-26 10:28:00 +02:00
Daniel Roe
12808f175b
fix(nuxt): allow responding with custom headers from error.vue () 2022-10-26 10:25:27 +02:00
Daniel Roe
1d795f0274
fix(nuxt): call data refresh hook in parallel () 2022-10-25 17:29:35 +02:00
Daniel Roe
91eab1b312
feat(nuxt): add dev warnings when setPageLayout is used incorrectly () 2022-10-25 14:25:49 +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
5a88510cb7
feat(kit): add updateTemplates utility () 2022-10-24 10:53:02 +02:00
Daniel Roe
6bcd9cdeb1
fix(nuxt): avoid directly importing vue-router inside <NuxtLayout> () 2022-10-24 10:36:49 +02:00
Daniel Roe
e1ab5cf6d6
fix(nuxt): don't load payloads for external urls () 2022-10-21 10:27:58 +02:00
Christian Burkhart
a0a59e2157
fix(nuxt): routerBehavior comparison for hash block () 2022-10-21 10:27:40 +02:00
Daniel Roe
69a6a86d7c
feat(nuxt): make useFetch options reactive () 2022-10-21 10:13:14 +02:00
pooya parsa
0f2ef5d412
perf(nuxt): use simple JSON.stringify to compare params () 2022-10-19 17:31:05 +02:00
Johann Schopplich
7b16719649
fix(nuxt): router defaults overwrite custom options always () 2022-10-19 16:48:16 +02:00
Sébastien Chopin
0106e09e32
fix(nuxt): scroll to top on dynamic routes with different params ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-19 16:33:01 +02:00
pooya parsa
418b5671ff
fix: update h3 () 2022-10-19 15:59:11 +02:00
Daniel Roe
3333ef8dae
chore(nuxt): add type for headers () 2022-10-19 15:28:38 +02:00
Dmitriy
d82d145a0b
fix(nuxt): pass original request headers to the error page () 2022-10-19 15:03:01 +02:00
Joel Wenzel
ba3a11800c
feat(nuxt): default router scroll behavior ()
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 () 2022-10-19 09:55:32 +02:00
pooya parsa
2b2a5f3f89
fix(nuxt): ignore cache rules for middleware and errors () 2022-10-18 20:01:23 +02:00
Daniel Roe
cfaa46201a
fix(nuxt): lazy-load entry CSS () 2022-10-18 18:13:50 +02:00
Anthony Fu
e18da780a8
chore: upgrade unplugin to 0.10.x () 2022-10-18 11:36:06 +02:00
Daniel Roe
96a8807abf
fix(nuxt): allow disabling early hints () 2022-10-17 22:20:13 +02:00
Daniel Roe
a90b303d97
fix(nuxt): avoid preloading external routes () 2022-10-17 19:54:32 +02:00
Daniel Roe
7ebd1558ee
refactor: use getRouteRules () 2022-10-17 15:55:29 +02:00
Daniel Roe
2a4ebfb18b
perf(nuxt): improve link prefetching () 2022-10-17 13:15:29 +02:00
renovate[bot]
2cf9009d33
chore(deps): update all non-major dependencies () 2022-10-17 12:23:51 +02:00
Daniel Roe
9388e65971
refactor(nuxt): use h3 early hints util () 2022-10-17 11:16:19 +02:00
pooya parsa
895ecc7677
feat!: upgrade to nitropack@0.6 and h3@0.8 () 2022-10-15 20:42:57 +02:00
Harlan Wilton
c0e9f428f4
fix(nuxt): avoid head dom update on same route click () 2022-10-15 18:57:58 +02:00
Daniel Roe
5e7dfc2338
refactor(nuxt): deprecate <Script> component tag in template () 2022-10-15 13:20:24 +02:00
Benicio Cardozo
b9d6f37dfd
fix(nuxt): enable router when app/router.options.ts file is present () 2022-10-15 13:04:06 +02:00