1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-02-24 01:19:58 +00:00
Commit Graph

825 Commits

Author SHA1 Message Date
Daniel Roe
a07cfb8663
refactor(cli,schema): add bundler module resolution flag () 2023-07-14 14:46:40 +01:00
Daniel Roe
b06ae969f6
fix(test-utils): export from core playwright package () 2023-07-13 18:26:04 +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
renovate[bot]
00fb33379c
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-05 12:18:44 +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
6a9fbbfe46
test: add nuxt-vitest and composable unit tests () 2023-07-02 09:59:16 +01:00
renovate[bot]
07a0e9d412
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-06-28 15:43:04 +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
e69837d6a7 test: bump bundle size 2023-06-26 13:40:52 +01:00
renovate[bot]
d9a3ab80e0
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-06-26 13:24:21 +01:00
Daniel Roe
12403d160f
fix(vite): emit assets referenced in inline css () 2023-06-26 13:11:12 +01:00
renovate[bot]
c0ba36fcd6
chore(deps): update dependency esbuild to ^0.18.8 (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-06-25 23:51:03 +01:00
Daniel Roe
dd913ce0d8
fix(vite): resolve css files without importer id first () 2023-06-25 22:51:31 +01:00
Daniel Roe
4cc9a7135d
fix(nuxt): inline global css with ssr: false route rule () 2023-06-25 22:50:42 +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
be3f6f7018
feat(nuxt): update devdependency nitropack to v2.5.1 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 10:38:26 +01:00
renovate[bot]
c30b91ada8
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-06-21 12:28:17 +01:00
Daniel Roe
c3c56c14ab
fix(nuxt): guard res.end() calls with check if event is handled () 2023-06-21 07:07:02 +01:00
Daniel Roe
c66c82e6a0
feat(nuxt): allow configuring spa loading indicator () 2023-06-20 19:55:20 +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
Daniel Roe
0e575ad5ab
feat(nuxt): expose useNuxtApp to window for convenience () 2023-06-19 17:17:15 +01:00
Inesh Bose
c73bed8c6d
feat(kit): allow direct function in defineNuxtModule () 2023-06-16 15:47:38 +01:00
Nicolas Payot
187230b0c5
fix(nuxt): abort navigation when updating window.location () 2023-06-14 15:37:21 +01:00
Daniel Roe
f97052cbaf test: skip instance error test in vite ecosystem CI 2023-06-14 11:21:12 +01:00
Daniel Roe
19fc2828fb
perf(nuxt): use prerendered islands to serialise/revive payload () 2023-06-14 10:09:27 +01:00
renovate[bot]
3b0b924946
chore(deps): update dependency destr to v2 (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-06-12 20:43:13 +01:00
Daniel Roe
05a8c2d955
fix(nuxt): respect query/hash for external routes in navigateTo () 2023-06-11 22:27:02 +01:00
Daniel Roe
ce4f46385f chore: bump bundle size 🤔 2023-06-10 23:32:43 +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
Daniel Roe
08df73801a test: update bundle size 2023-06-10 10:19:03 +01:00
Edward Hibbert
13aae836e8 perf(nuxt): import error component synchronously () 2023-06-10 10:11:26 +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
Jongmin Yoon
31a1b98f3f
feat(nuxt): provide clearNuxtState composable () 2023-06-09 22:22:21 +01:00
Daniel Roe
c6a7527e51
ci: move bundle skipping logic to workflow () 2023-06-07 21:07:58 +01:00
Wilson Pinto
c4e5ac83bf
feat(nuxt): add open option in navigateTo helper () 2023-06-07 20:27:00 +01:00
pooya parsa
05f3decfa9
fix(nuxt): avoid early returning renderer with empty response () 2023-06-07 14:11:59 +01:00
renovate[bot]
f0ade90645
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-06-07 13:30:41 +01:00
Daniel Roe
7710ed30fa
fix(nuxt): skip vue render when redirecting () 2023-06-07 13:18:50 +01:00
renovate[bot]
5872015be3
fix(vite): remove resolveId workaround and update vite-node ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-06-07 12:42:59 +01:00
Anthony Fu
6d59a027c7
perf(nuxt): mark define functions as side-effect free at source () 2023-06-07 11:11:24 +01:00
Asher White
0bc38b7e19
fix(nuxt): replace BigInt literal with BigInt constructor () 2023-06-07 09:57:44 +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
Daniel Roe
3bc3aeaf62 test: close out some missing browser contexts 2023-05-28 10:47:03 -05:00
Louis Haftmann
92bc999d0e
fix(nuxt): omit Set-Cookie header if value is null () 2023-05-26 14:42:12 -05:00
renovate[bot]
1879e1cd4d
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-05-25 16:38:10 -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
Julien Huang
2d680455ae
fix(nuxt): skip middleware for islands components () 2023-05-20 23:26:29 +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
b2a769a863 chore: remove outdated todo comment 2023-05-19 08:28:39 +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
Anthony Fu
433b52930a
feat(nuxt): support parallel plugins () 2023-05-16 09:50:43 +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
Daniel Roe
aee1218e61 ci: add conditional for node 16 test 2023-05-15 11:31:13 +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
Julien Huang
900ee6dc8b
fix(nuxt): transform client fallbacks directly on SFCs () 2023-05-13 22:39:50 +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
93ba5e7cd2
feat(nuxt): use runWithContext within callWithNuxt () 2023-05-11 12:39:08 +01:00
Daniel Roe
f170075c79
feat(deps): update vue to v3.3 () 2023-05-11 09:37:32 +01:00
Daniel Roe
95a0e17898
feat(schema): enable rich json payloads by default () 2023-05-10 23:31:13 +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
1da25c8069
fix(nuxt): allow resolving client nuxt app to singleton () 2023-05-09 11:22:38 +01:00
renovate[bot]
7cb4c69935
feat(deps): upgrade to nitropack v2.4 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-05-06 09:44:07 +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
6ef2e1caea
fix(nuxt): remove backwards-compatible runtimeConfig proxy () 2023-04-29 23:38:40 +01:00
Daniel Roe
f73bb1de0a
fix(nuxt): return RenderResponse for redirects () 2023-04-28 11:18:03 +01:00
Anthony Fu
98b20c45c8
fix(nuxt): transform #components imports into direct component imports ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-28 10:14:42 +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
200cb2787e
fix(nuxt): throw 404 when accessing /__nuxt_error directly () 2023-04-25 15:47:02 +01:00
Daniel Roe
ac598e4f4d test: update snapshot 2023-04-25 11:26:45 +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
12f347a928
fix(nuxt): clone app config on server () 2023-04-20 13:33:45 +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
renovate[bot]
6b75cceb3d
chore(deps): update all non-major dependencies (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-04-19 17:03:51 +01:00
Daniel Roe
574a5616b4
perf: remove unused deps and add implicit deps () 2023-04-19 16:45:13 +01:00
renovate[bot]
fe441a1364
chore(deps): update all non-major dependencies (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-04-18 16:52:31 +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
53db8125f1
perf(nuxt): share lazy component definitions () 2023-04-13 20:08:08 +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
Daniel Roe
d265abbad7 test: update bundle size snapshot 2023-04-11 16:05:25 +01: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
renovate[bot]
98d1c0e827
chore(deps): update all non-major dependencies (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 14:46:12 -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
Anthony Fu
11a9780c80
feat(nuxt): prompt to install devtools when it's enabled () 2023-04-07 08:34:11 -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
Daniel Roe
f1baa0355b style: lint 2023-04-06 13:12:20 +01:00
Anthony Fu
72ba53efbc
feat(test-utils): allow mounting single component for testing () 2023-04-06 05:07:22 -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
bf8fe61b33
test: use kb size snapshot () 2023-04-04 05:34:29 -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
5785908ec6 test: bump bundle size test by 100 bytes 2023-04-01 10:11:48 +01:00
Daniel Roe
8c2ca23c55 chore: fix fixture package.json files 2023-03-31 10:49:29 +01:00
Daniel Roe
434e2013e4 test: skip bundle size test in ecosystem-ci suites 2023-03-31 10:06:33 +01:00
renovate[bot]
eef031a97f
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-03-30 07:37:21 -07:00
renovate[bot]
24739b6a8c
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-03-28 06:17:30 -07:00
renovate[bot]
fc9c3803b8
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-03-22 17:45:39 -07:00
Julien Huang
4671294229
fix(nuxt): directly render server components () 2023-03-20 14:47:06 -07:00
Mehdi HosseinZade
3a971d0b36
fix(nuxt): observe slot element in custom nuxt-link () 2023-03-20 14:46:12 -07:00
Daniel Roe
ebd7dcd4ba
fix(nuxt): handle external navigation to api routes () 2023-03-20 17:15:01 +00:00
Daniel Roe
3055ce35b1
fix(nuxt): use h3 utilities to set response status/code () 2023-03-19 16:20:04 -07:00
Anthony Fu
ce575b49e3
fix(nuxt): ignore falsy modules () 2023-03-19 16:16:13 -07:00
Daniel Roe
e57c797f2b test: bump bundle size 2023-03-17 21:50:51 +00:00
Daniel Roe
4ca2dccd38
fix(nuxt): unset context after app is created () 2023-03-17 19:01:16 +00:00
Daniel Roe
5d9d92c4e0
test: remove sourcemaps from minimal test () 2023-03-16 00:34:22 -07:00
renovate[bot]
279088d5ab
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-03-15 16:11:17 -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
renovate[bot]
153433d9c6
chore(deps): update devdependency nitropack to ^2.3.0 (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-03-14 01:59:29 -07:00
Daniel Roe
472ee4f8b3
chore: refresh lockfile () 2023-03-13 13:20:45 -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
renovate[bot]
bba7a89728
chore(deps): update dependency h3 to ^1.6.0 (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-03-10 13:34:39 -08:00
renovate[bot]
1376da76da
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-03-10 08:46:34 -08:00
Harlan Wilton
c91e4d7933
feat(nuxt): add useHeadSafe and remove layer around head imports () 2023-03-10 00:01:21 -08:00
Daniel Roe
50f0ec6a21
test: close pages after use () 2023-03-09 05:54:46 -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
c2ab76d68e
perf(vite): mark more core functions as side-effect free () 2023-03-07 14:51:08 -08: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
Xin Du (Clark)
93c31cfd5b
chore: mark @nuxt/test-utils package as external group () 2023-03-03 02:58:15 -08:00
Lucie
0be8cda77a
fix(nuxt): prevent fallthrough attributes on custom NuxtLink () 2023-03-02 01:53:46 -08:00
Daniel Roe
d4a75240ac
feat(nuxt): add versions to runtime nuxtApp () 2023-03-01 07:08:23 -08:00
Anthony Fu
59918f569e
feat(nuxt): scan composables with star export () 2023-03-01 04:24:46 -08:00
renovate[bot]
0f4793616b
chore(deps): update all non-major dependencies to ^1.1.14 (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-28 02:26:11 -08:00
renovate[bot]
8bfc66d6f7
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-02-27 11:02:11 -08:00
Daniel Roe
f16cce8824
fix(nuxt): compatible route object for custom external routes () 2023-02-27 07:13:14 -08:00
renovate[bot]
7a4a416f3c
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-02-22 01:30:30 -08:00
renovate[bot]
a3713eb827
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-02-21 22:01:59 -08:00
pooya parsa
15b9386a39
chore: update nitropack and unjs dependencies ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-17 05:38:19 -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
renovate[bot]
e2fc6f267d
chore(deps): update dependency unenv to ^1.2.0 (main) ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-16 09:24:05 -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
Ayaka Rizumu
88b895a23a
chore(deps): update @vueuse/head dependencies to 1.0.26 () 2023-02-16 03:44:31 -08:00
Daniel Roe
71bcd9550f test: skip vnode warning on windows dev mode 2023-02-14 00:02:41 +00:00
Xin Du (Clark)
859fbd0add
fix(nitro): ensure ssr error statusCode is a number () 2023-02-13 22:55:29 +00: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
Daniel Roe
9a035a15c5
refactor(nuxt): within nuxt app, import directly from source file () 2023-02-08 22:26:41 -08:00
pooya parsa
9845467421
feat(nuxt): upgrade to nitropack 2.2 () 2023-02-09 07:02:07 +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
renovate[bot]
1dc0c0c1fc
chore(deps): update all non-major dependencies (main) ()
* chore(deps): update all non-major dependencies

* test: add `uncrypto` to snapshot

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-07 02:00:24 -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
23e5f980ea
fix(vite): ensure newly created pages do not return 404 ()
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2023-01-25 04:24:58 -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
Daniel Roe
eac787eb48 test: bump test timeout 2023-01-24 13:21:57 +00: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
renovate[bot]
7c1712013c
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>
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2023-01-20 16:17:31 +00:00
Daniel Roe
5e1881c20a
feat(nuxt): support server components with extracted payloads () 2023-01-20 12:10:58 +00:00
Daniel Roe
081dc3254f chore: update internal repo/issue links to usenuxt/nuxt 2023-01-19 19:37:07 +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
a68da6d6a7
chore: case police update () 2023-01-13 15:00:57 +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
Daniel Roe
5afcaca98f
feat(vite): upgrade to vite 4 () 2022-12-12 15:22:04 +00:00
renovate[bot]
54897adc43
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-11 21:54:54 +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
renovate[bot]
7f5f952911
chore(deps): update all non-major dependencies ()
* update tests for islands head regression

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-12-08 16:16:22 +01: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
renovate[bot]
9d81221486
chore(deps): update all non-major dependencies () 2022-11-15 18:36:57 +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
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
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
cda498b070
fix(nuxt): do not inline global styles in html response () 2022-11-03 20:17:43 +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
Julien Huang
bdb6e3298f
test: correct path in test () 2022-10-16 11:03:52 +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
Alex
6ef6eae2c7
fix(nuxt): don't inline styles for per-request ssr: false ()
Co-authored-by: Alex C <alex.canals@jkweb.ch>
2022-10-12 09:50:16 +01:00
Daniel Roe
5f003a9738
feat(nuxt): add ssr route rule to enable SPA mode () 2022-10-11 17:03:52 +01:00
Julien Huang
ee41bb6d5d
feat(nuxt): wrap #components client exports with createClientOnly ()
Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
2022-10-11 16:26:03 +01:00
Daniel Roe
385674494d
feat(nuxt): refresh override for data fetching composables () 2022-10-10 11:33:16 +01:00
Daniel Roe
829a550580
feat(pages): add validate hook for definePageMeta () 2022-10-10 11:18:20 +01:00
mmis1000
c404cb1be4
fix(nuxt): page hydration and double load ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-10-08 16:18:57 +02:00
Julien Huang
e6ca07bdc0
fix(nuxt): remove fragment from createClientOnly ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
2022-10-03 16:14:55 +02:00
Daniel Roe
a3fd4193ce
fix(nuxt): allow auto-import component with same filename () 2022-10-03 15:38:43 +02:00
Daniel Roe
1c26e07141
feat(nuxt): support redirect within page metadata () 2022-09-22 15:54:34 +02:00
Daniel Roe
230af9c186
fix(nuxi): include workspaceDir in tsconfig include () 2022-09-22 15:50:40 +02:00
Daniel Roe
f8a23564c3
fix(nuxt): don't treeshake client-only fallback templates () 2022-09-20 08:24:45 +02:00
Julien Huang
c4fe8525ef
fix(nuxt): add missing process.client for early redirect in navigateTo () 2022-09-19 10:54:35 +02:00
pooya parsa
1ebdef77a6
fix(nuxt): keep state in the initial state instead of extracting it () 2022-09-16 12:49:00 +02:00
pooya parsa
5973df1e96
chore: update examples to ^3.0.0-rc.10 and use global defineNuxtConfig () 2022-09-14 19:26:43 +02:00
Pooya Parsa
fd982185ee test: skip useAsyncData for windows due to ci unstability 2022-09-14 17:11:00 +02:00
Alex Liu
addcb5cd47
feat(nuxt): support prefetching <nuxt-link> ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-13 22:20:23 +02:00
Daniel Roe
9382b42d7b
fix(vite): don't fail builds for virtual modules that don't support inlining () 2022-09-12 17:14:11 +02:00
Daniel Roe
13dc0b94c4
feat(nuxt): allow exposing type augmentations from extends layers () 2022-09-12 15:41:15 +02:00
Daniel Roe
563cf7c1c9
fix(nuxt): use more specific FetchError for useFetch errors () 2022-09-12 11:23:19 +02:00
Pooya Parsa
068e127551 test: disable payload tests for windows
(might be because of unstability)
2022-09-12 10:56:04 +02:00
Pooya Parsa
fe5b1c21ae test: disable payload test for dev for now
only windows has been failed 4 times on windows/dev and not used.
2022-09-12 10:50:56 +02:00
pooya parsa
888bd7c145
feat(nuxt): payload rendering support ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-09-10 15:57:16 +02:00
Daniel Roe
be77d477d0
fix(webpack): don't parse styles for composable keys () 2022-09-08 10:55:30 +02:00
Daniel Roe
9c3bef4a01
fix(nuxt): allow abortMiddleware to receive a nuxt error or error options () 2022-09-08 10:52:00 +02:00
renovate[bot]
849b8cb702
chore(deps): update all non-major dependencies ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-09-08 10:45:39 +02:00
Daniel Roe
1c07914608
test: fix dynamic dev paths () 2022-09-07 12:41:25 +02:00
Daniel Roe
7ef028d4f9
test: use semantic runIf and skipIf helpers () 2022-09-07 11:55:03 +02:00
Vl4dimyr
fc2be9ed42
feat(nuxt): add immediate option for useAsyncData and useFetch ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-07 11:47:40 +02:00
Daniel Roe
577a7b681e
perf(vite): remove duplicate css links from rendered page when inlined () 2022-09-07 10:41:08 +02:00
Daniel Roe
1ca294e125
fix(nuxt): don't override payload error if it is present () 2022-09-06 18:21:53 +02:00
Daniel Roe
de62520990
feat(nuxt, vite): inline global and component styles in server response ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-03 15:03:30 +02:00
Harlan Wilton
fe3fc34b12
fix(head): case http-equiv correctly () 2022-09-03 14:31:09 +02:00
pooya parsa
68d12b468b
feat: allow extending with theme config () 2022-09-01 12:05:02 +02:00
renovate[bot]
e38e1de740
refactor: apply lints from @nuxtjs/eslint-config-typescript v11 ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-31 20:34:17 +02:00
Daniel Roe
b90d286631
feat(nuxt): add setPageLayout utility () ()
Co-authored-by: HomWang <516310460@qq.com>
2022-08-31 10:02:48 +02:00
Daniel Roe
a520185442
perf(nuxt): don't prefetch all global components () 2022-08-30 16:41:11 +02:00
pooya parsa
5a17458af5
fix(nuxt): use shared state for asyncData ()
Co-authored-by: Ohb00 <43827372+OhB00@users.noreply.github.com>
2022-08-30 12:34:09 +02:00
Daniel Roe
0087e7bbe0
docs: add information on how to use options api asyncData () 2022-08-29 12:02:24 +02:00
Anthony Fu
9db2229f70
refactor: enable strict type checking everywhere () 2022-08-26 17:47:29 +02:00
Alexander Lichter
a4dfe232f0
feat(nuxt): navigateTo supports external redirects ()
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 ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-23 21:12:22 +02:00
Daniel Roe
cfb7e59171
feat(nuxt): add warning in dev mode if layouts/pages do not have a single root node () 2022-08-23 12:25:48 +02:00
Julien Huang
c688e1898c
fix(nuxt): pass params to client-only slot () 2022-08-17 17:26:51 +02:00
pooya parsa
94f76ea930
feat(nuxt): app.config with hmr and reactivity support ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-17 17:23:13 +02:00
Daniel Roe
405629dc35
fix(nuxt): use vue-devtools-stub to mock @vue/devtools-api for both cjs + esm () 2022-08-17 16:44:36 +02:00
Daniel Roe
c9837dca48
test: update type assertion tests to strict equality () 2022-08-17 15:43:02 +02:00
Anthony Fu
69c281f384
fix(nuxt): fallback to static error page on server error ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-17 11:14:00 +02:00
Anthony Fu
f350a70775
refactor(nuxt): enable strict type checking ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-12 19:47:58 +02:00
Daniel Roe
408febada4
refactor(nuxt)!: remove null handling for titleTemplate () 2022-08-10 17:46:46 +02:00
Daniel Roe
fc1d7d9507
fix(schema): cleanup meta tags and deduplicate charset and viewport () 2022-08-07 11:53:53 +02:00
Daniel Roe
60656dfa2c
fix(nuxt): remove side-effect imports from page metadata () 2022-08-05 18:35:38 +02:00
Daniel Roe
07fa104b46
test: add key matching test for keyed composables () 2022-08-05 13:02:20 +02:00
Daniel Roe
746d553249
fix(nuxt): resolve plugins and middleware to their full path () 2022-08-04 17:15:42 +02:00
Julien Huang
2cdaf8065c
feat(nuxt): remove wrapper from client only components ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-02 17:05:02 +02:00
Harlan Wilton
622c976cec
fix(nuxt): render head scripts that use body: true ()
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 () 2022-08-02 13:20:44 +02:00
Daniel Roe
8b5159f3c0
fix(webpack): output .mjs to use crossorigin preloads () 2022-07-29 14:50:02 +02:00
Daniel Roe
90d1825020
test: wrap components with <div> () 2022-07-29 11:41:01 +02:00
Daniel Roe
4e2667fcb7
feat(nuxt): add support for components/global ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-27 15:05:34 +02:00
David Tai
3a822c7177
refactor(nuxt): enhance useFetch and useLazyFetch request type ()
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 () 2022-07-25 14:05:58 +02:00
Daniel Roe
c7d072c495
fix(vite): ignore baseurl when pruning manifest () 2022-07-25 11:52:21 +02:00
Anthony Fu
1a862526fe
perf(nuxt): transform #imports to improve tree-shaking () 2022-07-21 16:27:23 +02:00
Daniel Roe
8f7b9f904e
fix(pages): ignore expression delimiters within quotes ()
* 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
pooya parsa
2e85cd0252
refactor(nuxt): add treeshakeClientOnly experimental flag ()
* refactor(nuxt): add `treeshakeClientOnly` experimental flag

* test: enable flag for fixture
2022-07-17 15:13:04 +02:00
Daniel Roe
df04a665ce
perf(nuxt): tree-shake client-only components from ssr bundle ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-14 19:46:12 +02:00
Daniel Roe
23546a270c
feat(nuxt): automatically generate unique keys for keyed composables ()
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 () 2022-07-07 18:04:38 +02:00
Daniel Roe
8831e4a4b9
fix(vite): don't terminate with escaped delimiters () 2022-06-10 17:17:11 +02:00
Daniel Roe
846be5cee2
fix(nuxt): transform extends layers within node_modules () 2022-06-10 15:33:16 +02:00
Anthony Fu
a802b87ac7
feat(nuxt): support auto imports within <template> () 2022-06-08 22:09:31 +02:00
Daniel Roe
cad4edd5a3
fix(nuxt): respect baseurl when redirecting (and universal router) ()
* 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 ()
* 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
Daniel Roe
f74a523f13
fix(nuxt): use router.resolve to resolve initial url () 2022-05-03 11:31:58 +02:00
Daniel Roe
4826918ed0
fix(nuxt): process middleware after plugins () 2022-05-02 12:00:08 +02:00
Alex Liu
eb903bd66e
fix(nuxt3): improve error types for useAsyncData and useFetch ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-29 20:42:22 +02:00
pooya parsa
4712e99411
refactor!: rename nuxt3 to nuxt () 2022-04-20 10:52:39 +02:00
Daniel Roe
e0b2a3bfe4
chore: use node: prefix for built-in modules () 2022-04-15 17:19:05 +02:00
Daniel Roe
3e7d6dafa1
test(nuxt3): add test case for computed head () 2022-04-14 17:27:31 +02:00
Daniel Roe
ee93659147
feat(nuxt3): allow providing a ref as default value () 2022-04-13 19:41:41 +02:00
pooya parsa
f91f987401
chore: move bridge to nuxt/bridge () 2022-04-13 13:43:42 +02:00
Daniel Roe
e43ba6ecd2
fix(nuxt3): render nuxt custom error page ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-04-12 22:37:32 +02:00
renovate[bot]
aa26c6cdb1
chore(deps): update all non-major dependencies ()
* chore(deps): update all non-major dependencies

* upda lockfile

* test: disable bridge test

* increase windows test timeout

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-04-12 20:36:39 +02:00
Daniel Roe
1091d456a8
feat(nuxt, bridge): support titleTemplate, viewport and charset for useHead () 2022-04-11 11:03:31 +02:00
pooya parsa
2cc3aaba5f
chore(ci): enable testing fixtures in development ()
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-07 21:15:30 +02:00
pooya parsa
11626eea4f
feat!: migrate to nitropack ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-07 13:28:04 +02:00
Anthony Fu
1ffcc741dc
test: await client errors () 2022-04-07 02:39:44 +02:00
Alex Liu
b7dc0931c4
feat(nuxt3): let useAsyncData() return value that error can defined type by generics () 2022-04-06 18:02:45 +02:00
Anthony Fu
4ba0604522
test: enable browser tests ()
* test: enable browser tests

* chore: refactor
2022-04-05 20:38:23 +02:00
Daniel Roe
e90b8c28d1
refactor(nuxt3,bridge)!: rename useMeta to useHead () 2022-04-05 16:02:29 +02:00
Kevin Marrec
dda0cebc76
feat(nuxt3): extends support for app/router.options () 2022-04-04 10:23:11 +02:00
Daniel Roe
ade3378a00
refactor(bridge): align bridge with vite and inline systemjs polyfill in entry () 2022-04-01 15:22:22 +02:00
Anthony Fu
4c77c88325
feat: support async plugins and middlewares () 2022-04-01 11:55:23 +02:00
Daniel Roe
9e67d58005
refactor(bridge): provide vue2 compat with a transform plugin () 2022-03-25 13:18:43 +01:00
Kevin Marrec
e34ed887f2
fix(nuxt3): use path for uniqueness of routes when resolving () 2022-03-25 12:55:05 +01:00
Kevin Marrec
cd8dbdc01c
test: add test suites for extends features () 2022-03-24 13:33:42 +01:00
Daniel Roe
a0c4d6e7e3
test: extract dynamic paths test from within other test! () 2022-03-23 15:57:35 +01:00
Kevin Marrec
7c0d2e176c
feat(nuxt3): extends support for pages & middleware directories ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-22 19:12:54 +01:00
Daniel Roe
7458dd1aa6
fix(nuxt3): use shared module for dynamic paths ()
* test: add tests for dynamic paths + relative assets

Co-authored-by: Anthony Fu <hi@antfu.me>

* fix: rework client config and use shared module for dynamic paths

* resolves webpack public path regression

* refactor: use more similar names to nitro equivalent

* fix: align config exports

* refactor: remove `__` prefix within dynamic paths module

* refactor: use '#_config' to indicate internal alias

* Update packages/nuxt3/src/core/templates.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>

* refactor: use `#_config` alias and rename to `paths.mjs`

Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-22 16:51:26 +01:00
Anthony Fu
f69126e8f4
feat: support reactivity transform ()
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-17 23:17:59 +01:00
Daniel Roe
e3f0b31925
refactor: add some more explicit types () 2022-03-16 23:44:22 +01:00
François Risoud
99705f77c0
feat(router): add proper server side redirection to navigateTo ()
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-16 22:39:47 +01:00
pooya parsa
20f31712c1
feat(nuxt3): auto generate runtime config type declarations ()
Co-authored-by: Rodrigo Mesquita <rodrigoriome@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Rodrigo Mesquita <30835404+rrmesquita@users.noreply.github.com>
2022-03-09 14:41:24 +01:00
Anthony Fu
40d325e5c5
test: add more tests () 2022-03-08 19:03:21 +01:00
Daniel Roe
856c01ab42
feat(bridge): auto-inject based on provide key from plugins () 2022-03-07 16:08:09 +01:00
Daniel Roe
33ffd8be0a
fix(schema): allow untyped keys in nuxt config () 2022-03-07 11:37:01 +01:00
Anthony Fu
4ff1a954b3
test: add more tests () 2022-02-25 21:14:53 +01:00
Daniel Roe
73ba30fb69
refactor(schema,webpack)!: split out webpack and postcss build options ()
* refactor: split out webpack and postcss build options

* feat(schema): set nuxt3 builder in config

* fix(schema): default postcss config file to false

* chore: update lockfile

* style: remove unused imports

* refactor(webpack): remove (previously disabled) babel config

* refactor: move shared vite options into schema

* fix(schema): omit __NUXT_BASE__ from defaults

* fix: move appDir-dependent options back to vite

* refactor: split out virtual modules

* refactor: extract compile/createDevMiddleware

* refactor: further improvements

* chore: remove `@nuxt/webpack-builder` dependency

* chore: update lockfile

* refactor: move `builder` option to top level

* fix: bind close to watcher instance

* chore: update lockfile

* fix: create portal between postcss & build.postcss.postcssOptions

* fix: remove duplicate

* fix: revert

* fix: use `postcss` directly

* fix: import builder from rootDir

* chore: dedupe webpack install

* test: update fixture to use `builder`

* fix: bind class in pify

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-25 20:11:01 +01:00
Daniel Roe
dbab979a2e
feat(nuxt3): add universal routing utilities () 2022-02-21 14:03:42 +01:00
Daniel Roe
16e2a54528
test: re-enable type testing () 2022-02-18 23:37:28 +01:00
pooya parsa
12a95ad86c
test: rework tests using @nuxt/test-utils () 2022-02-18 19:14:57 +01:00
Daniel Roe
8adff2edf7
fix(nuxt3): generate imports for components with named exports correctly () 2022-02-17 15:23:55 +01:00
pooya parsa
77aeaa3288
fix(nuxt3)!: custom response type for useFetch using first generic () 2022-02-16 21:50:19 +01:00
Anthony Fu
16c2b6113a
chore: use @nuxt/test-utils to import test utils () 2022-02-16 19:07:33 +01:00
Daniel Roe
42373e060d
fix: clean up some type issues and add type test suite () 2022-02-15 10:50:11 +01:00
Daniel Roe
9734856fb0
fix(nuxt3): return render function for <Head> () 2022-02-14 11:46:27 +01:00
pooya parsa
c53c7360b7
feat: @nuxt/test-utils ()
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-02-11 14:22:58 +01:00
Daniel Roe
614e87e9f0
feat(nitro): add support for lambda v2 payload format ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-07 13:25:05 +01:00
Anthony Fu
a787c2f04c
chore: migrate to vitest from mocha () 2022-01-13 18:54:33 +01:00
renovate[bot]
ca8b97d69b
chore(deps): update devdependency execa to v6 ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-18 19:12:19 +01:00
Tobias Diez
18924da869
chore(bridge): Improve typing of defineNuxtPlugin function () 2021-11-18 12:08:58 +01:00
pooya parsa
850ef69a87
fix(bridge): disable legacy fetch polyfills () 2021-11-11 17:46:10 +01:00
Anthony Fu
fd043eb6e4
chore: explicitly include std-env as dep for bridge fixture () 2021-11-11 11:43:14 +01:00
Xin Du (Clark)
6ec518ff24
chore(lint): enable eslint on mjs () 2021-11-10 13:06:22 +01:00
Anthony Fu
91b428eeea
fix(bridge): enable vite build by default () 2021-11-05 09:51:15 +01:00
Anthony Fu
85f39858e5
fix(vite, bridge): avoid vite resolving tsconfig.json () 2021-11-04 09:13:29 +01:00
Anthony Fu
495aeffd74
docs: use nuxi everywhere () 2021-10-29 12:38:22 +02:00
Anthony Fu
46f858dd82
chore: move nuxt-vite to bridge ()
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-26 14:59:05 +02:00
Francisco Buceta
54549cfc61
fix(nitro): omit /index from generated api urls () 2021-10-22 19:04:02 +02:00
pooya parsa
666b7f1ba8
feat: useState composable () 2021-10-11 19:48:03 +02:00
Daniel Roe
accbe6445c
chore: add fixtures to monorepo workspaces ()
* chore: add fixtures to monorepo workspaces

* chore: dedupe lockfile
2021-10-07 11:19:41 +02:00
Daniel Roe
11490cdd7d
feat(bridge): add support for <script setup> () 2021-10-07 10:31:29 +02:00
Daniel Roe
a07b67ce57
feat(bridge): use useMeta in bridge projects () 2021-10-06 14:37:45 +02:00
pooya parsa
dd73a8bcad
feat: export defineNuxtConfig from nuxt3 and @nuxt/bridge () 2021-10-06 14:31:52 +02:00
pooya parsa
45b4946026
feat(nuxt3, bridge): useRuntimeConfig ()
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-10-02 22:30:20 +02:00
Daniel Roe
b712de9aa2
feat(bridge): enable automatic global imports for nuxt2 () 2021-10-02 18:59:32 +02:00
pooya parsa
6e496373f3
feat: use native esm for all packages () 2021-10-02 18:01:17 +02:00
Daniel Roe
71e71d1327
feat(bridge, nuxt3): expose equivalent useRoute and useRouter com… () 2021-10-02 14:32:28 +02:00
Daniel Roe
ad9d2d1906
feat(bridge): add support for legacy composition api helpers () 2021-09-29 12:38:44 +02:00
Daniel Roe
b8b32ac32d
chore: use miniflare for testing repo and recommend to users () 2021-09-28 13:30:54 +02:00
pooya parsa
6329a681e4
refactor: migrate from upath to pathe () 2021-09-27 14:49:36 +02:00
Pooya Parsa
201236195d test(cloudflare): provide TextEncoder and TextDecoder
2021-09-22 22:31:58 +02:00
Pooya Parsa
a0d2caf003 test: early return if build failed 2021-09-22 22:01:25 +02:00
pooya parsa
fc019b8816
feat(bridge): enable composition-api () 2021-09-22 17:34:11 +02:00
pooya parsa
62647844b5
chore: update to unbuild 0.5.x () 2021-09-21 18:49:36 +02:00
renovate[bot]
758bf3ef6f
chore(deps): update all non-major dependencies () 2021-09-20 20:59:49 +02:00
renovate[bot]
9f7438afb1
chore: update all non-major dependencies and add node to nitro external conditions ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-05 23:54:12 +02:00
pooya parsa
44458fcbbb
feat: nuxt bridge () 2021-09-05 23:21:33 +02:00
pooya parsa
084b4e2123
refactor: rename nuxt-cli to nuxi () 2021-08-10 19:37:03 +02:00
Daniel Roe
72ae30de08
chore: improve ci workflow ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-09 19:30:25 +02:00
Daniel Roe
d841673e9c
chore: upgrade to yarn v3 ()
[skip-release]
2021-07-26 22:14:31 +02:00
pooya parsa
be255772b2
feat: support ssr: false ()
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-07-21 22:05:22 +02:00
pooya parsa
6318438415
feat(nitro, vite): use native module ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 11:38:06 +02:00
Daniel Roe
0a3041cdf9
fix: allow use of nuxt3 in non-wsl windows environment () 2021-07-12 12:54:24 +02:00
Pooya Parsa
838eae4a57 chore: apply latest eslint rules
closes 
2021-05-24 13:14:10 +02:00
renovate[bot]
82b585dbb0
chore(deps): lock file maintenance and fix lint issues () 2021-05-20 12:58:30 +02:00
pooya parsa
5aa59c2ca5
test: add nitro preset tests (v2 & v3) () 2021-04-23 21:52:32 +02:00