Commit Graph

2309 Commits

Author SHA1 Message Date
Daniel Roe 4c6c027014
fix(vite): use single regex to reduce risk of collisions (#4442) 2022-04-22 17:22:22 +02:00
renovate[bot] 163b74f3f6
chore(deps): update all non-major dependencies (#4483)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-22 17:08:58 +02:00
Daniel Roe 648a70e97b
fix(vite): transform virtual templates (#4512) 2022-04-22 10:32:26 +02:00
Pooya Parsa 0c2f076957 chore(release): v3.0.0-rc.1 2022-04-20 23:09:37 +02:00
Daniel Roe 78fcbcf16f
fix(nuxt3): respect custom public dir in layers (#4477) 2022-04-20 22:07:01 +02:00
pooya parsa 975ec0c417
chore(nuxi): add notice for generate deployment (#4474) 2022-04-20 21:22:59 +02:00
pooya parsa 3c3291226d
fix(nuxt): skip server build with generate (#4472) 2022-04-20 21:12:04 +02:00
renovate[bot] 4f5a0d043e
chore(deps): update all non-major dependencies (#4470)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-20 20:39:35 +02:00
pooya parsa 9df0a2b036
fix(nuxi): use `rc` tag for upgrade command of nuxt (#4468) 2022-04-20 20:36:26 +02:00
pooya parsa 13a386da90
feat(nuxt): enable nuxt telemetry (#4467) 2022-04-20 20:25:09 +02:00
Sébastien Chopin 4c19b2652f
fix(nuxi): don't kill analyze command (#4462) 2022-04-20 16:47:43 +02:00
Daniel Roe d0ae5851e4
fix(nuxt): return 404 if hitting `404.vue` (#4460)
* fix(nuxt): return 404 if hitting `404.vue`

* docs: add info about `pages/404.vue`
2022-04-20 16:24:08 +02:00
Daniel Roe 7b091abcea
fix(nuxt3): default client-side fetch to use baseURL (#4456) 2022-04-20 14:35:33 +02:00
renovate[bot] a2e71ad14a
chore(deps): update all non-major dependencies (#4441)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-20 13:02:16 +02:00
Pooya Parsa fc8bcdb250 fix(kit): update schema dependency 2022-04-20 12:59:41 +02:00
Pooya Parsa 5f0fc19938 chore: update packages to 3.0.0-rc.0 2022-04-20 12:52:12 +02:00
Pooya Parsa e006c5605b fix(kit): try canonical package name for edge release 2022-04-20 12:35:09 +02:00
Daniel Roe d469c9a6d7
fix(nuxt3): don't rely on auto-imports for `defineAsyncComponent` (#4454) 2022-04-20 12:20:49 +02:00
pooya parsa 24923db992
chore: update and cleanup workspace (#4450)
* fix(test-utils): resolve nuxi locally
2022-04-20 12:19:30 +02:00
pooya parsa 4712e99411
refactor!: rename nuxt3 to nuxt (#4449) 2022-04-20 10:52:39 +02:00
Daniel Roe 896d1404a3
chore: bump node dependencies (#4440) 2022-04-20 00:14:27 +02:00
Daniel Roe eed7036627
fix(nuxi): strip extensions from absolute paths (for types) (#4300) 2022-04-19 21:14:39 +02:00
Daniel Roe b38dc097f6
feat(nuxt3): allow separating client and server components (#4390)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-19 21:13:55 +02:00
Daniel Roe ea47e56540
fix(nuxt3): improve redirect lifecycle (#4430)
* fix(nuxt3): improve redirect lifecycle

* fix: check against existing cookie value in header
2022-04-19 21:13:11 +02:00
Daniel Roe 71b808c8e9
fix(schema): use entire object for `app` properties (#4431) 2022-04-19 21:12:28 +02:00
renovate[bot] b30d8ad1f8
chore(deps): update all non-major dependencies (#4435)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-19 21:12:13 +02:00
pooya parsa 756693ce7f
feat!: migrate to nitro 0.3x (#4438) 2022-04-19 21:10:32 +02:00
Daniel Roe 74ce29b329
docs: remove `__dirname` and `__filename` from example code (#4381)
* docs: remove `__dirname` and `__filename` from example code

* fix: add `fileURLToPath`

* Update packages/schema/src/config/server.ts

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

* Update docs/content/2.guide/6.going-further/7.testing.md

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

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-19 16:46:14 +02:00
Daniel Roe 90da56a03b
fix(nuxt3): initialize router with normalized url (#4427) 2022-04-19 16:37:08 +02:00
Daniel Roe 7a316c289a
fix(nuxt3): include route children in parent suspense (#4422) 2022-04-19 10:38:57 +02:00
pooya parsa ce38dcba1c
fix(nuxt3): always generate `/` route (#4421) 2022-04-19 10:17:41 +02:00
pooya parsa 0b8eeaf40f
build: update nuxt ui to ^0.1.0 (#4420) 2022-04-19 10:06:21 +02:00
renovate[bot] 77445c87e8
chore(deps): update all non-major dependencies (#4414)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-19 09:30:07 +02:00
renovate[bot] 59ba87ee83
chore(deps): update all non-major dependencies (#4395)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-17 11:58:21 +02:00
Damian 513978e15b
docs: fix and improve multiple sections (#4396) 2022-04-16 15:53:36 +02:00
renovate[bot] 04a72f83f1
build(deps): update all non-major dependencies (#4387)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-16 07:33:23 +02:00
pooya parsa 83d27bd158
feat: enable hybrid rendering for `nuxi build` (#4373) 2022-04-15 18:31:19 +02:00
Daniel Roe ea14a5c1c1
feat(vite,webpack): build/dev typechecking (#4379) 2022-04-15 17:28:42 +02:00
Daniel Roe e0b2a3bfe4
chore: use `node:` prefix for built-in modules (#4384) 2022-04-15 17:19:05 +02:00
renovate[bot] 450b6db234
chore(deps): update dependency nitropack to ^0.2.11 (#4377)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-15 17:01:21 +02:00
Daniel Roe 301a0aba49
build(vite): don't inline `h3` (#4378) 2022-04-15 17:01:09 +02:00
Daniel Roe 7fb29b3a6e
fix(webpack): add css, sass, scss to asset patterns to transpile (#4375) 2022-04-15 12:58:22 +02:00
Anthony Fu 51ae426d4c
fix(vite): dev bundler for cjs support (#4371) 2022-04-15 09:57:36 +02:00
renovate[bot] 2917af595b
chore(deps): update all non-major dependencies (#4367)
* chore(deps): update all non-major dependencies

* ignore type issue

* update lockfile

* remove tsignore

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-04-15 09:57:23 +02:00
Anthony Fu 074daa767c
fix(vite): interop cjs (#4370) 2022-04-15 09:40:40 +02:00
Daniel Roe 14d9e8e4ae
fix(nuxt3): directly emit `document.template.mjs` (#4360) 2022-04-15 09:39:16 +02:00
renovate[bot] eefaba8160
chore(deps): update dependency vite to ^2.9.5 (#4363)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-14 18:00:38 +02:00
renovate[bot] 4b54d6c6a8
chore(deps): update all non-major dependencies (#4353)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-14 17:28:04 +02:00
Daniel Roe 5dae097318
docs: update webpack code examples (#4355) 2022-04-14 17:27:53 +02:00
Daniel Roe 5fef9e8db2 fix(nuxt3): ensure import names are unique 2022-04-14 15:58:05 +01:00
renovate[bot] 41663f6264
chore(deps): update all non-major dependencies (#4340)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-14 10:54:15 +02:00
Daniel Roe 32c798cfc4
fix(nuxi): call listen hook on each restart (#4346) 2022-04-14 10:39:27 +02:00
pooya parsa c519ceec52
fix(cli): disable cjs bridge (#4336) 2022-04-13 20:54:20 +02:00
Daniel Roe ee93659147
feat(nuxt3): allow providing a ref as default value (#4326) 2022-04-13 19:41:41 +02:00
renovate[bot] be298e9216
chore(deps): update dependency vite to ^2.9.3 (#4335)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 19:39:33 +02:00
renovate[bot] b241e5061b
chore(deps): update all non-major dependencies (#4328)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 19:26:03 +02:00
Daniel Roe f4fb9160c6
feat(nuxt3): allow manually enabling/disabling the ad-hoc pages module (#4327) 2022-04-13 19:18:51 +02:00
pooya parsa f91f987401
chore: move bridge to `nuxt/bridge` (#4305) 2022-04-13 13:43:42 +02:00
renovate[bot] 70610d8858
chore(deps): update dependency enhanced-resolve to ^5.9.3 (#4321)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 12:08:12 +02:00
Anthony Fu 59593a05ca
fix(deps): upgrade @vueuse/head (#4320) 2022-04-13 11:24:45 +02:00
renovate[bot] 1a5fd99d6c
chore(deps): update all non-major dependencies (#4311)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 07:36:40 +02:00
Daniel Roe e43ba6ecd2
fix(nuxt3): render nuxt custom error page (#4289)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-04-12 22:37:32 +02:00
pooya parsa 0b12666d49
refactor(nuxi): remove `rimraf` dependency (#4308) 2022-04-12 21:06:44 +02:00
renovate[bot] 021faf348f
chore(deps): update devdependency semver to ^7.3.7 (#4307)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:47:56 +02:00
renovate[bot] aa26c6cdb1
chore(deps): update all non-major dependencies (#4302)
* 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
Sébastien Chopin ce36e2e211
fix(nuxt3): as backward compatible runtime config for server side (#4295)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-04-12 16:59:48 +02:00
Anthony Fu e31c604ac4
feat(vite-node): on-demand manifest generation (#3968)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-12 12:04:55 +02:00
Clément Ollivier 0457125ebd
chore: update links for new sitemap (#4286) 2022-04-12 11:59:32 +02:00
Pooya Parsa f753938843 fix(nuxt3): handle falsy page meta
hotfix for #4273
2022-04-12 11:16:34 +02:00
Victor Saa 85f2f83cf2
feat: route alias support (#4273) 2022-04-12 11:09:45 +02:00
renovate[bot] 02b148ae2c
chore(deps): update all non-major dependencies (#4282)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 11:09:21 +02:00
pooya parsa 81bf1c065e
fix(bridge, nuxt3): backward compatibility to access runtime config in client (#4283) 2022-04-12 11:04:26 +02:00
renovate[bot] e95ac2efb5
chore(deps): update all non-major dependencies (#4271)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 08:46:22 +02:00
pooya parsa 4d1a6ba6ce
fix(nuxt3)!: preserve runtime-config structure for client-side (#4267) 2022-04-11 21:55:43 +02:00
Ahad Birang 0d5ec20a4b
fix(nitro): pass resolved handlers to the nitro config (#4263) 2022-04-11 20:38:42 +02:00
renovate[bot] 2ca704641b
chore(deps): update all non-major dependencies (#4266)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-11 20:19:52 +02:00
renovate[bot] 180afc854f
chore(deps): update all non-major dependencies (#4261)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-11 17:56:24 +02:00
pooya parsa 2c540e7870
feat: introduce simplified `runtimeConfig` option (#4254) 2022-04-11 16:34:23 +02:00
Daniel Roe bc1e00a8df style: remove unused import 2022-04-11 15:13:21 +01:00
Daniel Roe 38cd6f0f03
fix(nuxt3): re-enable computed metadata in useHead (#4260) 2022-04-11 16:09:04 +02:00
Daniel Roe 1091d456a8
feat(nuxt, bridge): support `titleTemplate`, `viewport` and `charset` for `useHead` (#4221) 2022-04-11 11:03:31 +02:00
renovate[bot] 041e8694d1
chore(deps): update all non-major dependencies (#4229)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-11 10:38:46 +02:00
Daniel Roe 3186841c9c
fix(bridge): move `@vueuse/head` to dev dependencies (#4218) 2022-04-09 13:39:49 +02:00
renovate[bot] ed4946b06a
chore(deps): update all non-major dependencies (#4207)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-09 12:14:50 +02:00
Dizzy Rogers 26f8d8eb8f
fix(vite): prefer hmr `ws` protocol (#4203) 2022-04-09 12:09:43 +02:00
pooya parsa 396472778f
fix(cli): close process by default after command invokation (#4192) 2022-04-09 12:02:56 +02:00
Daniel Roe edd0b30896
fix(nuxt3,bridge): rename error handler url (#4215) 2022-04-09 11:52:42 +02:00
Daniel Roe f2fc135721
fix(nuxt3): remove useMeta warning (#4216)
* fix(nuxt3): remove useMeta warning for now

* Update packages/nuxt3/src/head/runtime/composables.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-09 11:46:29 +02:00
Daniel Roe 4253d2ed62
fix(bridge): add ui-templates dependency (#4195) 2022-04-08 11:29:16 +02:00
renovate[bot] a5ca843827
chore(deps): update all non-major dependencies to ^0.9.2 (#4188)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-08 02:07:15 +02:00
pooya parsa 315e5b59e6
fix: nitropack fixes and upgrade to 0.2.x (#4187) 2022-04-08 02:05:27 +02:00
Anthony Fu 47b7e5cd94
test: increse retries for dev tests (#4182) 2022-04-07 23:49:43 +02:00
Dizzy Rogers 8874728842
fix(nuxi): update `api` template to event format (#4183) 2022-04-07 23:25:39 +02:00
renovate[bot] 96657388f5
chore(deps): update all non-major dependencies (#4181)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 21:18:16 +02:00
pooya parsa 2cc3aaba5f
chore(ci): enable testing fixtures in development (#3755)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-07 21:15:30 +02:00
renovate[bot] 5bb4e94c7c
chore(deps): update all non-major dependencies (#4175)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 19:13:37 +02:00
Daniel Roe 5c4bb0ce18
fix(bridge): add missing dependency (#4172) 2022-04-07 18:50:54 +02:00
Daniel Roe bc7627df07
fix(nuxt3): export useRequestEvent from `#app` (#4169) 2022-04-07 17:40:18 +02:00
Daniel Roe 7379184960
fix(bridge): inline bridge dist files (#4170) 2022-04-07 17:39:37 +02:00
renovate[bot] da82e23bad
chore(deps): update dependency webpack to ^5.72.0 (#4162)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 15:26:26 +02:00
pooya parsa 9fbb9bec8d
fix: regressions from nitropack migration (#4157) 2022-04-07 14:57:57 +02:00
FL3NKEY 2bedebe5ee
fix(webpack): add `exportOnlyLocals: true` for css modules options in server build. (#3778)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-07 13:51:10 +02:00
Daniel Roe 76eedb852e
fix(nuxt3)!: add default cookie path to `/` (#4019) 2022-04-07 13:35:46 +02:00
Daniel Roe 6276580aa4
fix(bridge): exclude unsupported imports via `autoImports:sources` (#4127) 2022-04-07 13:35:11 +02:00
Ahad Birang f0714d78b0
fix(kit): use `route` instead of `path` in `ServerMiddleware` (#4139) 2022-04-07 13:32:28 +02:00
renovate[bot] cc9714ff40
chore(deps): update all non-major dependencies (#4155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 13:32:00 +02:00
pooya parsa 11626eea4f
feat!: migrate to nitropack (#3956)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-07 13:28:04 +02:00
renovate[bot] 7d1ff39077
chore(deps): update all non-major dependencies (#4149)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 13:03:52 +02:00
Daniel Roe 368610e8a7
feat(nuxt3): allow explicitly importing components (#4150) 2022-04-07 13:03:37 +02:00
Daniel Roe 0cbc9cb7cd
fix(bridge): resolve vue from `.nuxt`, not `node_modules` (#4146) 2022-04-07 11:04:10 +02:00
Daniel Roe 4d6f77bae4
docs(bridge): fix bridge composition api link (#4147) 2022-04-07 11:03:38 +02:00
renovate[bot] 91aa852878
chore(deps): update devdependency vitest to ^0.9.0 (#4138)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 21:50:37 +02:00
renovate[bot] 2eedb589d7
chore(deps): update all non-major dependencies (#4134)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 21:16:56 +02:00
Daniel Roe 540e23c7a8
fix(nuxt3): normalize watched paths (#4133) 2022-04-06 18:02:56 +02:00
Alex Liu b7dc0931c4
feat(nuxt3): let `useAsyncData()` return value that `error` can defined type by generics (#4109) 2022-04-06 18:02:45 +02:00
Daniel Roe 3ea39e0745
fix(vite): clean up dynamic paths (#4130) 2022-04-06 16:15:36 +02:00
Daniel Roe eb22ce9ae2
fix(nuxt3): move new router behavior to `useActiveRoute` (#4124) 2022-04-06 14:45:18 +02:00
Andrey Mamatov d2a814fa6a
docs(schema): update environment variable name for overriding `baseURL` (#4118) 2022-04-06 14:08:53 +02:00
Daniel Roe da46b8d165
fix(nuxt3): parse macro queries for components (#4121) 2022-04-06 12:05:37 +02:00
renovate[bot] e561efc6c8
chore(deps): update dependency esbuild to ^0.14.32 (#4110)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 08:01:17 +02:00
Anthony Fu ec32cf9fc5
fix(vite): improve warmup (#4106) 2022-04-06 07:54:53 +02:00
Daniel Roe 7a706445f8
fix(nuxt3)!: sync route object to currently resolved page (#4092) 2022-04-05 17:36:18 +02:00
Daniel Roe cb74ab6ecc
fix(nuxt3): rename runtime `meta` to `head` in build config (#4101) 2022-04-05 16:51:55 +02:00
Daniel Roe 301f242422
fix(nuxi): use rm rather than rmdir (#4100) 2022-04-05 16:47:08 +02:00
Anthony Fu e1e3f5063d
fix(deps): upgrade unimport (#4095) 2022-04-05 16:03:41 +02:00
Daniel Roe e90b8c28d1
refactor(nuxt3,bridge)!: rename `useMeta` to `useHead` (#4066) 2022-04-05 16:02:29 +02:00
Daniel Roe c426f3e5e0
fix(nuxt3): set pending to false when using cached data (#4067) 2022-04-05 13:51:07 +02:00
Daniel Roe f39fd9f0a0
fix(bridge): transpile `@nuxt/bridge-edge` (#4070) 2022-04-05 12:41:45 +02:00
Daniel Roe 9f6eff7511
fix(nuxt3): use inferred type for `useFetch` (#4058) 2022-04-04 12:56:41 +02:00
pooya parsa 8a3d445bf8
fix(kit): ensure `useNuxt` returns nuxt instance (#4059) 2022-04-04 11:41:48 +02:00
Kevin Marrec dda0cebc76
feat(nuxt3): extends support for `app/router.options` (#3939) 2022-04-04 10:23:11 +02:00
Matteo Rigoni 01db83032a
fix(kit): add typings to kit server middleware (#3776)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-04 10:21:30 +02:00
renovate[bot] 61180648ca
chore(deps): update all non-major dependencies (#4028)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-04 09:56:23 +02:00
renovate[bot] dc6944a7cb
chore(deps): update dependency webpack to ^5.71.0 (#4024)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-01 16:08:50 +02:00
Daniel Roe fdd38f958c
feat(nitro): support for rendering ssr teleports to body (#3909)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-01 16:06:48 +02:00
Daniel Roe ade3378a00
refactor(bridge): align bridge with vite and inline systemjs polyfill in entry (#4005) 2022-04-01 15:22:22 +02:00
Daniel Roe 1890c55cbe
docs: add missing configuration documentation to nuxt 3 docs (#4020) 2022-04-01 15:02:26 +02:00
Daniel Roe 91576c9892
fix(bridge): remove `defineNuxtLink` from auto-imports (#4022) 2022-04-01 14:43:56 +02:00
renovate[bot] 1b61bda286
chore(deps): update all non-major dependencies (#4013)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-01 13:44:34 +02:00
Daniel Roe 02d2d1ae35
feat(nuxi): load `.env` when previewing builds (#4016) 2022-04-01 12:28:39 +02:00
Daniel Roe 51f3bbfd23
fix(vite): update regex to handle new vite output format (#4014) 2022-04-01 12:15:00 +02:00
Anthony Fu 4c77c88325
feat: support async plugins and middlewares (#3884) 2022-04-01 11:55:23 +02:00
renovate[bot] 0c5d9872ac
chore(deps): update all non-major dependencies (#3979)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-31 21:59:36 +02:00
Daniel Roe e4956c555f
fix(nuxi): ignore buildDir on windows too (#3999) 2022-03-31 18:09:57 +02:00
Daniel Roe fdd6a91a51
fix(vite): optimise `vue` by default (#3997) 2022-03-31 16:10:06 +02:00
pooya parsa 323803832a
feat(nuxt)!: use paylod cache for initial data fetching by default (#3985)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-31 12:24:28 +02:00
Daniel Roe 5b2ed856fc
feat(vite): upgrade to vite 2.9.0 (#3974) 2022-03-31 11:28:05 +02:00
Anthony Fu 9c2e208090
fix(vite-node): wrong entry been resolved in stub mode (#3983) 2022-03-31 09:11:50 +02:00
renovate[bot] 7011117c83
chore(deps): update all non-major dependencies (#3962)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-31 00:33:07 +02:00
Pooya Parsa 646c2f63f7 fix(deps): pin vite to 2.8.x
pending for #3974
2022-03-31 00:27:57 +02:00
Daniel Roe df188d7734
fix(nuxi): respect `NUXT_PORT` and `NUXT_HOST` vars in dev mode (#3973) 2022-03-30 21:07:26 +02:00
Anthony Fu 96ad9cfe97
docs: init testing section (#3930) 2022-03-30 18:00:08 +02:00
Anthony Fu 43007c6d13
fix(vite-node): improve server.mjs (#3967) 2022-03-30 13:34:23 +02:00
pooya parsa 7e6c4e2d5b
fix(schema): fix RouterConfig types (#3964) 2022-03-30 10:17:46 +02:00
renovate[bot] c28c6a8c8a
chore(deps): update all non-major dependencies (#3952)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-29 15:23:36 +02:00
Anthony Fu 8dd77d7b6e
feat: `refreshNuxtData` function and `app:data:refresh` hook (#3929)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-28 19:12:41 +02:00
renovate[bot] e534ffe22f
chore(deps): update all non-major dependencies (#3910)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-28 13:56:52 +02:00
Ahad Birang 90415d4674
fix(nitropack): respect custom output dir (#3940) 2022-03-28 13:56:35 +02:00
Anthony Fu 56252155ec
fix(vite-node): bugfixes for production build (#3934) 2022-03-28 13:02:28 +02:00
Daniel Roe 9ebea904f4
fix(bridge): don't call nuxt app if instance is inaccessible (#3906)
* fix(bridge): don't call nuxt app if instance is inaccessible

* fix: early return if no instance, for clarity
2022-03-25 16:48:37 +01:00
Jakub Andrzejewski 19842ce471
feat(nuxi): scaffold files with `nuxi add` (#3841)
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Clément Ollivier <clement.o2p@gmail.com>
2022-03-25 15:56:36 +01:00
renovate[bot] 5fa9d79303
chore(deps): update all non-major dependencies (#3888)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-25 15:43:14 +01:00
Daniel Roe 7c1a8ae0d9
fix(bridge): define mixin outside plugin, to avoid memory leak (#3900) 2022-03-25 13:51:07 +01:00
Daniel Roe 38e92597f4
fix(vite): externalise `#_config` in `ssr: false` (#3899) 2022-03-25 13:18:57 +01:00
Daniel Roe 9e67d58005
refactor(bridge): provide vue2 compat with a transform plugin (#3886) 2022-03-25 13:18:43 +01:00
Kevin Marrec e34ed887f2
fix(nuxt3): use `path` for uniqueness of routes when resolving (#3895) 2022-03-25 12:55:05 +01:00
Kevin Marrec e7b57fa34c
fix(nuxt3): improve types of `uniqueBy` utility (#3897) 2022-03-25 12:54:40 +01:00
Daniel Roe 773dd59a2c
fix(bridge): don't double-install plugins when using compat `vueApp.use` (#3898) 2022-03-25 12:53:56 +01:00
Daniel Roe c7f4e3c709
docs: update `serverMiddleware` to add warning on function and make example esm (#3894)
* docs: update serverMiddleware to add warning on function and make example esm

* Update packages/schema/src/config/_common.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-25 12:40:15 +01:00
Daniel Roe dc1064f79a
fix(nuxt3): avoid `#_config` app import in dev mode (#3896) 2022-03-25 12:38:36 +01:00
renovate[bot] e72e6d0d0f
chore(deps): update dependency unctx to ^1.1.2 (#3882)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-24 14:22:53 +01:00
Daniel Roe 23e7afb5ec
fix(bridge): replace nuxt 3 auto-imports (#3850) 2022-03-24 14:15:32 +01:00
Anthony Fu 11c460fa99
fix(vite-node): entry path and executing in production (#3854) 2022-03-24 13:35:09 +01:00
renovate[bot] 1ad65998a4
chore(deps): update all non-major dependencies (#3859)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-24 13:14:12 +01:00
Daniel Roe 236faf9cc6
fix(bridge): add implemented runtime nuxt hooks (#3872) 2022-03-24 13:13:56 +01:00
renovate[bot] a8317830a8
chore(deps): update all non-major dependencies (#3857)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-23 12:58:44 +01:00
renovate[bot] e16998126d
chore(deps): update vite dependencies to ^0.7.8 (#3853)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-23 09:32:32 +01:00
Daniel Roe 93c4dfe091
fix(vite): resolve `#_config` in base plugin (#3848) 2022-03-23 09:10:12 +01:00
Kevin Marrec 7c0d2e176c
feat(nuxt3): extends support for `pages` & `middleware` directories (#3783)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-22 19:12:54 +01:00
Daniel Roe 29078bba74
feat(nuxt3): support lazy and custom-resolved components (#3814) 2022-03-22 18:04:31 +01:00
Daniel Roe 7458dd1aa6
fix(nuxt3): use shared module for dynamic paths (#3757)
* 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
renovate[bot] 6c4a34a675
chore(deps): update dependency postcss-import to ^14.1.0 (#3837)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-22 16:48:10 +01:00
renovate[bot] 7ce91d83c9
chore(deps): update dependency unctx to ^1.1.0 (#3836)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-22 16:30:07 +01:00
Daniel Roe acd22db576
docs: deprecate `buildModules` in schema (#3830) 2022-03-22 12:33:30 +01:00
Daniel Roe 70f067a14b
fix(vite): sort postcss plugins to add autoprefixer & cssnano last (#3827) 2022-03-22 11:40:36 +01:00
Daniel Roe f3168d923b
fix(nuxt3): respect `srcDir` and normalize string in component dirs (#3815)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-22 11:35:16 +01:00
renovate[bot] ae364f95cc
chore(deps): update all non-major dependencies (#3788)
* chore(deps): update all non-major dependencies

* update test

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-22 10:57:35 +01:00
TheColaber edb3e5075e
fix(nitro): list global middleware before API middleware (#3795) 2022-03-22 10:50:05 +01:00
jfavlam 7a994bc7a7
chore(nuxi): add pnpm to `init` instructions (#3826)
* Add pnpm instructions

Add pnpm commands to install the dependencies and start the development server

* Update packages/nuxi/src/commands/init.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-22 10:35:07 +01:00
renovate[bot] d909bc6548
chore(deps): update dependency defu to v6 (#3816)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-22 10:32:28 +01:00
Daniel Roe 53fbca77d4
fix(nuxt3): improve component loading behaviour (#3782)
* fix: don't import multiple copies of the same component

* fix: match components by pascal case

* Update packages/nuxt3/src/components/loader.ts

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

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-18 19:42:40 +01:00
Daniel Roe 73ee41cb58
fix(nitro): don't include current project's layer twice (#3785) 2022-03-18 19:20:23 +01:00
Daniel Roe 6de6e42bb8
fix(nuxt3): warn if builder can't be loaded (#3766) 2022-03-18 13:57:05 +01:00
renovate[bot] 2ad93eb34d
fix(deps): update dependency c12 to ^0.2.3 (#3781)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-18 13:55:12 +01:00
Daniel Roe 7d37a1309e
fix(nuxt3): do not use ts in internal components (#3773) 2022-03-18 11:57:53 +01:00
Daniel Roe 30b8059d6d
fix(bridge): handle missing `experimental` key on bridge (#3763) 2022-03-18 11:45:30 +01:00
Anthony Fu f69126e8f4
feat: support reactivity transform (#3737)
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-17 23:17:59 +01:00
pooya parsa d4facf7c34
fix(nuxt3): update types for `useLazyFetch` (#3754) 2022-03-17 22:35:07 +01:00
pooya parsa a50b8ca712
feat(test-utils): test in development mode (#3753) 2022-03-17 22:31:06 +01:00
Daniel Roe 2590ae39d3
feat(test-utils)!: add support for running with env variables (#3742)
Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-17 22:17:54 +01:00
renovate[bot] 6be6c3cf25
chore(deps): update all non-major dependencies (#3752)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-17 21:11:15 +01:00
pooya parsa 7d945952d8
fix(kit): avoid behavior change based on NODE_ENV (#3751) 2022-03-17 21:10:12 +01:00
pooya parsa 621ce975b4
feat(nuxi): expose `runCommand` (#3749) 2022-03-17 19:49:59 +01:00
renovate[bot] ed908fe027
chore(deps): update dependency vite-node to ^0.7.1 (#3748)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-17 19:18:38 +01:00
Daniel Roe 6342e823a1
fix(webpack): support absolute urls in webpack css url/import (#3743) 2022-03-17 18:50:06 +01:00
pooya parsa 91fd16ae52
feat(nuxt3): allow overriding root component using `app.root.vue` (#3733) 2022-03-17 11:57:02 +01:00
pooya parsa fb150825ce
feat(nuxt3): `useFetch` with dynamic reactive request (#3731) 2022-03-17 11:47:41 +01:00
renovate[bot] 8b52844cba
chore(deps): update vite to ^0.7.0 (#3724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-17 02:31:07 +01:00
pooya parsa 7c0b9140c7
feat(nuxt3): `watch` option for `useAsyncData` to auto refresh (#3722) 2022-03-16 23:49:30 +01:00
Daniel Roe e3f0b31925
refactor: add some more explicit types (#3721) 2022-03-16 23:44:22 +01:00
François Risoud 99705f77c0
feat(router): add proper server side redirection to navigateTo (#3684)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-16 22:39:47 +01:00
renovate[bot] 93da7978fb
chore(deps): update all non-major dependencies (#3719)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-16 21:42:48 +01:00
pooya parsa b03cdb7114
feat!(nuxt3): use individual config layers for extending (#3717) 2022-03-16 21:36:30 +01:00
pooya parsa 3f91d83a79
feat(schema): expose `RouterOptions` and `RouterConfigOptions` (#3713) 2022-03-16 19:13:05 +01:00
Daniel Roe 12304909bc
feat(nuxt3): add `<NuxtErrorBoundary>` component for fine-grained error handling (#3671)
* feat(nuxt3): add `<NuxtErrorBoundary>` component for fine-grained error handling

* feat: add `@error` event handling

* fix: don't clear error on nav

* fix: remove `clearError` wrapper

* fix: remove outdated implementation

* update clear error

* upddate example with FaultyComponent

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-16 16:49:53 +01:00
pooya parsa cb6a4e97c1
fix(auto-imports): windows issue with parsing query from path (#3700)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-16 14:41:37 +01:00
Anthony Fu 452a7730e0
feat(nuxi): init `nuxi test` support (#3307)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-16 13:34:27 +01:00
Daniel Roe 5c9cf9cf9e
fix(pkg): add implicit dependencies (#3682)
* chore: prevent unintentional inlinings

* fix: workaround hoisting by moving `unimport` to peerDeps

* add missing dep

* add unimport as bridge dpeendency

* fix(nuxt3): explicitly type presets

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-16 13:13:50 +01:00
Daniel Roe ff88d91bae
fix: use `perfect-debounce` to handle trailing run of promise (#3679)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-16 12:11:30 +01:00
renovate[bot] 3a8bef609d
chore(deps): update all non-major dependencies (#3677)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-16 11:53:18 +01:00
Anthony Fu ae8b35173e
fix(macros): ignore nullish id for transform (#3697) 2022-03-16 11:52:05 +01:00
Anthony Fu 7af60ca9b2
chore: upgrade vitest, improve tests capture (#3695) 2022-03-16 11:47:22 +01:00
Anthony Fu e67ed55de3
fix(test-utils): use `beforeAll` for setup (#3696) 2022-03-16 11:47:02 +01:00
Pooya Parsa a436d8e0dc fix: update ufo 2022-03-16 11:21:24 +01:00
Pooya Parsa 970a4d36d5 fix(nuxt-link): handle state without href and to 2022-03-16 11:10:32 +01:00
Divine 04026a3861
refactor: use `ufo.hasProtocol` to detect external link (#3686) 2022-03-16 10:44:05 +01:00
Raja f38cacec0f
feat(nuxt 3): support custom router options (#3485)
Co-authored-by: Raja Munisamy <raja.munisamy@carbar.com.au>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-15 17:57:41 +01:00
Kevin Marrec 227ceedebb
feat(nuxt3): extends support for `server/` directory (#3673) 2022-03-15 17:15:19 +01:00
renovate[bot] fa8daefb6e
chore(deps): update all non-major dependencies (#3660)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-15 15:51:53 +01:00
Daniel Roe 3e0a3ed247
fix(nuxt3): fix layout suspense loading (#3670) 2022-03-15 12:22:25 +01:00
Anthony Fu 505acb820a
chore(deps): upgrade unimport (#3669) 2022-03-15 12:21:06 +01:00
Daniel Roe 14b32258e8
fix: ensure debounced/async handlers run in order (#3656) 2022-03-15 11:56:16 +01:00
Daniel Roe a7ce6d53b7
fix(nuxi): use new `builder` option for vite/webpack info (#3658) 2022-03-15 11:39:49 +01:00
Pooya Parsa 036458e987 fix(nuxt3): config layer fallback for dir 2022-03-14 14:53:31 +01:00
Lucie 4cefce44a3
feat(nuxt3): add `<NuxtLink>` component (#3544)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-14 14:36:32 +01:00
renovate[bot] 6fac5740ed
chore(deps): update all non-major dependencies (#3646)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-14 11:47:39 +01:00
Daniel Roe 7bf338da8c
feat(nuxt3)!: enable using `<NuxtLayout>` without pages integration (#3610) 2022-03-14 11:47:24 +01:00
renovate[bot] 8a0c10deea
chore(deps): update all non-major dependencies (#3635)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-14 11:21:10 +01:00
Daniel Roe d3d35644c6
chore: upgrade `unplugin-vue2-script-setup` (#3640) 2022-03-14 11:20:42 +01:00
Sébastien Chopin 570016c143
fix(vite): improve logs for client vs server (#3634) 2022-03-14 11:19:37 +01:00
Ahad Birang e891ea0cca
feat(webpack): add `webpack:devMiddleware` and `webpack:hotMiddleware` hooks (#3606) 2022-03-13 19:43:41 +01:00
renovate[bot] a2b21d9b8f
chore(deps): update all non-major dependencies (#3613)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-13 19:41:42 +01:00
Daniel Roe 114cbe33d0
fix(schema): set static alias correctly (#3614) 2022-03-12 08:17:55 +01:00
Dizzy 3e68433365
fix(nuxt3): reassign plugins on iterations (#3619) 2022-03-11 20:18:53 +01:00
Daniel Roe 32cf973ab0
fix(nuxt3): support extending page metadata (#3603) 2022-03-11 12:52:05 +01:00
Daniel Roe 8c6af7da7a
fix(nitro): support `process.dev` #3601) 2022-03-11 11:47:18 +01:00
renovate[bot] 7650f6c57d
chore(deps): update all non-major dependencies (#3585)
* chore(deps): update all non-major dependencies

* transpile h3 for bridge

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-11 09:57:59 +01:00
Anthony Fu ac40c9746c
feat(vite): experimental `vite-node` support (#2795)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-11 09:41:27 +01:00
Daniel Roe 5d58ef48af
feat(nitro, nuxt3): allow handling otherwise unhandled runtime errors (#3464)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-11 09:22:16 +01:00
Anthony Fu cff2f37cc8
refactor!: migrate to `unimport` (#3386) 2022-03-11 09:09:11 +01:00
yoho c942465f79
chore: remove extra space (#3597) 2022-03-11 09:07:26 +01:00
pooya parsa 20f31712c1
feat(nuxt3): auto generate runtime config type declarations (#3573)
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
Kevin Marrec 6c083f3d12
feat!(nuxt3): extends support for composables/ directory (#3423)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-09 12:03:36 +01:00
Kevin Marrec 13dd2b98ea
feat(nuxt3): extends support for `plugins/ ` directory (#3462) 2022-03-09 11:51:32 +01:00
renovate[bot] 230c8cb491
chore(deps): update all non-major dependencies (#3555)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 11:38:46 +01:00
Daniel Roe ef38147e52
fix(bridge): handle static nested vite dirs (#3565) 2022-03-09 11:36:24 +01:00
renovate[bot] 3d5b695e34
chore(deps): update all non-major dependencies (#3554)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-08 19:01:22 +01:00
Daniel Roe e12d2e9405
fix(kit): allow `src` for `addPluginTemplate` (#3542) 2022-03-08 18:42:46 +01:00
Daniel Roe a5e19b1c57
fix(bridge): use vue server build (#3515)
* fix(bridge): use vue server build

* fix: remove unused import

* refactor: resolve cjs version once

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-08 18:40:20 +01:00
Daniel Roe 91256f5e76
fix(nitro): handle decoding static filenames (#3541) 2022-03-08 18:30:46 +01:00
renovate[bot] 5b7fbc1569
chore(deps): update all non-major dependencies (#3450) 2022-03-08 18:17:01 +01:00
Dizzy 02e683d33f
fix: strip file extensions in `imports.d.ts` (#3540) 2022-03-08 11:07:40 +01:00
Daniel Roe d404484c61
fix(vite, webpack): add missing dependencies (#3547) 2022-03-08 11:07:18 +01:00
Daniel Roe 856c01ab42
feat(bridge): auto-inject based on `provide` key from plugins (#3536) 2022-03-07 16:08:09 +01:00
Daniel Roe f1d2eb1335
chore: update to nuxt/eslint-config 8 (#3537) 2022-03-07 15:49:13 +01:00
Daniel Roe 919db5b514
fix(bridge): port nested `_nuxt` dir fix to bridge vite (#3538) 2022-03-07 15:37:42 +01:00
Dizzy 120ee4f795 feat!(nuxt3): extend auto imports on `generateApp` hook (#3480) 2022-03-07 11:41:33 +01:00
Daniel Roe 33ffd8be0a
fix(schema): allow untyped keys in nuxt config (#3527) 2022-03-07 11:37:01 +01:00
Daniel Roe 398b311ad6
fix(nitro): rename cold start -> nitro start (#3528) 2022-03-07 11:34:45 +01:00
Daniel Roe 78761c236b
fix(vite): handle base in `vite/preload-helper` (#3499) 2022-03-04 12:45:14 +01:00
Julian Martin 9f506ded60
fix(nitro): #3264 (#3399) 2022-03-03 20:35:42 +01:00
Ahad Birang 66605971a8
fix(test-utils): workaround playwright dynamic import issue with vite (#3489) 2022-03-03 20:03:48 +01:00
Anthony Fu ecee32988d
chore: migrate to `magic-string` (#3482) 2022-03-03 11:01:14 +01:00
Daniel Roe 494f85a2b2
fix(vite): narrow nuxt3 inlining config (#3474) 2022-03-02 18:54:53 +01:00
Daniel Roe 7b6252a444
feat(nuxi): add jsx option to generated tsconfig (#3449) 2022-03-01 19:25:23 +01:00
pooya parsa 39f7eb2cd2
fix(test-utils): improve random port allocation (#3398) 2022-02-28 22:41:44 +01:00
renovate[bot] 90e23c600c
chore(deps): update devdependency magic-string-extra to ^0.1.2 (#3445)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-28 20:27:04 +01:00
Anthony Fu a0f8a44e10
fix: sourcemap support for `nuxt:vite-relative-asset` (#3428) 2022-02-28 20:24:52 +01:00
Anthony Fu 0c99002351
fix: support sourcemap for `nuxt:pages-macros-transform` (#3429) 2022-02-28 20:21:03 +01:00
Anthony Fu 3888b0c338
fix: sourcemap support for `nuxt:components-loader` (#3439) 2022-02-28 20:20:41 +01:00
Daniel Roe 17bf70ae1c
fix(nuxt3): remove workaround for unfulfilled initial navigation (#3436)
* fix(router): remove error workaround

* chore: deduplicate vue-router

* chore: update lockfile

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-28 20:17:25 +01:00
renovate[bot] fcb200730d
chore(deps): update all non-major dependencies (#3434)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-28 20:08:45 +01:00
Daniel Roe 754ff0c9e7
feat: `.nuxtignore` support and `isIgnored` kit utility (#3424) 2022-02-28 17:11:46 +01:00
Dizzy d6102de08f
fix: remove redundant call to `generateApp` (#3426) 2022-02-28 15:49:41 +01:00
renovate[bot] a104f61683
chore(deps): update devdependency vitest to ^0.5.8 (#3415)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-28 12:29:16 +01:00
Daniel Roe 720e31d498
fix(schema): make postcss plugins a record type (#3403) 2022-02-28 12:28:16 +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 4cfad4d719
fix(vite): add cssnano dependency (#3402) 2022-02-26 00:01:54 +00:00
Anthony Fu 4ff1a954b3
test: add more tests (#3392) 2022-02-25 21:14:53 +01: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] a51bdd259e
chore(deps): update dependency @rollup/plugin-replace to v4 (#3367)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-25 12:47:08 +01:00
Daniel Roe c806d05b7a
fix(bridge): use typescript directory entry (#3365) 2022-02-25 12:45:45 +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 271289c4d6
fix(nuxi): don't clear screen on `nuxi dev --help` (#3372) 2022-02-24 17:18:13 +00: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
renovate[bot] a358bdad93
chore(deps): update all non-major dependencies (#3327)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-21 12:29:59 +01:00
Xin Du (Clark) 48cc6086e4
fix(config): add analyze plugin options in bridge mode (#3292) 2022-02-21 12:25:31 +01:00
renovate[bot] 69f24d262e
chore(deps): update all non-major dependencies (#3306)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-18 19:27:21 +01:00
Daniel Roe 70542a3af7
feat(nuxt3): expose `/app` export paths (#3323) 2022-02-18 19:26:43 +01:00
pooya parsa 12a95ad86c
test: rework tests using `@nuxt/test-utils` (#3308) 2022-02-18 19:14:57 +01:00
Daniel Roe 87eb7d0d39
perf!(nuxt3): disable global components by default (#3305) 2022-02-18 10:37:11 +01:00
renovate[bot] 3d258d304e
chore(deps): update dependency @babel/core to ^7.17.5 (#3300)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-17 18:11:36 +01:00
Daniel Roe 56aabd606d
fix(nuxt3,bridge): correctly reference router from client-side helper (#3281) 2022-02-17 18:11:21 +01:00
renovate[bot] 65d51d67ce
chore(deps): update all non-major dependencies (#3273)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-17 17:32:49 +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
renovate[bot] 7c3327a772
chore(deps): update all non-major dependencies (#3240) 2022-02-16 20:11:21 +01:00
Daniel Roe 289d54eb24
fix(bridge): execute metaInfo function (#3258) 2022-02-16 18:57:11 +01:00
Daniel Roe 3fccbfa252
fix(nuxt3): update meta return type to `bodyScriptsPrepend` (#3257) 2022-02-16 18:56:30 +01:00
renovate[bot] 4cd931e5ea
chore(deps): update dependency @netlify/functions to v1 (#3241)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-16 18:55:51 +01:00
Daniel Roe 7c9b0a358d
fix(bridge): add modules with hooks after all other modules (#3239) 2022-02-16 18:54:45 +01:00
Daniel Roe 07c14b8704
fix(bridge): add schema.d.ts to nuxt.d.ts (#3237) 2022-02-16 18:49:31 +01:00
Daniel Roe 60e672f335
chore(bridge): upgrade vite (#3238) 2022-02-15 18:01:54 +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 d046c9620b
feat(bridge): add support for `useNuxt2Meta` in plugins (#3187) 2022-02-15 10:50:40 +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
renovate[bot] 6a93719a89
chore(deps): update dependency pretty-bytes to v6 (#3217)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 10:42:41 +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
Anthony Fu 0ca3d5cf7d
chore: upgrade vitest (#3208) 2022-02-12 20:54:46 +01:00
renovate[bot] e90331a411
chore(deps): update all non-major dependencies (#3194)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-11 15:29:36 +01:00
pooya parsa c53c7360b7
feat: `@nuxt/test-utils` (#2952)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-02-11 14:22:58 +01:00
Anthony Fu 61188e15cf
fix(vite): hmr port priority (#3190) 2022-02-11 13:09:25 +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
renovate[bot] fd56fc62bb
chore(deps): update all non-major dependencies (#3149)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-10 18:30:59 +01:00
pooya parsa aece3518b5
feat(nuxt3): experimental nitropack support (#3160) 2022-02-10 18:29:59 +01:00
Anthony Fu 089160a541
fix(vite): assign different hmr port for each instance (#3169)
Co-authored-by: danielroe <danielroe@users.noreply.github.com>
2022-02-10 17:37:05 +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 4b17f0cbaf
docs(schema): clarify aliases and use more obvious example path (#3143)
* docs(schema): clarify aliases and use more obvious example path

* docs: add note

* Update packages/schema/build.config.ts

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

* docs: add more info about tsconfig

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-09 22:27:35 +01:00
renovate[bot] 650d7607ff
chore(deps): update all non-major dependencies (#3137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-09 12:51:10 +01:00
Daniel Roe 569aaeb314
fix(nitro): handle incoming cookies on lambda payload format 2.0 (#3136) 2022-02-09 12:50:57 +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 c02e3683eb
fix(bridge): respect `--fail-on-error` in generation (#3134)
* fix(bridge): respect `--fail-on-error` in generation

* fix: use `res.ok()`
2022-02-08 19:47:14 +01:00
renovate[bot] b98d08cf6a
chore(deps): update all non-major dependencies (#3133)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 17:25:10 +01:00
renovate[bot] 617766bcf5
chore(deps): update all non-major dependencies (#3117)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 17:13:17 +01:00
Daniel Roe a9ba1ca907
fix(bridge): support newer js targets with webpack (#3131) 2022-02-08 17:13:02 +01:00
Daniel Roe 0f9bcbf68f
fix(vite): invalidate client modules too (#3116) 2022-02-08 01:10:42 +01:00
Daniel Roe dabb72ed7c
fix(nuxt3): remove lookbehind for safari support (#3115) 2022-02-08 00:42:39 +01:00
Daniel Roe 8056b8e171
fix(nitro): treat bootrap dep as an entry file (#3106) 2022-02-07 22:58:12 +01:00
pooya parsa 82a7fd561b
feat(kit): `createResolver` utility (#3111) 2022-02-07 22:39:31 +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
Daniel Roe 22e6c857f6
fix(nitro): replace `global.` in fewer instances (#3107) 2022-02-07 21:50:39 +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
pooya parsa c9c0171b2d
refactor: rename `options.layers` to `options._extends` (#3109) 2022-02-07 19:44:48 +01:00
Daniel Roe 29171bd105
fix: sanitize import filenames in generated imports (#2216) 2022-02-07 14:45:47 +01:00
Daniel Roe 614e87e9f0
feat(nitro): add support for lambda v2 payload format (#3070)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-07 13:25:05 +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
Pascal Sthamer dcae6e276b
docs: update documentation for configs (#2819) 2022-02-07 11:20:53 +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 8fbdab8151
docs: update links to new vuejs.org site (#3091) 2022-02-07 11:16:45 +01:00
Daniel Roe 8edd4819c9
fix(bridge): don't instantiate vite builder if only preparing types (#3050) 2022-02-03 19:03:04 +01:00
Daniel Roe fae2179ee9
chore: replace constructors with types (#3056) 2022-02-03 19:02:55 +01:00
Daniel Roe c82d3533bc
fix(bridge): type `useNuxtApp()` (#3057) 2022-02-03 19:02:38 +01:00
Daniel Roe 5d7f99be1d
fix(bridge): add `nitro:generate` hook (#3044) 2022-02-03 13:12:40 +01:00
Ricardo Gobbo de Souza adc44a2d2b
feat(kit): add helper `addAutoImport` (#3030) 2022-02-03 12:31:15 +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
Ahad Birang ed4f4f51ab
fix(kit): load dotenv if option is missing (#3029) 2022-02-02 10:59:00 +01:00
Keith Bremner a3579b7a1c
docs: fix typo in nuxi analyze output (#3022) 2022-02-01 15:34:06 +00:00
pooya parsa 1672148a87
feat(kit): support config `extends` using `unjs/c12` (#3008) 2022-01-31 22:13:58 +01:00
Daniel Roe 083f90b719
refactor: extract `<NuxtLayout>` from `<NuxtPage>` (#3011) 2022-01-31 19:58:19 +01:00
renovate[bot] 18d8bb2019
chore(deps): update dependency dotenv to v15 (#3002)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-31 11:59:21 +01:00
renovate[bot] a43757b082
chore(deps): update all non-major dependencies (#2970)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-31 11:55:56 +01:00
Daniel Roe b110c8c96c
fix(vite): externalize config at rollup, not ssr level (#2971) 2022-01-31 11:54:48 +01:00
nandi95 88da7197ba
fix(nuxi): updated rmdir to rm and checked paths exists (#2968) 2022-01-28 12:32:09 +01:00
renovate[bot] 7db7fddc80
chore(deps): update all non-major dependencies (#2941)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-27 20:26:36 +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 6e06d2b4c9
feat(nuxi): clear cache on upgrade (#2936) 2022-01-26 18:25:11 +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
Daniel Roe d0bcc3fc82
fix(vite): only apply relative url fix to css assets (#2930) 2022-01-26 13:59:48 +01:00
renovate[bot] 4b1ea5741e
chore(deps): update dependency jiti to ^1.12.14 (#2929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-26 13:03:01 +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
renovate[bot] 696138794b
chore(deps): update dependency vite-plugin-vue2 to ^1.9.3 (#2909)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-25 17:45:45 +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
Daniel Roe b803fdb4f9
fix(vite): handle emitted assets with relative urls and dynamic base (#2851) 2022-01-24 13:57:24 +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
blazmrak 2b86345e9e
fix(bridge): build fails with SSR turned off (#2708) 2022-01-24 12:40:49 +01:00
Daniel Roe 83a959a67b
fix(nuxt3): allow customising page keys (#2859) 2022-01-24 11:35:28 +01:00
MrDizzystick a53246a1a4
docs(schema): fix typo (#2871) 2022-01-24 11:30:50 +01:00
Pooya Parsa e0cf2d7b5d fix(nitro): update dot-prop import 2022-01-21 13:37:51 +01:00
renovate[bot] 83c518de69
chore(deps): update dependency dot-prop to v7 (#2853)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-21 12:59:45 +01:00
Daniel Roe ed2d26f1b5
fix(schema): support inline module options (#2852) 2022-01-21 12:47:13 +01:00
Daniel Roe ae34f470a0
fix(nuxt3): explicitly declare type exports (#2850) 2022-01-21 12:42:41 +01:00
Daniel Roe 3b72b318e2
feat(nitro): support adding `node_modules` as middleware (#2826) 2022-01-21 12:39:22 +01:00
Daniel Roe d0d8e8311c
fix(nuxt3): normalize page paths ( for windows support) (#2825) 2022-01-21 10:54:11 +01:00
Daniel Roe beaa369892
fix(bridge): don't override existing `baseURL` property (#2827) 2022-01-21 10:51:29 +01:00
Daniel Roe cd42f62fb9
fix(nuxt3): export composable types (#2828) 2022-01-21 10:51:19 +01:00
Daniel Roe 9660cd8212
fix(webpack): prevent implicit externalising (#2829) 2022-01-21 10:50:34 +01:00
Daniel Roe 6abf75d40a
fix(bridge): set `app.basePath` (#2808) 2022-01-19 20:10:33 +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
Daniel Roe 7f62ed1e32
fix(nuxi): respect custom pages directory (#2813) 2022-01-19 19:07:25 +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 8588f749ad
fix(nitro): detect routes and middleware starting with dots (#2771) 2022-01-18 17:37:40 +01:00
Harlan Wilton 4bd7adae4a
feat(nuxi): call nuxt `listen` hook for dev (#2772) 2022-01-18 17:36:01 +01:00
Pooya Parsa 21b664cc74 feat(nuxi): use nuxt/starter by default for templates 2022-01-17 22:29:32 +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
Ahad Birang eb14eca702
fix(nitro): allow inlining subpath of externals (#2759) 2022-01-17 18:25:26 +01:00
Daniel Roe 0ed2d4a00b
fix(kit): don't ignore `@` alias (#2737) 2022-01-17 13:51:08 +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] 0eed770104
chore(deps): update dependency dotenv to v14 (#2750)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-17 11:50:18 +01:00
Daniel Roe 4728fd545e
fix(vite): invalidate virtual modules when templates are regenerated (#2725) 2022-01-17 11:49:53 +01:00
Daniel Roe 4111038aa7
chore: replace `substr` with `slice` (#2738) 2022-01-17 11:49:10 +01:00
Daniel Roe e27a0173e8
fix(bridge): add missing process flags for vite (#2736) 2022-01-17 11:44:56 +01:00
Daniel Roe 176716bdaf
feat(nitro): ssl nitro support in production (#2742) 2022-01-17 11:37:55 +01:00
Daniel Roe 4b351504e8
fix(vite): correctly import node builtins in dev bundler (#2753) 2022-01-17 11:36:44 +01:00
pooya parsa 33ebb01d7f
fix: upgrade vite to 2.7.12 (#2716)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-01-14 12:48:58 +01:00
renovate[bot] 4de167e246
chore(deps): update dependency globby to v12 (#2659) 2022-01-13 19:21:49 +01:00
renovate[bot] 300023923f
chore(deps): update all non-major dependencies (#2714)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-13 18:59:07 +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] 74be5a7416
chore(deps): update all non-major dependencies (#2676) 2022-01-13 14:13:58 +01:00
blazmrak e0fec80baf
fix(vite): build fails with ssr turned off (#2652) 2022-01-13 13:39:23 +01:00
Anthony Fu baa0853afa
feat(bridge): upgrade unplugin-vue2-script-setup (#2687) 2022-01-13 12:59:26 +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
renovate[bot] 31580f635c
chore(deps): update dependency estree-walker to v3 (#2658)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 18:42:29 +01:00
renovate[bot] 4d5e9b2930
chore(deps): update dependency dotenv to v11 (#2666)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 18:42:10 +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] d45869d6ce
chore(deps): update all non-major dependencies (#2618)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-07 10:49:33 +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 e9128f39a2
perf(ssr): disable vite's pre-trasnfroming to improve perf (#2574) 2022-01-05 19:31:24 +01:00
Anthony Fu 1155d1b4d4
fix(vite): only remove version query (#2587) 2022-01-05 19:28:04 +01:00
Anthony Fu 8fff48b8df
fix(bridge): install bridge module at the end (#2611) 2022-01-05 19:22:13 +01:00
Daniel Roe 6d88a7314d
fix(nitro): pass `Headers` to `createFetch` (#2615) 2022-01-05 19:19:23 +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
Anthony Fu cac70e4696
fix(vite): remove vite's query for external modules (#2521) 2021-12-23 14:43:41 +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
Pooya Parsa 5a7a979dcb fix(kit): add backward compatibility for deprecated module definition as function 2021-12-22 21:40:18 +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
Daniel Roe b5618e976b
feat(nuxi): add `nuxi preview` command for local testing (#2162)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-12-21 12:46:42 +01:00
Daniel Roe 279bfdc5b3
fix(bridge): respect custom `app.html` (#2339) 2021-12-20 21:24:43 +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 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
kazuya kawaguchi c53b6a5f2e
refactor(nuxt3): use the `@nuxt/kit` template utilites (#1908) 2021-11-15 20:20:51 +01:00
Tobias Diez a7eacfed88
fix(nitro): skip non existing externals (#1876)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 20:13:54 +01:00
Daniel Roe 4a3ba73f22
fix(nuxt3): enable `useAsyncData` and `useFetch` usage within plugins (#1933) 2021-11-15 17:34:39 +01:00
Anthony Fu fb2e8ccba5
fix(bridge): revert optimization exclusion for `vue-demi` (#1932) 2021-11-15 17:27:45 +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 4b367a1959
fix(bridge): ensure `vue` ts alias points to original vue (#1924) 2021-11-15 16:58:43 +01:00
Daniel Roe 36f3691bf8
fix(nuxi): create buildDir before writing types (#1930) 2021-11-15 16:55:32 +01:00
renovate[bot] 5786949d9b
chore(deps): update all non-major dependencies (#1837) 2021-11-15 13:09:26 +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
pooya parsa 850ef69a87
fix(bridge): disable legacy fetch polyfills (#1866) 2021-11-11 17:46:10 +01:00
Daniel Roe 7cc526ce69
fix(bridge): update `useContext` (#1871) 2021-11-11 17:33:06 +01:00
Anthony Fu 202617bdd1
fix(bridge): plugin default detection (#1847)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-11 14:58:43 +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
fgiraud 9b9843b501
docs: update doc meta (#1790)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-11-10 21:16:20 +01:00
renovate[bot] 02f3fd1451
chore(deps): update all non-major dependencies (#1828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-10 21:15:39 +01:00
pooya parsa 6eb4040b23
fix(vite): remove `global` replacement (#1835) 2021-11-10 21:15:26 +01:00
Daniel Roe 89aa7aa303
fix(nuxi): set `allowSyntheticDefaultImports` (#1827) 2021-11-10 17:39:19 +01:00
Daniel Roe f2d4c65edb
fix(nuxi): default to skipping lib check (#1824) 2021-11-10 14:18:25 +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
renovate[bot] fd9e56f2b8
chore(deps): update all non-major dependencies (#1807)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-10 13:12:11 +01:00
Xin Du (Clark) 256d9b1424
fix(webpack): detect postcss config and show warning (#1805) 2021-11-10 13:11:08 +01:00
Xin Du (Clark) 6ec518ff24
chore(lint): enable eslint on mjs (#1804) 2021-11-10 13:06:22 +01:00
renovate[bot] bf716f3978
chore(deps): update all non-major dependencies (#1743)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-09 13:55:48 +01:00
Daniel Roe 29599f06a1
feat(bridge): add `useNuxt2Meta()` composable (#1789) 2021-11-09 11:17:56 +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
Emil Akhadov 82d1741d52
fix(kit): normalize plugin imports paths (#1779) 2021-11-09 10:44:00 +01:00
Daniel Roe c577e1991e
chore: bump monaco version (#1784) 2021-11-08 11:52:23 +01:00
Anthony Fu ca557e7c0b
refactor(vite): reuse common modules (#1723) 2021-11-08 11:34:39 +01:00
Anthony Fu 39db33d625
fix(bridge): default export detection (#1774) 2021-11-08 11:33:42 +01:00
renovate[bot] 6bbe8153f6
chore(deps): update all non-major dependencies (#1736)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 16:13:41 +01:00
Daniel Roe 5b8e10f28e
fix(nuxt3): add missing auto imports (#1735) 2021-11-05 15:39:14 +01:00
Daniel Roe 90487fde0c
fix(vite): use `forEach` on NodeList not Element (#1734) 2021-11-05 14:54:13 +01:00
renovate[bot] 596c8c5476
chore(deps): update all non-major dependencies (#1708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 14:15:10 +01:00
Anthony Fu 4da062a120
refactor(vite): move analyzePlugin to a seperate file (#1710) 2021-11-05 09:58:03 +01:00
Anthony Fu 85d173d653
fix(vite): swap `<link>` style on dev ssr (#1712) 2021-11-05 09:55:53 +01:00
Anthony Fu 91b428eeea
fix(bridge): enable vite build by default (#1709) 2021-11-05 09:51:15 +01:00
renovate[bot] 6bd7186976
fix(deps): update dependency ohmyfetch to ^0.4.4 (#1705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 00:23:56 +01:00
pooya parsa 292b5243c7
fix(nuxi): allow starting `nuxi dev` with self signed certificate (#1699) 2021-11-04 19:40:02 +01:00
renovate[bot] de04b321d4
chore(deps): update all non-major dependencies (#1692)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 19:19:41 +01:00
Daniel Roe 6f1f12af16
fix(vite): expose underlying import errors (#1696) 2021-11-04 19:18:36 +01:00
pooya parsa 9b8d44d130
fix(kit): use closest nuxt package for `loadNuxt` (#1686) 2021-11-04 13:33:33 +01:00
Daniel Roe 2166661b17
fix(vite): remove relative vite workaround (#1646) 2021-11-04 12:25:46 +01:00
Daniel Roe 875deefafc
docs: add migration guide for bridge composition api (#1669)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-11-04 12:20:40 +01:00
renovate[bot] 529880ee6c
chore(deps): update all non-major dependencies (#1673)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 09:17:05 +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
Anthony Fu 85f39858e5
fix(vite, bridge): avoid vite resolving `tsconfig.json` (#1677) 2021-11-04 09:13:29 +01:00
renovate[bot] 89b1ea5385
chore(deps): update dependency mime to v3 (#1658)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 16:08:55 +01:00
pooya parsa 3cd4494770
fix(nitro): use random port for stackblitz (#1666) 2021-11-03 16:06:42 +01:00
pooya parsa c8b07a6a1c
chore: upgrade to std-env 3 (#1665) 2021-11-03 15:39:38 +01:00
renovate[bot] 6f934aa9d9
chore(deps): update all non-major dependencies (#1641)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 14:32:25 +01:00
Daniel Roe d30f4d86d2
fix: sanitize rollup-generated filenames (#1648)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-03 14:04:42 +01:00
Daniel Roe a62351af4d
fix(vite): normalize full windows paths (#1650) 2021-11-02 19:10:56 +01:00
Daniel Roe 37f86a06c1
fix(nuxi): satisfies isn't always default export (#1643) 2021-11-02 16:56:12 +01:00
Daniel Roe 0dd86de586
fix(nuxt3): use nuxt extensions for component discovery (#1649) 2021-11-02 16:27:42 +01:00
Anthony Fu aba2d224d0
fix(nitro): skip copying symlinks and directories (#1510) 2021-11-02 13:26:43 +01:00
Daniel Roe eb67eb919e
fix(vite): remove conflicting vite aliases (#1624) 2021-11-02 13:01:44 +01:00
Daniel Roe f010d0912b
feat(nuxt3): add `importMeta` types for vite and webpack (#1439)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-02 12:53:28 +01:00
Xin Du (Clark) 52cce01962
chore: remove duplicate camelCase import (#1637) 2021-11-02 12:38:12 +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
renovate[bot] 266578b76e
chore(deps): update all non-major dependencies (#1591)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-02 12:26:26 +01:00
Ahad Birang bd654364b9
fix(nuxt3): pass css text into children props (#1635) 2021-11-02 11:32:52 +01:00
James George 3056c26a48
chore: update help information (#1605) 2021-11-02 10:50:04 +01:00
Anthony Fu e58270a50f
fix(nuxt3): allows plugins without default export (#1618) 2021-11-02 10:49:45 +01:00
Daniel Roe 5aa33b807c
feat(bridge): allow accessing injections from `useNuxtApp` (#1623) 2021-11-02 10:45:44 +01:00
Daniel Roe 47e0721413
fix(nuxi, kit): import individual semver function (#1598) 2021-11-02 10:43:08 +01:00
Daniel Roe b49c62b335
fix(bridge): expose `nuxi` command (#1599) 2021-11-02 10:40:56 +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
Tasuku Uno a8b969a4dd
feat(nuxt3): support async function as nuxt.config (#1612) 2021-11-02 10:37:48 +01:00
Daniel Roe 348c82d55a
fix(nuxi): generate types with `nuxi generate` (#1625) 2021-11-02 10:31:35 +01:00
Daniel Roe 288e771205
fix(nitro): narrow replace call for template name (#1626) 2021-11-02 10:30:44 +01:00
renovate[bot] ddf45fbcc7
chore(deps): update all non-major dependencies (#1546)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 14:24:28 +02:00
pooya parsa 4e424d0d10
feat(nuxt3): support components with `global: false` and always enable transform (#1578) 2021-10-29 13:36:55 +02:00
Pooya Parsa b24c9348f7 fix(nuxt3): expose `nuxi` command 2021-10-29 13:31:56 +02:00
Levi (Nguyễn Lương Huy) 4c17b92b66
chore(docs): add code format using markdownlint (#1498) (#1556) 2021-10-29 13:26:01 +02:00
Anthony Fu c420e46efe
fix(nuxi): forward `nuxi generate` to `nuxt` on nuxt 2 (#1571) 2021-10-29 12:42:55 +02:00
Anthony Fu f60f461410
fix(bridge): detect existence of `@nuxt/bridge-edge` (#1575) 2021-10-29 12:13:59 +02:00
Pooya Parsa 8d1fcf3d69 fix(nuxi): remove nu alias
avoid conflicting with ni global install
2021-10-29 12:10:36 +02:00
Daniel Roe bdbfa36987
fix(vite): improve external checks for dev-bundler (#1538) 2021-10-29 10:43:07 +02:00
Anthony Fu 5eb8e072ee
refactor(nuxi): info output package manager version (#1564) 2021-10-29 10:41:04 +02:00
Daniel Roe d623fc0419
fix(nuxi): write types after nuxt is ready (#1551) 2021-10-29 10:31:39 +02:00
Daniel Roe 84e299f280
fix(kit): remove invalid portion of version from semver (#1555) 2021-10-29 10:27:37 +02:00
renovate[bot] 59de0f9218
chore(deps): update all non-major dependencies (#1519)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 16:49:07 +02:00
Daniel Roe f5aea9f742
fix(vite): don't replace `process.env` (#1543) 2021-10-28 16:48:42 +02:00
Daniel Roe f78ec933fe
fix(vite): remove aliases from inline list (#1520) 2021-10-27 16:41:52 +02:00
Daniel Roe 07ad7254e6
fix(nitro): resolve firebase package versions with `pkg-types` (#1490)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-27 16:29:04 +02:00
renovate[bot] 0520db6b22
chore(deps): update all non-major dependencies (#1508)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-27 16:01:11 +02:00
Anthony Fu 0c1860a056
feat(nuxi): support pnpm for nuxi upgrade (#1516) 2021-10-27 13:46:09 +02:00
Anthony Fu 0f329ea871
fix(bridge): fix fouc on vite (#1515) 2021-10-27 13:35:06 +02:00
Anthony Fu cf99fd2862
fix(vite): add missing `import.meta` functions (#1513) 2021-10-27 13:32:26 +02:00
Anthony Fu 00e25fa8e8
fix(vite): dev-bundler externality (#1507) 2021-10-27 12:55:08 +02:00
Anthony Fu 0326a31990
fix(nitro): fix regex for tracedFiles scanning (#1509) 2021-10-27 12:53:25 +02:00
Anthony Fu 7ede9b14d9
fix(bridge): can't enable vite mode (#1505) 2021-10-27 09:48:17 +00:00
ziga 245aa6b68f
fix(nitro): type inference for api routes returning promise (#1483) 2021-10-27 10:19:53 +02:00
renovate[bot] 3bc984d0c0
chore(deps): update all non-major dependencies (#1488)
close #1243, close #944
2021-10-27 10:19:32 +02:00
Daniel Roe 096f0679f7
fix(vite): set `#build/plugins` alias to empty string (#1489) 2021-10-27 08:03:10 +00:00
renovate[bot] 5ad4d3eae0
chore(deps): update dependency css-loader to ^6.5.0 (#1482)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 19:38:18 +02:00
Daniel Roe 41ff3b8efe
fix(nitro): support built `publicPath` (#1479) 2021-10-26 19:37:52 +02:00
renovate[bot] 876857db5e
chore(deps): update all non-major dependencies (#1481)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 19:36:52 +02:00
Mgs. M. Rizqi Fadhlurrahman 1f0cea6e7f
feat(nuxi): nuxi upgrade command (#1468)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-26 19:36:22 +02:00
renovate[bot] 83139d07e9
chore(deps): update all non-major dependencies (#1448)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 16:46:19 +02:00
Daniel Roe a0da91839a
fix(kit): ensure directory exists before writing virtual template (#1473) 2021-10-26 16:42:10 +02:00
Anthony Fu 46f858dd82
chore: move `nuxt-vite` to bridge (#1180)
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
Daniel Roe c672d8990a
feat(vite): pass vue options to vite plugin (#1452) 2021-10-26 14:49:18 +02:00
Levi (Nguyễn Lương Huy) 3761b064d0
chore(kit): refactor some configs with defu (#1459) 2021-10-26 11:47:30 +02:00
Pooya Parsa d2cc9e4bd0 fix(nitro): revert to main rollup import (closes #1445) 2021-10-25 18:32:20 +02:00
renovate[bot] a382bf02ff
chore(deps): update all non-major dependencies (#1425)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 16:25:51 +02:00
Anthony Fu 4f9c87b99a
fix(pkg): support node 17.x in the engines field (#1443)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-25 16:14:52 +02:00
Daniel Roe 79664ad611
fix(nuxi): ensure types are calculated on current nuxt instance (#1432) 2021-10-25 13:04:27 +02:00
Daniel Roe c6f769e94d
fix(nitro): inject payload for spa renderer (#1434) 2021-10-25 12:36:38 +02:00
Pooya Parsa ad7e7551ec fix(nitro): import rollup as cjs 2021-10-25 11:23:15 +02:00
James George 110b2b2680
fix(nuxi): validations for `--template` flag (#1412) 2021-10-24 16:48:02 +02:00
James George bd010313db
fix(nuxi): validate template argument (#1409) 2021-10-24 13:39:17 +02:00
renovate[bot] 9e3dfad172
chore(deps): update all non-major dependencies (#1384)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-24 13:24:58 +02:00
Daniel Roe 7d918e1457
refactor(nuxi): move `nuxt.d.ts` within `buildDir` (#1369) 2021-10-23 00:33:22 +02:00
Daniel Roe 8f119ab0cf
feat(kit): add `registerComponentDirectory` helper (#1379)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-10-23 00:28:18 +02:00
Daniel Roe 281790e036
feat: define nitro `#storage` and `#assets` types (#1377) 2021-10-23 00:25:49 +02:00
pooya parsa 06e9c7ebc1
fix(pkg): remove vue3 from peerDependencies (#1382) 2021-10-23 00:25:25 +02:00
Pooya Parsa 6943b7dd93 chore(deps): update unstorage to 0.3.x 2021-10-23 00:21:08 +02:00
renovate[bot] c8cb6c7ad1
chore(deps): update all non-major dependencies (#1333)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 19:04:28 +02:00
pooya parsa c80353637e
feat(nitro): update dependencies for node-fetch 3.x support (#1373) 2021-10-22 19:04:15 +02:00
Francisco Buceta 54549cfc61
fix(nitro): omit `/index` from generated api urls (#1371) 2021-10-22 19:04:02 +02:00
Pooya Parsa 1e69bc56bb fix(nitro): handle terminating uninitialized worker 2021-10-22 15:36:29 +02:00
Daniel Roe 018302cb0b
fix(nitro): update firebase preset to handle mjs output (#1360) 2021-10-22 13:57:21 +02:00
Daniel Roe fb4359e1a3
fix(nuxi): correct analyzer html (#1339) 2021-10-21 22:38:17 +02:00
Pooya Parsa 776539b809 fix(vite): add missing esbuild dependency 2021-10-21 22:18:39 +02:00
Daniel Roe f0b9474b40
feat(nuxi): bundle analyzer (#701)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-21 21:51:44 +02:00
Levi (Nguyễn Lương Huy) 694e95b2b4
feat(nuxt3): support `NuxtChild` component (#1301) (#1312) 2021-10-21 21:16:52 +02:00
pooya parsa bbeb6b50f5
fix(vite): inline incompatible extensions (#1332) 2021-10-21 21:02:10 +02:00
renovate[bot] 2350760854
chore(deps): update all non-major dependencies (#1319)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 20:55:59 +02:00
pooya parsa f04d6e3b53
fix(kit): use native import for esm modules (#1327) 2021-10-21 19:02:26 +02:00
Pooya Parsa b332462b2a fix(bridge): mark `defineNuxtMiddleware` as unsupprted
closes #1317
2021-10-21 17:59:42 +02:00
pooya parsa 9d40a271ee
feat(nitro): improve dev worker stability (#1303) 2021-10-21 13:54:55 +02:00
renovate[bot] 34910f1218
chore(deps): update all non-major dependencies (#1304)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 12:14:57 +02:00
pooya parsa d1214c9aae
fix(nitro): terminate active worker before replacing (#1302) 2021-10-20 21:28:01 +02:00
Pooya Parsa b421c81e84 fix(bridge): add missing `globby` and `scule` dependencies 2021-10-20 21:02:24 +02:00
Levi (Nguyễn Lương Huy) 7f7794787b
fix(nuxi): support `build:error` hook (#1298) 2021-10-20 20:50:01 +02:00
renovate[bot] bfa4a02ca3
chore(deps): update dependency postcss to ^8.3.10 (#1299)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 20:49:34 +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
Anthony Fu f7153a3172
fix(vite): default export for external packages (#1297) 2021-10-20 20:09:49 +02:00
Anthony Fu 92547d8547
fix(nitro): filter alias in `/_vfs` listing (#1296) 2021-10-20 19:30:42 +02:00
renovate[bot] 7c3b488b5f
fix: update externality to v0.1.1 (#1284)
resolves #1275
2021-10-20 15:01:09 +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
Ahad Birang ffb05fc734
fix(nitro): do not modify `event.request` for worker entries (#1279) 2021-10-20 12:54:02 +02:00
Daniel Roe 7df4590d77
fix(kit): remove globalName from v3 schema (#1277) 2021-10-20 12:32:17 +02:00
renovate[bot] 22acd39508
chore(deps): update all non-major dependencies (#1240)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 12:13:35 +02:00
Ahad Birang 3c962013b5
fix(nitro): bundle json files (#1245) 2021-10-20 12:13:21 +02:00
Daniel Roe d166b78e06
feat(vite): use `externality` to resolve externals for ssr dev bundler (#1172) 2021-10-20 11:50:29 +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
Yaël Guilloux c49f9ca648
fix(kit): improve `ScanDir` type (#1238) 2021-10-19 16:55:02 +02:00
Daniel Roe 2256b2b86a
fix(bridge): improve warnings for `@nuxtjs/composition-api` migration (#1237) 2021-10-19 14:17:18 +02:00
Pooya Parsa 4526af78a9 fix(pkg): downgrade node version to 14.16.x due to stackblitz issue
14.16.0 was released at 2021-02-23. hopefully most of platforms had time to migrate LTS.
2021-10-19 13:37:59 +02:00
Pooya Parsa 8db76fcf2e fix(pkg): downgrade node version to 14.17.x due to codesandbox issue 2021-10-19 13:24:51 +02:00
renovate[bot] 3fe3fb4dec
chore(deps): update dependency vite to ^2.6.10 (#1198)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 10:40:02 +02:00
OneNail 82fc3df8bb
chore(nuxt3): remove duplicate dependence (#1215) 2021-10-19 10:39:48 +02:00
Pooya Parsa 5e903ae176 fix(nuxt3): update legacy plugin (closes #1200) 2021-10-18 21:34:51 +02:00
pooya parsa d8d10febd5
feat!: add `engines.node` field and node.js version check (#1197) 2021-10-18 21:31:15 +02:00
Daniel Roe 0b634e19a3
fix(nuxt3): auto import types (#1203) 2021-10-18 21:30:14 +02:00
Pooya Parsa 225e3bafd4 fix(nuxi): ignore watch events if nuxt instance is not ready 2021-10-18 20:38:46 +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 80883cfb8f
fix(nitro): improve externals error handling (#1188) 2021-10-18 18:08:37 +02:00
Daniel Roe 47c004ac97
fix: improve type declarations (#1178) 2021-10-18 18:06:31 +02:00