Commit Graph

440 Commits

Author SHA1 Message Date
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
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
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
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 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
Daniel Roe 4a5937764c
feat(nuxt3): add support for `<KeepAlive>` (#2904) 2022-01-25 15:32:09 +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] 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
Daniel Roe 95d8205cc3
fix(nuxt3): only treeshake macro exports when building (#2809) 2022-01-19 19:07:54 +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] 4de167e246
chore(deps): update dependency globby to v12 (#2659) 2022-01-13 19:21:49 +01:00
Daniel Roe 7479eacaac
fix(nuxt3): handle legacy `asyncData` (options api) as `ref` (#2668) 2022-01-11 18:41:55 +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
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
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
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
Daniel Roe 5ab18162dd
feat(nuxt3, bridge): `useReqHeaders` composable (#2173)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-12-20 17:27:36 +01:00
Daniel Roe a1a2d2f92b
refactor(nitro): expose `writeTypes` and call this within `builder:generateApp` (#2413) 2021-12-20 11:39:19 +01:00
Daniel Roe 639e49be27
refactor(nuxt3): rename `<NuxtChild>` to `<NuxtNestedPage>` (#2432) 2021-12-20 11:37:58 +01:00
Daniel Roe f668d7457f
fix(nuxt3): define route in plugin rather than composable (#2443) 2021-12-20 11:37:00 +01:00
Daniel Roe 3eed5cb193
fix(nuxt3): ignore tests within components directory (#2347) 2021-12-17 10:30:36 +01:00
Daniel Roe d3e27874f5
fix(nuxt3): add `imports.d.ts` to `nuxt.d.ts` (#2399) 2021-12-17 10:25:40 +01:00
Daniel Roe 6c1cb11b95
feat(nuxt): add wrapped `useRoute` and `useRouter` composables (#2406) 2021-12-17 10:15:03 +01:00
Daniel Roe 2cf8c45823
fix(nuxt3): import computed from `vue` to preserve reactivity (#2352) 2021-12-14 14:29:57 +01:00
Daniel Roe c87c692ddb
fix(nuxt3): don't mock server-only properties on client-side (#2376) 2021-12-14 14:28:43 +01:00
Daniel Roe fb33033f45
feat(nuxt3): add global type definitions for built-in components (#2340) 2021-12-10 14:46:53 +01:00
Daniel Roe 6a25d3e245
fix(nuxt3): use resolved options for `useCookie` (#2260) 2021-12-02 12:29:26 +01:00
Daniel Roe 00e6043601
refactor(nuxt3): don't include null errors in payload (#2153) 2021-11-29 12:22:38 +01:00
Anthony Fu b7a429ca61
feat: support importing from `#imports` (#2168) 2021-11-29 12:20:57 +01:00
Anthony Fu f5d1d9a208
fix(auto-import): improve auto-import regex (#2172) 2021-11-29 12:17:51 +01:00
Anthony Fu 010febd1b3
feat(useCookie): support default value (#2147) 2021-11-29 11:40:12 +01:00
Daniel Roe 955fa364fa
fix(nuxt3): include `error` and `pending` values in asyncData state (#2130) 2021-11-24 20:59:04 +01:00
pooya parsa 7e5e50bba7
fix(nuxt3): keep `nuxtApp` instance in client-side (#2114) 2021-11-23 18:50:20 +01:00
Daniel Roe 834532bf71
fix(schema, nuxt3): export meta types from schema (#2103) 2021-11-23 11:16:11 +01:00
Sébastien Chopin c3b72a6ee2 fix(types): cookie options are optional 2021-11-23 01:23:33 +01:00
Pooya Parsa 8994b5a368 fix: use `cookie-es` 2021-11-23 00:20:20 +01:00
Pooya Parsa 92a03d6002 fix: avoid double decoding cookie 2021-11-22 22:29:11 +01:00
Pooya Parsa ee1546be25 use update cookie import 2021-11-22 22:17:20 +01:00
pooya parsa 9920181df3
feat(nuxt3, bridge): `useCookie` universal composable (#2085) 2021-11-22 21:43:00 +01:00
pooya parsa d68318f9d5
refactor: split schema to `@nuxt/schema` and simplify kit (#2059) 2021-11-21 17:14:46 +01:00
jbmolle d3fb5129d7
fix(nuxt3): add missing `key` property to meta components
Co-authored-by: JB <jb.molle@vescape.com>
2021-11-19 13:31:19 +01:00
Daniel Roe 4fe1fc881c
feat(kit): add more specific typings for schema (#1988) 2021-11-19 13:22:27 +01:00
Daniel Roe 4e9a27257b
feat(nuxt3): automatically inject returns from plugins (#2001)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-11-18 14:11:34 +01:00
Tobias Diez 18924da869
chore(bridge): Improve typing of defineNuxtPlugin function (#1995) 2021-11-18 12:08:58 +01:00
Luc bff71029c8
docs: fix typo (#1975) 2021-11-17 12:28:36 +01:00
Xin Du (Clark) c90bc50817
chore(lint): improve no-unused-vars rule (#1977) 2021-11-17 12:21:38 +01:00
Daniel Roe 49179d2d8d
fix(nuxt3): allow attrs to be included in head tags (#1959) 2021-11-16 17:10:03 +01:00
kazuya kawaguchi c53b6a5f2e
refactor(nuxt3): use the `@nuxt/kit` template utilites (#1908) 2021-11-15 20:20:51 +01:00
Daniel Roe 4a3ba73f22
fix(nuxt3): enable `useAsyncData` and `useFetch` usage within plugins (#1933) 2021-11-15 17:34:39 +01:00
fgiraud 6b873f15bc
chore(nuxt3): add tests, comments and example for components scan (#1455)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 17:22:46 +01:00
Daniel Roe 0a74940bf6
fix(nuxt3): enable app-level `<suspense>` with pages module (#1929) 2021-11-15 16:59:15 +01:00
Daniel Roe f011a60dae
feat(nuxt3, bridge): add lazy helpers (`useLazyAsyncData` and `useLazyFetch`) (#1861) 2021-11-15 13:09:07 +01:00
Anthony Fu 8e12394e2d
feat: built-in client only component (#1853)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 12:57:38 +01:00
Anthony Fu f298386795
feat(bridge, nuxt3): mock vue-demi (#1849)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 11:25:50 +01:00
webfansplz 73f9cd2f94
fix(nuxt3): remove unexposed auto imports (#1902) 2021-11-15 11:16:26 +01:00
Daniel Roe abfbd2f34e
feat: add `<Html>` meta component (#1820)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-10 21:25:29 +01:00
Daniel Roe 13a8e2b163
fix(nitro, nuxi): add runtimeConfig types (for `#config` and `useRuntimeConfig()`) (#1783)
Co-authored-by: Tobias Diez <code@tobiasdiez.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-10 13:40:02 +01:00
Daniel Roe 95cbe67f99
feat(kit, nuxt3): add `pages:extend` and `extendPages` (#1740)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: fgiraud <hello@florent.dev>
2021-11-09 11:16:23 +01:00
Daniel Roe 5b8e10f28e
fix(nuxt3): add missing auto imports (#1735) 2021-11-05 15:39:14 +01:00
Anthony Fu 929a634013
refactor: plugin templates (#1678)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-04 09:16:54 +01:00
Daniel Roe 0dd86de586
fix(nuxt3): use nuxt extensions for component discovery (#1649) 2021-11-02 16:27:42 +01:00
Daniel Roe f3ff87c812
fix(nuxt3): enable legacy access to $config and static flags (#1588) 2021-11-02 12:28:19 +01:00
pooya parsa efe1fea1d1
feat(kit): `addComponent` utility (#1579) 2021-11-02 12:27:25 +01:00
Ahad Birang bd654364b9
fix(nuxt3): pass css text into children props (#1635) 2021-11-02 11:32:52 +01:00
Anthony Fu e58270a50f
fix(nuxt3): allows plugins without default export (#1618) 2021-11-02 10:49:45 +01:00
Daniel Roe 2b35e92bd7
fix(nuxt3): add `vue-router` types when used (#1603) 2021-11-02 10:39:42 +01:00
Daniel Roe 8ad5d89a15
fix(nuxt3): only add ref if types were generated (#1606) 2021-11-02 10:38:32 +01:00
pooya parsa 4e424d0d10
feat(nuxt3): support components with `global: false` and always enable transform (#1578) 2021-10-29 13:36:55 +02:00
Daniel Roe c6f769e94d
fix(nitro): inject payload for spa renderer (#1434) 2021-10-25 12:36:38 +02:00
Daniel Roe 7d918e1457
refactor(nuxi): move `nuxt.d.ts` within `buildDir` (#1369) 2021-10-23 00:33:22 +02:00
Levi (Nguyễn Lương Huy) 694e95b2b4
feat(nuxt3): support `NuxtChild` component (#1301) (#1312) 2021-10-21 21:16:52 +02:00
Levi (Nguyễn Lương Huy) 7f7794787b
fix(nuxi): support `build:error` hook (#1298) 2021-10-20 20:50:01 +02:00
TenshiGoan c5920c21e7
fix(nuxt3): child routes in vue-router don't have component field (#998)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-20 20:49:15 +02:00
Levi (Nguyễn Lương Huy) a3058eebae
test(nuxt3): add unit tests for `generateRoutesFromFiles` (#261) (#1227)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-20 20:12:55 +02:00
Daniel Roe 101eaa9baf
fix(nuxt3): restore `auto-imports.d.ts` to `nuxt.d.ts` (#1282) 2021-10-20 14:53:13 +02:00
Anthony Fu 550a9f2e12
feat: auto-import for composables (#1176)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-20 11:47:18 +02:00
Daniel Roe f950fe0d8a
fix(nuxt3): fix type inference for `FetchResult` (#1269) 2021-10-20 11:43:08 +02:00
Pooya Parsa 5e903ae176 fix(nuxt3): update legacy plugin (closes #1200) 2021-10-18 21:34:51 +02:00
Daniel Roe 0b634e19a3
fix(nuxt3): auto import types (#1203) 2021-10-18 21:30:14 +02:00
pooya parsa 035e9b5e8b
refactor: rename `app` to `vueApp` (#1177) 2021-10-18 20:31:37 +02:00
pooya parsa 4cff21005f
fix(nux3): use murmurhash for fetchKey (#1195) 2021-10-18 20:31:18 +02:00
Daniel Roe 47c004ac97
fix: improve type declarations (#1178) 2021-10-18 18:06:31 +02:00
Daniel Roe 6546fccbf9
fix(nuxi): write `tsconfig` when generating `buildDir` (#1161) 2021-10-18 16:22:02 +02:00
pooya parsa 0ab477cad0
feat(auto-imports): allow extending with config and hooks (#1167) 2021-10-18 15:39:53 +02:00
Xin Du (Clark) dbbce5fcfa
feat(kit): add components types (#1164) 2021-10-18 14:49:02 +02:00
Daniel Roe 117b3aa524
fix(nuxt3): destructure components options (#1165) 2021-10-18 13:59:31 +02:00
Xin Du (Clark) 185366ec2d
fix(nuxt3): correct compoennts hooks parameters types (#1157) 2021-10-18 11:54:29 +02:00
Daniel Roe d6ad4f3b16
fix(kit): load `.env` before loading `nuxt.config` (#1086) 2021-10-18 11:03:39 +02:00
renovate[bot] 4f050e50bf
chore(deps): update all non-major dependencies (#989) 2021-10-18 10:50:46 +02:00
Xin Du (Clark) 6cfe98941d
fix(kit): add missing nuxt hooks types (#971) 2021-10-18 10:14:22 +02:00
nandi95 70f1483f9e
fix(nuxt3): added missing `dev` to `process` shims (#1084) 2021-10-18 10:06:31 +02:00
Daniel Roe 93f7d776c4
fix(nuxt3): correctly type arrays returned from fetch requests (#1089) 2021-10-18 10:03:29 +02:00
Pascal Martineau f4011d0b02
fix(nuxt3): add missing `build:before` hook (#1139) 2021-10-18 10:00:23 +02:00
Patrick Remy 3e38eb8511
refactor(nuxt3): export NuxtConfig for convenience (#1039) 2021-10-14 17:22:37 +02:00
Daniel Roe d52b1e8d99
fix(nuxt3): correct auto-import file regexp (#985) 2021-10-13 23:03:36 +02:00
renovate[bot] 07086c8397
chore(deps): update all non-major dependencies (#821)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-13 22:41:21 +02:00
Xin Du (Clark) a42458e107
fix(nuxt3): enable auto-imports for sfc script with type (#931) 2021-10-13 22:24:13 +02:00
Pooya Parsa da7ff44c93 fix(nuxt3): add missing `toRef` import for `useState`
resolves #804
2021-10-12 18:24:27 +02:00
Pooya Parsa 5764042dbb fix(nuxt3): add missing `getCurrentInstance` import for `useAsyncData` (#783) 2021-10-12 17:19:06 +02:00
Anthony Fu 4b04cdfdf1
docs: init function for `useState` (#780) 2021-10-12 16:59:19 +02:00
Anthony Fu 9f0683079e
feat(nuxt3): support init function for `useState` (#767) 2021-10-12 16:28:49 +02:00
Matt Kane 70c0d8eedb
chore: change `Nuxt3` to `Nuxt 3` (#764) 2021-10-12 16:19:58 +02:00
Pooya Parsa a896c64b12 fix(nuxt3): avoid script setup due to mkdist issue 2021-10-12 15:56:47 +02:00
pooya parsa 9cb9bb651e
feat(nuxt3): create root component (#750) 2021-10-12 14:51:41 +02:00
Anthony Fu edeafbf6e3
fix(auto-imports): disable global mode and improve detection (#748) 2021-10-12 14:24:43 +02:00
pooya parsa 9c619b8772
fix(nuxt3): provide `NuxtWelcome` component from design (#745) 2021-10-12 13:16:52 +02:00
Daniel Roe d1e0af928e
fix(nuxt3): correct `KeysOf` type (#737) 2021-10-12 10:52:09 +02:00
pooya parsa 101ef20c34
fix(vite): resolve vue aliases (#734) 2021-10-12 10:39:06 +02:00
pooya parsa 54c57e3987
feat(nuxt3): `useFetch` (#721) 2021-10-12 00:36:50 +02:00
Pooya Parsa 0287b46fed chore: remove unused vuex dependency 2021-10-11 21:17:09 +02:00
pooya parsa 666b7f1ba8
feat: `useState` composable (#719) 2021-10-11 19:48:03 +02:00
Daniel Roe b005b2403f
feat(nitro): automatically type middleware/api routes (#708) 2021-10-11 15:29:02 +02:00
Anthony Fu bade471dcf
refactor: rename `global-imports` to `auto-imports` (#706) 2021-10-11 10:07:27 +02:00
pooya parsa 2bf645bd73
refactor(nuxt3): cleanup data fetching and improved `useAsyncData` (#699) 2021-10-08 16:21:55 +02:00
Daniel Roe cc2279bd8a
refactor(nuxi): extract nitro types to corresponding modules (#668)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-07 12:09:09 +02:00