Daniel Roe
b68cf0706d
fix(nuxt): do not warn for non-existent default layout ( #7748 )
2022-09-22 15:54:55 +02:00
Daniel Roe
a9a8571e35
fix(nuxt): export and auto-import clearNuxtData
( #7710 )
2022-09-21 11:53:38 +02:00
Daniel Roe
98ce2e6492
fix(nuxt): only observe tag elements for <NuxtLink>
prefetching ( #7679 )
2022-09-20 11:29:22 +02:00
Julien Huang
c4fe8525ef
fix(nuxt): add missing process.client
for early redirect in navigateTo ( #7625 )
2022-09-19 10:54:35 +02:00
pooya parsa
1ebdef77a6
fix(nuxt): keep state
in the initial state instead of extracting it ( #7567 )
2022-09-16 12:49:00 +02:00
Daniel Roe
c1ed6ecc3c
fix(nuxt): load payload after middleware and once final route is resolved ( #7574 )
2022-09-16 12:15:10 +02:00
Daniel Roe
3ed63a6b70
fix(nuxt): do not pass prefetched class to custom link ( #7522 )
2022-09-15 09:52:21 +02:00
pooya parsa
9024d76165
fix(nuxt): add payload.client
plugin only for production build ( #7498 )
2022-09-14 15:01:02 +02:00
Daniel Roe
ee75b48526
refactor(nuxt): use relative imports into composables ( #7487 )
2022-09-14 11:22:03 +02:00
Alex Liu
addcb5cd47
feat(nuxt): support prefetching <nuxt-link>
( #4329 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-13 22:20:23 +02:00
Daniel Roe
563cf7c1c9
fix(nuxt): use more specific FetchError
for useFetch
errors ( #7435 )
2022-09-12 11:23:19 +02:00
pooya parsa
888bd7c145
feat(nuxt): payload rendering support ( #6455 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-09-10 15:57:16 +02:00
Daniel Roe
e60d03b940
fix(nuxt): de-default layout/component imports ( #7389 )
2022-09-10 11:41:32 +02:00
Daniel Roe
9c3bef4a01
fix(nuxt): allow abortMiddleware
to receive a nuxt error or error options ( #7335 )
2022-09-08 10:52:00 +02:00
Alex Kozack
6b3a1a4256
feat(nuxt): filter support for clearNuxtData
( #7323 )
2022-09-07 15:25:37 +02:00
Alex Kozack
b2f573f685
feat(nuxt): add clearNuxtData
( #5227 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-07 13:20:09 +02:00
Vl4dimyr
fc2be9ed42
feat(nuxt): add immediate
option for useAsyncData
and useFetch
( #5500 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-07 11:47:40 +02:00
Daniel Roe
5a69f48244
fix(nuxt): don't try to set cookie after redirect ( #7288 )
2022-09-07 10:34:16 +02:00
Julien Huang
f8f5771646
perf(nuxt): cache createClientOnly
wrapper using weakmap ( #7297 )
2022-09-07 10:31:11 +02:00
Anthony Fu
96b5b8fd6d
fix(nuxt): import and wrap client-only components once ( #7245 )
2022-09-06 09:40:25 +02:00
HomWang
1fc34e6c06
chore: lint ( #7213 )
2022-09-04 10:31:57 +02:00
Damian Głowala
3e9f1efb1e
fix(nuxt): update default redirect code of navigateTo
to 302 Found
( #7189 )
2022-09-03 14:30:03 +02:00
Daniel Roe
6fbbf8c5bc
refactor(nuxt): remove unused meta:register
hook ( #7130 )
2022-09-01 11:08:56 +02:00
HomWang
cafc955fb8
docs: add explanatory comment before universal router stubs ( #7124 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-09-01 11:07:44 +02:00
Daniel Roe
d7b2d32b5e
chore(nuxt): prevent error page rendering a null error ( #7119 )
2022-08-31 22:19:28 +02:00
renovate[bot]
e38e1de740
refactor: apply lints from @nuxtjs/eslint-config-typescript
v11 ( #7114 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-31 20:34:17 +02:00
Daniel Roe
b90d286631
feat(nuxt): add setPageLayout
utility ( #6826 ) ( #7075 )
...
Co-authored-by: HomWang <516310460@qq.com>
2022-08-31 10:02:48 +02:00
pooya parsa
afc9d9bfc8
perf(nuxt): tree-shake asyncData client logic from server ( #7056 )
...
Co-authored-by: Ohb00 <43827372+OhB00@users.noreply.github.com>
2022-08-30 12:48:26 +02:00
pooya parsa
5a17458af5
fix(nuxt): use shared state for asyncData ( #7055 )
...
Co-authored-by: Ohb00 <43827372+OhB00@users.noreply.github.com>
2022-08-30 12:34:09 +02:00
Anthony Fu
9db2229f70
refactor: enable strict type checking everywhere ( #6943 )
2022-08-26 17:47:29 +02:00
Daniel Roe
403e0e6e6d
fix(nuxt): lazy composables shouldn't block setup in ssr: false
( #6901 )
2022-08-24 21:05:28 +02:00
Yaël Guilloux
1700bf822e
feat(nuxt): app.config
improvements ( #6905 )
2022-08-24 18:35:02 +02:00
Alexander Lichter
a4dfe232f0
feat(nuxt): navigateTo
supports external redirects ( #5022 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-24 18:04:56 +02:00
Daniel Roe
f3499d788a
feat(nuxt): allow programmatically prefetching global components ( #6661 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-23 21:12:22 +02:00
Daniel Roe
fc82b3b340
feat(nuxt): config options for default keepalive, page & layout transitions ( #5859 )
2022-08-23 16:24:20 +02:00
Daniel Roe
cfb7e59171
feat(nuxt): add warning in dev mode if layouts/pages do not have a single root node ( #5469 )
2022-08-23 12:25:48 +02:00
TheColaber
9f1ecd14c4
feat(nuxt): allow getRouteFromPath
to use objects ( #5900 )
2022-08-22 18:08:43 +02:00
Anthony Fu
e1e39b7e79
refactor(nuxt, kit): improve type strictness ( #6685 )
2022-08-22 12:12:02 +02:00
pooya parsa
3b2b22e384
fix(nuxt): use deep assignment for app.config hmr ( #6788 )
2022-08-22 11:14:25 +02:00
Julien Huang
c688e1898c
fix(nuxt): pass params to client-only slot ( #6584 )
2022-08-17 17:26:51 +02:00
pooya parsa
94f76ea930
feat(nuxt): app.config
with hmr and reactivity support ( #6333 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-17 17:23:13 +02:00
Daniel Roe
33e7fc1752
fix(nuxt): don't set asyncData to existing payload on CSR if initialCache
is disabled ( #6640 )
2022-08-15 15:55:46 +02:00
Anthony Fu
f350a70775
refactor(nuxt): enable strict type checking ( #6368 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-12 19:47:58 +02:00
pooya parsa
24a499d285
fix(nuxt)!: allow app:rendered
to modify ssr context and add render:html
( #6521 )
2022-08-11 18:34:39 +02:00
Daniel Roe
5232c1b5b4
fix(nuxt): immediately call asyncData
handler ( #6472 )
2022-08-09 23:48:48 +02:00
YuTin Liu
03cd6717ce
fix(nuxt): handle immediate errors when calling useAsyncData
( #6441 )
2022-08-09 10:01:25 +02:00
Daniel Roe
46f36a4038
fix(nuxt): use payload error state as source of truth ( #6389 )
2022-08-08 16:33:31 +02:00
pooya parsa
4ec68db323
fix(nuxt): do not log 404
and showError
as fatal by default ( #6437 )
2022-08-08 14:11:50 +02:00
Daniel Roe
41d6f372a7
feat(nuxt): update to vue-bundle-renderer@0.4
( #6210 )
2022-08-07 11:52:34 +02:00
Daniel Roe
4623525f3f
fix(nuxt): type useRoute
return ( #6395 )
2022-08-07 06:57:11 +02:00
renovate[bot]
6d64aff6f2
chore(deps): update dependency unctx to v2 ( #6340 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-04 13:00:01 +02:00
Daniel Roe
4732d2ce3a
fix(nuxt): better equality check for json cookies ( #6352 )
2022-08-04 12:58:15 +02:00
Daniel Roe
fbe2459255
fix(nuxt): remove literal <script setup>
from comment ( #6331 )
2022-08-03 13:49:09 +02:00
Daniel Roe
4379e9d922
feat(nuxt): add setResponseStatus
utility ( #6306 )
2022-08-02 18:01:59 +02:00
Julien Huang
2cdaf8065c
feat(nuxt): remove wrapper from client only components ( #6165 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-02 17:05:02 +02:00
Daniel Roe
c72093b1f2
fix(nuxt): separate routes for different suspense forks ( #6275 )
2022-08-02 11:58:03 +02:00
pooya parsa
f58aa8114f
feat(nuxt): app:rendered
and app:response
hooks ( #6042 )
2022-07-27 11:53:53 +02:00
hecateball
e08a493bac
fix(nuxt): add error event declaration to the <NuxtErrorBoundary>
component ( #6141 )
2022-07-26 15:36:58 +02:00
David Tai
3a822c7177
refactor(nuxt): enhance useFetch
and useLazyFetch
request type ( #4825 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-07-25 14:37:39 +02:00
Daniel Roe
78618f1f21
feat(nuxt): improve error dx for users ( #4539 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-21 16:29:03 +02:00
Daniel Roe
92269dde44
fix(nuxt)!: change statusCode
type to number for error page template ( #6010 )
2022-07-20 19:00:42 +02:00
Daniel Roe
dce07e5831
fix(nuxt): lazy load and tree-shake error templates ( #5930 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
Co-authored-by: Kevin Marrec <kevin@marrec.io>
2022-07-16 00:15:31 +02:00
Daniel Roe
1ced224389
fix(nuxt): warn about legacy and invalid plugins ( #5857 )
...
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-12 19:06:55 +02:00
Anthony Fu
c95a48c632
feat(nuxt): add <NuxtLoadingIndicator>
component ( #5121 )
...
Co-authored-by: Damian <48835293+DamianGlowala@users.noreply.github.com>
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-07 19:59:55 +02:00
Francisco Buceta
38e0fa6e1e
feat(nuxt3): support custom
prop for <nuxt-link>
( #4249 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-07-07 19:28:23 +02:00
Daniel Roe
23546a270c
feat(nuxt): automatically generate unique keys for keyed composables ( #4955 )
...
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-07-07 18:26:04 +02:00
Pooya Parsa
8d2f805770
fix(nuxt): handle undefined
when applying defaults for useAsyncData
...
issue appeared as a regression of #5660
2022-07-07 00:12:31 +02:00
mrauhu
93d60a30de
feat(nuxt): allow passing custom fetch options to useFetch
( #5660 )
2022-07-06 21:17:59 +02:00
Daniel Roe
b5f5f7d5ba
perf(nuxt)!: remove legacy app context ( #5630 )
2022-07-06 21:15:00 +02:00
Daniel Roe
f09d1d88da
fix(nuxt): update useFetch
key warning to include any function or blob ( #5710 )
...
* fix(nuxt): update `useFetch` key warning to include any function or blob
* Update packages/nuxt/src/app/composables/fetch.ts
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-07-06 21:09:46 +02:00
Daniel Roe
490d686fe6
fix(nuxt): useRequestHeaders
type should allow for undefined
values ( #5748 )
2022-07-06 21:00:08 +02:00
Daniel Roe
fe508f5d20
fix(nuxt): pass attrs and props to client-only components ( #5668 )
2022-06-30 16:08:05 +02:00
Daniel Roe
8c2c80e43e
feat(nuxt)!: support universal global middleware ( #5038 )
2022-06-27 14:10:29 +02:00
Daniel Roe
d7d97cd7d1
fix(nuxt): prefer nuxt app context over getCurrentInstance
( #5456 )
2022-06-15 14:00:34 +02:00
Anthony Fu
eafd92c457
fix(types): tidy types for useAsyncData
( #5340 )
2022-06-08 21:45:12 +02:00
Daniel Roe
822928b07e
fix(nuxt): add ssrContext
types on NuxtApp
( #5333 )
2022-06-08 21:37:50 +02:00
Daniel Roe
1fda73267a
fix(nuxt): respect navigateTo
options using server middleware in server-side ( #5145 )
2022-06-01 00:09:32 +02:00
Anthony Fu
fca2ed7cc5
fix(nuxt): default statusCode of navigateTo
from 301
to 302
( #5173 )
...
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-05-31 23:28:52 +02:00
Daniel Roe
cad4edd5a3
fix(nuxt): respect baseurl when redirecting (and universal router) ( #4933 )
...
* fix(nuxt): respect baseurl when redirecting (and universal router)
* test: add test case for redirect
2022-05-11 19:33:29 +02:00
renovate[bot]
7e89fe8f6c
chore(deps): update all non-major dependencies ( #4914 )
...
* chore(deps): update all non-major dependencies
* update lock
* fix: update types
* fix: update error type
* test: update useFetch url
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-05-11 14:32:05 +02:00
Sébastien Chopin
9e5a3cdc6f
fix(nuxt): avoid redirect with different encoding and trailing slash ( #4857 )
...
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-05-06 18:02:50 +02:00
Jalil Wahdatehagh
5816fee892
fix(nuxt): add missing import to client only wrapper ( #4851 )
2022-05-06 15:32:29 +02:00
Daniel Roe
87c62513fa
fix(nuxt): await asyncData if ssr: false
( #4791 )
2022-05-06 13:04:01 +02:00
Daniel Roe
b29f635646
fix(nuxt): normalise window location for universal router ( #4841 )
2022-05-06 13:02:35 +02:00
Daniel Roe
750460693e
fix(nuxt): check if default slot is provided before calling it ( #4842 )
2022-05-06 12:52:08 +02:00
Daniel Roe
27d67360e4
fix(nuxt): clear errors after navigation ( #4839 )
2022-05-06 12:50:54 +02:00
pooya parsa
ebc27ce997
fix(nuxt): ensure url is not empty string ( #4781 )
2022-05-05 22:46:54 +02:00
Daniel Roe
4826918ed0
fix(nuxt): process middleware after plugins ( #4645 )
2022-05-02 12:00:08 +02:00
Alex Liu
eb903bd66e
fix(nuxt3): improve error types for useAsyncData
and useFetch
( #4210 )
...
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-29 20:42:22 +02:00
Anthony Fu
256df28124
chore: enable typecheck ci for packages ( #4664 )
2022-04-29 11:38:22 +02:00
Daniel Roe
7e912e7bf4
fix(nuxt): warn to provide a key for useFetch
with transform
option ( #4590 )
2022-04-27 18:19:10 +02:00
Daniel Roe
7b091abcea
fix(nuxt3): default client-side fetch to use baseURL ( #4456 )
2022-04-20 14:35:33 +02:00
pooya parsa
4712e99411
refactor!: rename nuxt3 to nuxt ( #4449 )
2022-04-20 10:52:39 +02:00