Commit Graph

548 Commits

Author SHA1 Message Date
Dizzy
d6102de08f
fix: remove redundant call to generateApp (#3426) 2022-02-28 15:49:41 +01:00
Daniel Roe
52d22feaea
fix(nuxt3): share scanned components with loader (#3396)
* fix(nuxt3): share scanned components with loader

* refactor: remove `src` type from input

* fix: remove old `src: ''` option

* fix: use shared context for extending components too

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2022-02-28 11:07:20 +01:00
renovate[bot]
9b19b9f366
chore(deps): update all non-major dependencies (#3400)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 19:38:00 +00:00
Daniel Roe
73ba30fb69
refactor(schema,webpack)!: split out webpack and postcss build options (#2812)
* 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
2b3dbed594
fix(nuxt3): only warn within error handling routine (#3394) 2022-02-25 17:33:27 +01:00
Daniel Roe
e45a780714
fix(vite,webpack): disable async entrypoint by default (#3375)
* fix(vite): don't use async entry

* fix: use async entry when built

* refactor: default to sync entry, with option to enable async

* refactor: move to experimental.asyncEntry

* Update packages/webpack/src/presets/base.ts

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

* Update packages/vite/src/vite.ts

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

* style: remove double space

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-25 13:42:34 +01:00
renovate[bot]
5c1f2fad83
chore(deps): update all non-major dependencies (#3347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-25 12:39:10 +01:00
Daniel Roe
d007d02356
fix: only warn about error handlers on client-side (#3345) 2022-02-25 12:04:58 +01:00
Daniel Roe
ac63401700
fix(nuxt3): don't add superfluous templates (#3366) 2022-02-25 11:16:24 +01:00
Daniel Roe
bb31df9944
fix(nuxt3): respect dirs as objects (#3364) 2022-02-24 17:20:49 +01:00
Daniel Roe
dbab979a2e
feat(nuxt3): add universal routing utilities (#3274) 2022-02-21 14:03:42 +01:00
Daniel Roe
70542a3af7
feat(nuxt3): expose /app export paths (#3323) 2022-02-18 19:26:43 +01:00
Daniel Roe
87eb7d0d39
perf!(nuxt3): disable global components by default (#3305) 2022-02-18 10:37:11 +01:00
Daniel Roe
56aabd606d
fix(nuxt3,bridge): correctly reference router from client-side helper (#3281) 2022-02-17 18:11:21 +01:00
Daniel Roe
8adff2edf7
fix(nuxt3): generate imports for components with named exports correctly (#3288) 2022-02-17 15:23:55 +01:00
Daniel Roe
65d16a58c0
chore: reverse target/from in eslint rule (#3280) 2022-02-17 12:01:24 +00:00
Anthony Fu
467ab693b9
feat: shared logger and silent test logs (#3259)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-16 22:34:32 +01:00
Dizzy
ad52b795e2
fix: apply subsequent meta changes (#3271) 2022-02-16 22:34:06 +01:00
pooya parsa
77aeaa3288
fix(nuxt3)!: custom response type for useFetch using first generic (#3268) 2022-02-16 21:50:19 +01:00
Daniel Roe
3fccbfa252
fix(nuxt3): update meta return type to bodyScriptsPrepend (#3257) 2022-02-16 18:56:30 +01:00
renovate[bot]
cc9d525650
chore(deps): update all non-major dependencies (#3204)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 10:53:20 +01:00
Daniel Roe
3c563fa48f
feat(bridge): support addRouteMiddleware, navigateTo and abortNavigation (#3193) 2022-02-15 10:51:19 +01:00
Daniel Roe
42373e060d
fix: clean up some type issues and add type test suite (#3199) 2022-02-15 10:50:11 +01:00
Daniel Roe
ef69e746d2
fix(nuxt3): prevent removing and re-adding tags before mount (#3212)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-15 10:43:17 +01:00
Daniel Roe
3589a2d55f
fix(nuxt3): return error page on blocked initial navigation (#3201) 2022-02-14 15:18:07 +01:00
Daniel Roe
9734856fb0
fix(nuxt3): return render function for <Head> (#3213) 2022-02-14 11:46:27 +01:00
Daniel Roe
408a944ffd
chore(nuxt3): add implicit fs-extra dependency (#3192) 2022-02-11 12:47:08 +01:00
renovate[bot]
7701c125ea
chore(deps): update all non-major dependencies (#3176)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-11 10:19:53 +01:00
Daniel Roe
e727bb4192
fix(nuxt3): re-enable tree-shaking definePageMeta (#3180) 2022-02-11 09:59:52 +01:00
pooya parsa
aece3518b5
feat(nuxt3): experimental nitropack support (#3160) 2022-02-10 18:29:59 +01:00
Anthony Fu
b2438917b9
perf(vite): bypass unchanged plugin transform (#3150) 2022-02-10 10:30:34 +01:00
Anthony Fu
cb663b0285
chore(vite): unifiy vite plugin naming (#3151) 2022-02-10 10:29:49 +01:00
Daniel Roe
7825e2aa12
feat(nuxt3,bridge): add automatic schema augmentation declaration (#3096)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-08 20:09:44 +01:00
Daniel Roe
ba522b2034
fix(nuxt3): trigger template regeneration (and reset import list) when auto-imports update (#3127) 2022-02-08 20:09:24 +01:00
Daniel Roe
dabb72ed7c
fix(nuxt3): remove lookbehind for safari support (#3115) 2022-02-08 00:42:39 +01:00
pooya parsa
03d5fdde2d
feat(kit)!: expose resolvePath (#3110) 2022-02-07 22:00:20 +01:00
renovate[bot]
a1b2d09438
chore(deps): update all non-major dependencies (#3097)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 21:50:53 +01:00
pooya parsa
790a54897a
feat!(nuxt3): extends support for components/ directory (#3108)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2022-02-07 21:48:25 +01:00
Daniel Roe
29171bd105
fix: sanitize import filenames in generated imports (#2216) 2022-02-07 14:45:47 +01:00
Daniel Roe
b3e9cf6fd6
fix(nuxt3)!: key routes by interpolated path (#2976) 2022-02-07 12:32:04 +01:00
renovate[bot]
00ba607ca2
chore(deps): update all non-major dependencies (#3066)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 11:22:43 +01:00
Daniel Roe
c1148d4d77
refactor: write declarations to <buildDir>/types (#3067)
* refactor: write declarations to `<buildDir>/types`

* fix: update relative imports
2022-02-07 11:20:01 +01:00
Daniel Roe
b91150d67c
docs: add keepalive docs (#3090) 2022-02-07 11:17:28 +01:00
renovate[bot]
09dc06e138
chore(deps): update all non-major dependencies (#3013)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-03 11:21:51 +01:00
Daniel Roe
f867841327
fix(nuxt3): remove existing globals from auto-imports (#3035) 2022-02-03 11:21:35 +01:00
Daniel Roe
083f90b719
refactor: extract <NuxtLayout> from <NuxtPage> (#3011) 2022-01-31 19:58:19 +01:00
Daniel Roe
8ea6b652b9
fix(nuxt3): don't double-escape extensions (#2953) 2022-01-27 17:02:25 +01:00
Daniel Roe
d20b672546
fix(nuxt3): hotfix for missing components declaration (#2949) 2022-01-27 13:46:28 +01:00
Daniel Roe
965f2abaee
feat(nuxt3): middleware type generation improvements (#2945) 2022-01-27 12:13:32 +01:00
Daniel Roe
00e8a6e9d4
fix(nuxt3): add app:suspense:resolve hooks (#2937) 2022-01-26 18:24:54 +01:00
Daniel Roe
b449d0bfb9
test(nuxt3): fix exclude test (#2932) 2022-01-26 14:49:06 +01:00
renovate[bot]
0affa39b62
chore(deps): update all non-major dependencies (#2912)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-01-26 12:57:33 +01:00
Daniel Roe
944464781d
feat(nuxt3): make layout and other page meta reactive (#2926) 2022-01-26 12:56:24 +01:00
pooya parsa
7a1cf622bc
fix(nuxt3): add built-in modules last (#2911) 2022-01-25 17:45:00 +01:00
renovate[bot]
b0a56ad807
chore(deps): update all non-major dependencies (#2902)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-25 15:51:19 +01:00
Daniel Roe
4a5937764c
feat(nuxt3): add support for <KeepAlive> (#2904) 2022-01-25 15:32:09 +01:00
renovate[bot]
538b4ab98d
chore(deps): update all non-major dependencies (#2895)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-25 13:29:23 +01:00
Daniel Roe
dccc0c9c6f
feat(nuxt3): add middleware via route meta (#2858) 2022-01-25 13:29:11 +01:00
Daniel Roe
29fa0c991b
feat(nuxt3)!: support layout transitions (#2861)
* feat(nuxt3): support layout transitions

* docs: update
2022-01-24 18:10:42 +01:00
Daniel Roe
81ee59ce0c
fix(nuxt3): don't restrict nitro/nuxt3 runtime components (#2885) 2022-01-24 15:32:08 +01:00
Daniel Roe
03cc1913a3
fix(nuxi,nuxt3,bridge): generate all templates with nuxi prepare (#2409) 2022-01-24 14:28:47 +01:00
Daniel Roe
7553849371
feat(nuxt3): add import protection patterns (#2834) 2022-01-24 14:25:23 +01:00
renovate[bot]
d5cbe09ced
chore(deps): update dependency globby to v13 (#2881)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-24 14:21:52 +01:00
renovate[bot]
0b0e56ae4f
chore(deps): update all non-major dependencies (#2818)
* chore(deps): update all non-major dependencies

* feat: add isShallow auto import

https://github.com/vuejs/core/commit/9fda941

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-01-24 13:38:03 +01:00
Daniel Roe
83a959a67b
fix(nuxt3): allow customising page keys (#2859) 2022-01-24 11:35:28 +01:00
Daniel Roe
ae34f470a0
fix(nuxt3): explicitly declare type exports (#2850) 2022-01-21 12:42:41 +01:00
Daniel Roe
d0d8e8311c
fix(nuxt3): normalize page paths ( for windows support) (#2825) 2022-01-21 10:54:11 +01:00
Daniel Roe
cd42f62fb9
fix(nuxt3): export composable types (#2828) 2022-01-21 10:51:19 +01:00
Daniel Roe
c1a68012ca
fix(nuxt3): add macro transform to non-sfcs (#2804) 2022-01-19 19:11:31 +01:00
Daniel Roe
f219f635ad
feat(nuxt3): allow disabling vue type shims (#2773) 2022-01-19 19:10:38 +01:00
renovate[bot]
74ce059d6f
chore(deps): update all non-major dependencies (#2781)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-19 19:09:22 +01:00
Daniel Roe
95d8205cc3
fix(nuxt3): only treeshake macro exports when building (#2809) 2022-01-19 19:07:54 +01:00
renovate[bot]
1ca9424910
chore(deps): update dependency h3 to ^0.3.9 (#2776)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-18 18:04:48 +01:00
renovate[bot]
c80870ad8c
chore(deps): update all non-major dependencies (#2767)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-18 17:59:31 +01:00
Daniel Roe
d07d572263
feat: improve base url options (#2655) 2022-01-18 17:59:14 +01:00
Daniel Roe
b38e394dfe
fix(nuxt3): import top-level files and subdirectory indices (#2774) 2022-01-18 17:43:41 +01:00
Daniel Roe
0af01668c1
feat(nuxt3): pass nuxtApp to head() (#2765) 2022-01-17 21:52:24 +01:00
Daniel Roe
e9d73f572f
fix(nuxt3): ignore comments for testing cjs context (#2764) 2022-01-17 21:50:17 +01:00
Daniel Roe
93ef422b5d
feat(nuxt3): add support for definePageMeta macro (#2678) 2022-01-17 19:27:23 +01:00
renovate[bot]
0e984fe496
chore(deps): update all non-major dependencies (#2756)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-17 18:25:38 +01:00
renovate[bot]
91032cdd64
chore(deps): update all non-major dependencies (#2717)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-17 11:56:28 +01:00
renovate[bot]
4de167e246
chore(deps): update dependency globby to v12 (#2659) 2022-01-13 19:21:49 +01:00
Anthony Fu
a787c2f04c
chore: migrate to vitest from mocha (#2694) 2022-01-13 18:54:33 +01:00
renovate[bot]
303b5bd220
chore(deps): update all non-major dependencies (#2707)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-13 18:21:05 +01:00
renovate[bot]
47cac4c597
chore(deps): update all non-major dependencies (#2637)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 18:45:11 +01:00
Daniel Roe
7479eacaac
fix(nuxt3): handle legacy asyncData (options api) as ref (#2668) 2022-01-11 18:41:55 +01:00
renovate[bot]
c8b02972d0
chore(deps): update all non-major dependencies (#2527)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 19:37:56 +01:00
Anthony Fu
11becef735
refactor: update internal modules signature(#2610) 2022-01-05 19:09:53 +01:00
Vladyslav Poshvaniuk
1e98259368
fix(nuxt3): remove undefined headers in useRequestHeaders (#2526)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-12-23 23:33:10 +01:00
Marsel Shayhin (Phoenix Apps)
04b6466d37
fix(nuxt3): change entry to use asynchronous import (#2223)
Co-authored-by: Marsel Shayhin <phoenix.apps@yahoo.com>
2021-12-23 23:20:54 +01:00
renovate[bot]
b554c46ab2
chore(deps): update all non-major dependencies (#2510)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-23 13:30:50 +01:00
renovate[bot]
05da4c2ef5
chore(deps): update all non-major dependencies (#2496)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-22 11:59:44 +01:00
Pooya Parsa
b41a1d2d18 fix(nuxt3): properly pass inline options to installModule 2021-12-21 22:26:03 +01:00
pooya parsa
804b323010
fix(nuxt3): properly pass inline options to installModule (#2489) 2021-12-21 17:18:14 +01:00
Daniel Roe
e674d0f60d
feat(nuxt3, bridge): add vue:setup hook (#2408) 2021-12-21 15:44:35 +01:00
renovate[bot]
4d2de05e43
chore(deps): update dependency hookable to ^5.1.1 (#2487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-21 15:29:38 +01:00
Yasser Lahbibi
ca9761df9e
feat(auto-import): allow explicit transform exclusion patterns (#2183)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-12-21 15:28:45 +01:00
renovate[bot]
2d3f61d478
chore(deps): update all non-major dependencies (#2461)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-21 15:27:15 +01:00
pooya parsa
045b9edb5d
feat(kit, schema)!: finalize nuxt 3 module spec and utils (#2275) 2021-12-21 14:57:26 +01:00
Daniel Roe
670a12caaa
fix(nuxt3): don't mutate options when unsetting cookie (#2481) 2021-12-21 13:02:55 +01:00