Commit Graph

1179 Commits

Author SHA1 Message Date
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 c824905b99
fix(schema): handle null/undefined values in `runtimeConfig` (#2456) 2021-12-20 13:19:31 +01:00
pooya parsa c288907f72
fix(webpack): import `esbuild-loader` as commonjs (#2460) 2021-12-20 13:00:27 +01:00
renovate[bot] 85f0547ca4
chore(deps): update all non-major dependencies (#2379)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-12-20 12:33:18 +01:00
Daniel Roe c8e281e7b6
feat(nitro): specify packages to copy to `.output/server/node_modules` (#2382) 2021-12-20 12:03:22 +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 daec4323bb
perf(bridge): allow skipping legacy composition api support (#2388) 2021-12-17 10:44:59 +01:00
Daniel Roe 03f9cfa50b
fix(nitro): pass sourcemap option through to rollup plugins (#2387)
Co-authored-by: Matteo Rigoni <matteo.rigoni@atoms.studio>
2021-12-17 10:39:44 +01:00
Daniel Roe 3eed5cb193
fix(nuxt3): ignore tests within components directory (#2347) 2021-12-17 10:30:36 +01:00
Anthony Fu 737f1bf80c
fix(vite): respect users config (#2395)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-12-17 10:28:06 +01:00
Daniel Roe d91677e72f
fix(nitro): correct `#assets` type declaration (#2403) 2021-12-17 10:26:34 +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 df33474730
fix(vite): log error object (#2420) 2021-12-17 10:08:09 +01:00
renovate[bot] 23397e603c
feat(deps): update all non-major dependencies (#2252)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-12-14 16:46:05 +01:00
Daniel Roe 2cf8c45823
fix(nuxt3): import computed from `vue` to preserve reactivity (#2352) 2021-12-14 14:29:57 +01:00
renovate[bot] a5d5067771
chore(deps): update dependency @vitejs/plugin-vue to v2 (#2354)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-14 14:29:27 +01:00
renovate[bot] 2939cacefc
chore(deps): update dependency vue-loader to v17 (#2355)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-14 14:29:08 +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 3e82f0f2cb
fix(bridge): normalize strings in vite middleware template (#2319) 2021-12-10 15:12:21 +01:00
Daniel Roe 0d85c9ef77
fix(schema): type `render.compressor` (#2302) 2021-12-10 14:48:52 +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 70044d139b
fix(nitro): set content-type header before html 404 (#2301) 2021-12-06 11:48:27 +01:00
Ajai 1c88580c8c
fix(nitro): fix rendering with `ssr` disabled (#2191) 2021-12-06 11:48:12 +01:00
Daniel Roe 6a25d3e245
fix(nuxt3): use resolved options for `useCookie` (#2260) 2021-12-02 12:29:26 +01:00
Pooya Parsa 1ef6e3f525 fix(nuxi): ensure buildDir exists before write 2021-12-01 21:40:40 +01:00
Pooya Parsa bd36e1351a fix(nitro): upgrade table dependency
resolves #2250
2021-12-01 15:38:31 +01:00
renovate[bot] ceec9fdba8
chore(deps): update all non-major dependencies (#2214)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-01 12:58:38 +01:00
Daniel Roe af6f91e8fe
fix(schema): fix typo for `import.meta.globEager` (#2243) 2021-12-01 12:58:24 +01:00
Daniel Roe d52acbffd8
fix(bridge, kit): don't modify template array whilst traversing it (#2244) 2021-12-01 12:58:07 +01:00
Daniel Roe 6e719d6977
fix(bridge): always add `components.d.ts` reference (#2246) 2021-12-01 12:56:58 +01:00
sanfengliao cad09fe9b3
fix(webpack): remove MiniCssExtractPlugin.loader options (#2217) (#2218)
Co-authored-by: sanfordliao <sanfordliao@tencent.com>
2021-11-30 16:39:45 +01:00
Anthony Fu 29a2eb3dc1
fix(vite): include dynamic css (revert #2067) (#2227) 2021-11-30 15:37:01 +01:00
Yasser Lahbibi ac98373b4c
feat(bridge): allow user-defined `scriptSetup` options (#2185)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-11-29 13:17:29 +01:00
renovate[bot] 2c4a001b77
chore(deps): update dependency gzip-size to v7 (#2101)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-29 12:46:55 +01:00
renovate[bot] 7d8a1769fa
chore(deps): update all non-major dependencies (#2144)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-29 12:34:40 +01:00
renovate[bot] b7cae2e47b
chore(deps): update dependency chalk to v5 (#2159)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-29 12:34:29 +01:00
webfansplz 4a486377c5
fix(nitro): use `app.assetsPath` for `publicPath` (#1978)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-11-29 12:31:56 +01:00
Daniel Roe 00e6043601
refactor(nuxt3): don't include null errors in payload (#2153) 2021-11-29 12:22:38 +01:00
Tobias Diez c347b6cc8a
fix(schema): allow strings in plugin config (#2160) 2021-11-29 12:22:00 +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
Daniel Roe 8a6db589fe
feat(bridge): generate components declarations (#2174) 2021-11-29 12:16:08 +01:00
Mohammad Saleh Fadaei ae6f095ee8
fix(bridge): remove falsy values from `created` and `mounted` (#2182) 2021-11-29 12:14:44 +01:00
Yasser Lahbibi ad2918195b
fix(autoImports): dirs option should be string[] (#2186) 2021-11-29 12:14:03 +01:00
Anthony Fu 010febd1b3
feat(useCookie): support default value (#2147) 2021-11-29 11:40:12 +01:00
Daniel Roe f3082ca601
fix(nuxi): add `nuxt3` to dev deps in upgrade command (#2143) 2021-11-24 21:13: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
Daniel Roe f5307f9d13
feat(nuxi): add `typecheck` command using `vue-tsc` (#2132)
* feat(nuxi): add `typecheck` command using `vue-tsc`

* perf: use local install with execa + set rootDir as cwd
2021-11-24 17:02:57 +01:00
renovate[bot] 0d5fcb52ad
chore(deps): update dependency memfs to ^3.4.0 (#2137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-24 16:58:09 +01:00
Daniel Roe 7a78bce449
fix(schema): extend `NuxtOptions` for nitro & bridge types (#2131) 2021-11-24 16:51:26 +01:00
Matteo Rigoni ae80e5bdc8
fix(bridge): fixed reactivity on csr of useState reactive payload (#2134) 2021-11-24 16:44:02 +01:00
renovate[bot] 4efd72d5d4
chore(deps): update all non-major dependencies (#2093)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-24 16:43:01 +01:00
Daniel Roe c5eed5e12b
fix(vite): don't copy `publicDir` files to `_nuxt` (#2135) 2021-11-24 16:42:38 +01:00
Giant 939f2eea25
docs: fix typo (#2119) 2021-11-24 16:25:20 +01:00
pooya parsa 7e5e50bba7
fix(nuxt3): keep `nuxtApp` instance in client-side (#2114) 2021-11-23 18:50:20 +01:00
Daniel Roe fe5b5dcea6
fix(nitro): respect fs structure for traced files (#2107) 2021-11-23 13:02:52 +01:00
Daniel Roe 15dad0e039
fix(schema): remove stray `nuxt3` import (#2105) 2021-11-23 11:55:24 +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
Kenneth 5fdefed39e
fix(nitro): add error logging to `initWorker`(#2090) 2021-11-23 00:24:46 +01:00
Pooya Parsa 5be2f17b99 chore: remove unused `@types/cookie` 2021-11-23 00:23:45 +01:00
Pooya Parsa 8994b5a368 fix: use `cookie-es` 2021-11-23 00:20:20 +01:00
Damian a12df69778
fix(bridge): remove duplicated log (#2087) 2021-11-22 22:49:48 +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
Anthony Fu a149225e63
fix(vite): separate dynamic deps in dev-bundler (#2067) 2021-11-22 18:39:56 +01:00
renovate[bot] 95978ed14d
chore(deps): update all non-major dependencies (#2071)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-22 18:37:59 +01:00
Daniel Roe 2a29c6aa1a
fix(cli): enable `usage` command (#2079) 2021-11-22 18:19:34 +01:00
pooya parsa d68318f9d5
refactor: split schema to `@nuxt/schema` and simplify kit (#2059) 2021-11-21 17:14:46 +01:00
Nozomu Ikuta 583679f9c8
fix(kit): add hooks installation for bridge (#2045)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-21 13:35:37 +01:00
renovate[bot] 4706f0877f
chore(deps): update all non-major dependencies (#2031)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 13:32:53 +01:00
pooya parsa b1371373c8
docs: improve schema generation (#2035) 2021-11-19 17:26:15 +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 c184211681
fix(bridge): add docs links and warnings for data composables (#2010) 2021-11-19 12:37:29 +01:00
renovate[bot] cdb287bd5c
chore(deps): update all non-major dependencies (#2023)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-19 12:36:50 +01:00
renovate[bot] ca8b97d69b
chore(deps): update devdependency execa to v6 (#1986)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-18 19:12:19 +01:00
Anthony Fu 1e0e8818da
fix(bridge): exclude bridge alias types to support Volar (#2013) 2021-11-18 19:11:43 +01:00
renovate[bot] b660ac0900
chore(deps): update dependency @vueuse/head to ^0.7.2 (#2012)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-18 23:28:01 +08: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
renovate[bot] dd4dd9e30e
chore(deps): update dependency @vueuse/head to ^0.7.0 (#2009)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-18 12:38:58 +01:00
renovate[bot] fdcec1fdc6
chore(deps): update all non-major dependencies (#1990)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-18 12:09:16 +01:00
Tobias Diez 18924da869
chore(bridge): Improve typing of defineNuxtPlugin function (#1995) 2021-11-18 12:08:58 +01:00
Xin Du (Clark) a08b435f51
refactor: remove unnecessary optional chaining (#1991) 2021-11-17 15:37:34 +01:00
renovate[bot] 4ba637a5ea
chore(deps): update dependency postcss-preset-env to v7 (#1964)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-17 12:33:03 +01:00
Luc bff71029c8
docs: fix typo (#1975) 2021-11-17 12:28:36 +01:00
renovate[bot] 1c5859f5a3
chore(deps): update all non-major dependencies (#1970)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-17 12:21:57 +01:00
Xin Du (Clark) c90bc50817
chore(lint): improve no-unused-vars rule (#1977) 2021-11-17 12:21:38 +01:00
pooya parsa 232fdd8cf3
fix(kit): support chainable `extendRoutes` in container (#1966) 2021-11-16 17:13:19 +01:00
Daniel Roe 496ea09777
fix(nuxi): ignore static check with `prepare` command (#1971) 2021-11-16 17:10:28 +01:00
Daniel Roe 49179d2d8d
fix(nuxt3): allow attrs to be included in head tags (#1959) 2021-11-16 17:10:03 +01:00
Daniel Roe f3a1ac5c59
fix(nuxi): handle missing typescript options in build (#1972) 2021-11-16 16:20:27 +01:00
Anthony Fu 86a47a2fea
fix(vite): external modules under`/esm/` pattern (#1949)
Co-authored-by: Ben <bencodezen@users.noreply.github.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-11-16 14:28:29 +01:00
renovate[bot] 767eee0024
chore(deps): update dependency esbuild to ^0.13.14 (#1953)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-16 13:32:37 +01:00
pooya parsa b16cfea689
feat: `typescript` options (#1940) 2021-11-16 13:32:21 +01:00
renovate[bot] a4f5de5fc3
chore(deps): update dependency webpack to ^5.64.1 (#1937)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-15 20:21:04 +01:00