Commit Graph

362 Commits

Author SHA1 Message Date
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
Sanjaiyan Parthipan
94d0c08066
feat(nuxt): add fetchpriority attribute and literal typings for meta components (#6251) 2022-08-02 14:08:01 +02:00
Harlan Wilton
622c976cec
fix(nuxt): render head scripts that use body: true (#6293)
Co-authored-by: Damian Głowala <48835293+DamianGlowala@users.noreply.github.com>
2022-08-02 13:43:25 +02:00
Harlan Wilton
aa653ef6cb
fix(nuxt): avoid duplicate titleTemplate (#6296) 2022-08-02 13:20:44 +02:00
Daniel Roe
c72093b1f2
fix(nuxt): separate routes for different suspense forks (#6275) 2022-08-02 11:58:03 +02:00
Daniel Roe
b12fe7eb7c
fix(nuxt): narrow nuxt.config import protection (#6279) 2022-08-01 19:25:31 +02:00
Daniel Roe
96cfe01973
fix(nuxt): do not allow catchalls to have child routes (#6257) 2022-08-01 09:51:46 +02:00
Kevin Marrec
5a042cd69b
feat(nuxt): extends support for app.vue (#6228) 2022-07-29 13:12:50 +02:00
Daniel Roe
748b063afa
fix(nuxt): don't call renderMeta if it is not defined (#6201)
* fix(nuxt): don't call renderMeta if it is not defined

* fix: check for nuxt existence as well
2022-07-28 15:11:47 +02:00
Daniel Roe
4e2667fcb7
feat(nuxt): add support for components/global (#6070)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-27 15:05:34 +02:00
Daniel Roe
1230268a7b
fix(nuxt): allow useHead to accept computed values (#6174) 2022-07-27 13:25:43 +02:00
pooya parsa
f58aa8114f
feat(nuxt): app:rendered and app:response hooks (#6042) 2022-07-27 11:53:53 +02:00
Victor Saa
5d023a80df
feat(nuxt, schema): add <NoScript> component and noscript typings (#6139) 2022-07-26 15:41:01 +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
Thomas
210cf30691
fix(nuxt): normalize manifest css file entries (#6112) 2022-07-25 14:05:58 +02:00
Daniel Roe
6c125bc941
fix(nuxt): don't ignore components dirs with same prefix (#6116) 2022-07-25 12:13:54 +02:00
Anthony Fu
416f98b6b4
fix(nuxt): auto import for components with external template (#6053) 2022-07-22 10:28:16 +02:00
Anthony Fu
d453729c75
fix(types): generate relative path in imports.d.ts (#6054) 2022-07-22 09:30:29 +02:00
Anthony Fu
d135608ef0
fix(nuxt): use relative path to generate plugin variables (#6030)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-21 20:09:27 +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
Anthony Fu
1a862526fe
perf(nuxt): transform #imports to improve tree-shaking (#5763) 2022-07-21 16:27:23 +02:00
Daniel Roe
54e672db19
fix(nuxt): always write nitro types when building (#6035) 2022-07-21 15:50:41 +02:00
Daniel Roe
8f7b9f904e
fix(pages): ignore expression delimiters within quotes (#6033)
* fix(pages): ignore expression delimiters within quotes

* perf: use re

* test: add test that would have failed
2022-07-21 15:49:48 +02:00
Anthony Fu
b4b98041f0
fix(kit, nuxt): always sort globby results (#6029) 2022-07-21 12:46:50 +02:00
Daniel Roe
fa8b0f7c79
feat(vite)!: upgrade vite to v3 (#5398) 2022-07-21 12:44:33 +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
pooya parsa
2e85cd0252
refactor(nuxt): add treeshakeClientOnly experimental flag (#5934)
* refactor(nuxt): add `treeshakeClientOnly` experimental flag

* test: enable flag for fixture
2022-07-17 15:13:04 +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
df04a665ce
perf(nuxt): tree-shake client-only components from ssr bundle (#5750)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-14 19:46:12 +02:00
pooya parsa
0ef08190ae
fix(nuxt): fix issues with vue-router and @vue/devtools-api bundling (#5874) 2022-07-13 14:42:24 +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
135dfdf73b
fix(nuxt): replace process.dev in nitro bundle (#5852) 2022-07-12 14:32:07 +02:00
pooya parsa
56a3f1b615
fix(nuxt): extend nitro routes instead of overriding (#5828) 2022-07-12 12:56:40 +02:00
Daniel Roe
1840b96335
refactor(nuxt): add import protection to nitro config (#5847) 2022-07-12 12:55:32 +02:00
Daniel Roe
2d70507d1c
fix(nuxt): only tree-shake composables on their own lines (#5850) 2022-07-12 12:55:12 +02:00
Daniel Roe
b045b7141b
fix(nuxt): don't return stub function from tree-shaken composables (#5786) 2022-07-08 14:42:26 +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
pooya parsa
f321a56e63
fix(nuxt): use virtual server stub with ssr: false (#5773) 2022-07-07 18:51:42 +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
Daniel Roe
4d607080f5
feat(nuxt): tree-shake client and server-only composables (#5749) 2022-07-07 18:04:38 +02:00
Daniel Roe
271262e10a
feat(nuxt): prerender all pages by default (#5709) 2022-07-07 17:07:37 +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
renovate[bot]
9df6d2f1d2
chore(deps): update all non-major dependencies (#5588)
* chore(deps): update all non-major dependencies

* update lockfile

* update unimport

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-07-01 12:02:57 +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
Anthony Fu
7efdb486db
fix(vite-node): on-demand manifest (#5017) 2022-06-27 14:08:52 +02:00
Daniel Roe
d7d97cd7d1
fix(nuxt): prefer nuxt app context over getCurrentInstance (#5456) 2022-06-15 14:00:34 +02:00
Daniel Roe
e10517d4d7
fix(nuxt): normalize string transpile paths for windows (#5461)
* fix(nuxt): normalize string transpile paths for windows

* Update packages/nuxt/src/core/nuxt.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-06-15 13:52:46 +02:00
Jaemin Choi
95b38e241d
fix(nuxt): don't add macro query to the end of id (#5413)
* fix(nuxt): don't add macro query to the end of id

* Update packages/nuxt/src/pages/macros.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-06-12 23:46:31 +02:00
Daniel Roe
0f4fa5643f
fix(nuxt): ignore whitespace and commas within resolveComponent (#5428) 2022-06-12 23:22:15 +02:00
Daniel Roe
59da4c6dd4
fix(nuxt): exclude non-cwd auto-imports and don't process all files (#5421) 2022-06-12 22:12:43 +02:00
Daniel Roe
fbcbac01d6
fix(nuxt): don't debounce watcher and include layers (#5002) 2022-06-10 16:50:47 +02:00
Daniel Roe
11a7340883
feat(nuxt): experimental flag to use external vue dependencies (#5083) 2022-06-10 16:31:36 +02:00
Daniel Roe
f6bf4f7559
fix(nuxt): throw an error when using unknown route middleware (#5323) 2022-06-10 15:35:58 +02:00
Daniel Roe
846be5cee2
fix(nuxt): transform extends layers within node_modules (#5042) 2022-06-10 15:33:16 +02:00
Daniel Roe
970758e050
revert(nuxt): revert router hotfix #4983 (#5394) 2022-06-10 15:15:53 +02:00
Daniel Roe
93f6a1e4ca
fix(vite, kit, nuxt): generate safe variable names using knitwork (#4906) 2022-06-10 15:12:21 +02:00
Daniel Roe
27a0084b6c
fix(nuxt): keep route param optionality when sibling is an index (#5300) 2022-06-09 15:03:08 +02:00
Daniel Roe
b31186b658
fix(nuxt): sort routes with dynamic params at the end (#4983) 2022-06-09 14:09:34 +02:00
Anthony Fu
a802b87ac7
feat(nuxt): support auto imports within <template> (#4904) 2022-06-08 22:09:31 +02:00
Daniel Roe
247deacc2b
fix(nuxt): relax server import protections (#5355)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-06-08 21:51:38 +02:00
Xin Du (Clark)
139fc11c5a
refactor: fix typo and code improvements (#5344) 2022-06-08 21:49:11 +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
eb12c7a845
fix(nuxt): support RouterView props in NuxtPage (#5272) 2022-06-03 16:01:46 +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
9adecac0b7
fix(nuxt): add default empty title to trigger titleTemplate (#5064) 2022-05-20 16:43:07 +02:00
Daniel Roe
a4a3cffb92
fix(nuxt): allow passing extraneous attrs to meta components (#5071) 2022-05-20 16:42:19 +02:00
Julien Huang
4e53af3e99
fix(nuxt): fix router redirection on aliased pages (#4982) 2022-05-20 11:15:57 +02:00
Daniel Roe
46c656c4b8
fix(nuxt): check for 404s after user middleware (#4913) 2022-05-12 11:13:38 +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
pooya parsa
a58178c4fd
refactor(nuxt): cleanup renderer entry (#4853) 2022-05-06 17:34:21 +02:00
Jalil Wahdatehagh
5816fee892 fix(nuxt): add missing import to client only wrapper (#4851) 2022-05-06 15:32:29 +02:00
pooya parsa
92847ed924
feat(nuxt, kit): add shortcuts to register custom server handlers (#4850) 2022-05-06 15:31:52 +02:00
Daniel Roe
e0125f49ff
fix(schema): add back PublicRuntimeConfig interface for augmentation (#4849) 2022-05-06 15:27:42 +02:00
pooya parsa
f67deed037
feat(nuxt)!: upgrade nitropack to 0.4.x (#4837) 2022-05-06 15:03:38 +02:00
Anthony Fu
a862a67c80
feat(auto-import): custom include option (#4834) 2022-05-06 13:11:34 +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
Julien Huang
6b1671181e
fix(nuxt) : add default value for nitro.rollupConfig.plugins (#4830) 2022-05-06 10:33:56 +02:00
pooya parsa
ebc27ce997
fix(nuxt): ensure url is not empty string (#4781) 2022-05-05 22:46:54 +02:00
Daniel Roe
f74a523f13
fix(nuxt): use router.resolve to resolve initial url (#4770) 2022-05-03 11:31:58 +02:00
Daniel Roe
1f8e3e2f33
feat(nitro): add nitro:build:before hook (#4304)
* fix(nitro): add back `nitro:generate` hook

* fix: use `nitro:generate` hook for vite workarounds

* fix: remove comment

* fix: only call `nitro:generate` in build mode

* rename hook to `nitro:_build`

* fix: use `nitro:build:before`

* move dev guard

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-05-02 22:15:47 +02:00
Max Heilmann
ffb9f71312
fix(nuxt): preserve error.data in response (#4755) 2022-05-02 18:34:16 +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
Daniel Roe
2a3fbb4c24
fix(nuxt): mark config head as non-reactive (#4666) 2022-04-29 20:12:54 +02:00
Anthony Fu
256df28124
chore: enable typecheck ci for packages (#4664) 2022-04-29 11:38:22 +02:00
Daniel Roe
ab3971d302
fix(nuxt): use suspense for child pages on client-side navigation (#4677) 2022-04-29 11:37:49 +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
2bfd749c24
feat(pages)!: explicitly allow optional params with [[ (#4537) 2022-04-26 18:10:05 +02:00
Anthony Fu
eb4b8c4c9d
fix(nuxt): cleanup auto imports on regenerate (#4626) 2022-04-26 17:52:39 +02:00
Anthony Fu
46ecbc558d
fix(nuxt): await for router.push on ssr (#4491) 2022-04-22 17:37:52 +02:00
Daniel Roe
650d12fa9c
feat: allow disabling sourcemap generation (#4509) 2022-04-22 17:35:42 +02:00
Daniel Roe
78fcbcf16f
fix(nuxt3): respect custom public dir in layers (#4477) 2022-04-20 22:07:01 +02:00
pooya parsa
3c3291226d
fix(nuxt): skip server build with generate (#4472) 2022-04-20 21:12:04 +02:00
pooya parsa
13a386da90
feat(nuxt): enable nuxt telemetry (#4467) 2022-04-20 20:25:09 +02:00
Daniel Roe
d0ae5851e4
fix(nuxt): return 404 if hitting 404.vue (#4460)
* fix(nuxt): return 404 if hitting `404.vue`

* docs: add info about `pages/404.vue`
2022-04-20 16:24:08 +02:00
Daniel Roe
7b091abcea
fix(nuxt3): default client-side fetch to use baseURL (#4456) 2022-04-20 14:35:33 +02:00
Daniel Roe
d469c9a6d7
fix(nuxt3): don't rely on auto-imports for defineAsyncComponent (#4454) 2022-04-20 12:20:49 +02:00
pooya parsa
4712e99411
refactor!: rename nuxt3 to nuxt (#4449) 2022-04-20 10:52:39 +02:00