Commit Graph

246 Commits

Author SHA1 Message Date
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
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 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
pooya parsa d68318f9d5
refactor: split schema to `@nuxt/schema` and simplify kit (#2059) 2021-11-21 17:14:46 +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
Daniel Roe c184211681
fix(bridge): add docs links and warnings for data composables (#2010) 2021-11-19 12:37:29 +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
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
Xin Du (Clark) c90bc50817
chore(lint): improve no-unused-vars rule (#1977) 2021-11-17 12:21:38 +01:00
Daniel Roe 496ea09777
fix(nuxi): ignore static check with `prepare` command (#1971) 2021-11-16 17:10:28 +01:00
Anthony Fu fb2e8ccba5
fix(bridge): revert optimization exclusion for `vue-demi` (#1932) 2021-11-15 17:27:45 +01:00
Daniel Roe 4b367a1959
fix(bridge): ensure `vue` ts alias points to original vue (#1924) 2021-11-15 16:58:43 +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 f298386795
feat(bridge, nuxt3): mock vue-demi (#1849)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-15 11:25:50 +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
pooya parsa 6eb4040b23
fix(vite): remove `global` replacement (#1835) 2021-11-10 21:15:26 +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) 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
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
Daniel Roe 5b8e10f28e
fix(nuxt3): add missing auto imports (#1735) 2021-11-05 15:39:14 +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 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
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 85f39858e5
fix(vite, bridge): avoid vite resolving `tsconfig.json` (#1677) 2021-11-04 09:13:29 +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 eb67eb919e
fix(vite): remove conflicting vite aliases (#1624) 2021-11-02 13:01:44 +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
Daniel Roe 5aa33b807c
feat(bridge): allow accessing injections from `useNuxtApp` (#1623) 2021-11-02 10:45:44 +01:00
Daniel Roe b49c62b335
fix(bridge): expose `nuxi` command (#1599) 2021-11-02 10:40:56 +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
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 f60f461410
fix(bridge): detect existence of `@nuxt/bridge-edge` (#1575) 2021-10-29 12:13:59 +02:00
Daniel Roe bdbfa36987
fix(vite): improve external checks for dev-bundler (#1538) 2021-10-29 10:43:07 +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
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 0f329ea871
fix(bridge): fix fouc on vite (#1515) 2021-10-27 13:35:06 +02:00
Anthony Fu 7ede9b14d9
fix(bridge): can't enable vite mode (#1505) 2021-10-27 09:48:17 +00: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
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
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
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
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 281790e036
feat: define nitro `#storage` and `#assets` types (#1377) 2021-10-23 00:25:49 +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
Pooya Parsa b332462b2a fix(bridge): mark `defineNuxtMiddleware` as unsupprted
closes #1317
2021-10-21 17:59:42 +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) a3058eebae
test(nuxt3): add unit tests for `generateRoutesFromFiles` (#261) (#1227)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-20 20:12:55 +02:00
Daniel Roe 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
pooya parsa d8d10febd5
feat!: add `engines.node` field and node.js version check (#1197) 2021-10-18 21:31:15 +02:00
pooya parsa 035e9b5e8b
refactor: rename `app` to `vueApp` (#1177) 2021-10-18 20:31:37 +02:00
renovate[bot] 9357d0895d
chore(deps): update dependency mlly to ^0.2.10 (#1170)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 15:40:56 +02:00
pooya parsa 0ab477cad0
feat(auto-imports): allow extending with config and hooks (#1167) 2021-10-18 15:39:53 +02:00
Daniel Roe 0c937339b9
fix(bridge): typo fix (#1168) 2021-10-18 14:47:26 +02:00
Daniel Roe adf497046b
fix(bridge): do not resolve esm babel helpers (#1158) 2021-10-18 12:12:01 +02:00
renovate[bot] cba4c4202b
chore(deps): update all non-major dependencies (#1156)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 11:41:29 +02:00
renovate[bot] 4f050e50bf
chore(deps): update all non-major dependencies (#989) 2021-10-18 10:50:46 +02:00
Daniel Roe ab7aef8a13
fix(bridge): add `useState` to auto-imports (#1087) 2021-10-18 10:02:23 +02:00
Daniel Roe 4a34c2a75b
fix(bridge): add vuex alias (#1026) 2021-10-14 14:11:21 +02:00
Daniel Roe d5127e95ac
fix(bridge): alias direct references to vue files (#847) 2021-10-12 22:16:43 +02:00
Daniel Roe b6065a2edf
fix(bridge): remove circular reference (#844) 2021-10-12 22:02:07 +02:00
Daniel Roe 2a0afbd092
fix(bridge): define `head` with `vue-meta` type (#784) 2021-10-12 17:22:37 +02:00
Daniel Roe 7bf2412eae
refactor(bridge): implement `ssrRef` with `useState` (#787) 2021-10-12 17:22:06 +02:00
Anthony Fu 2fb58ae2be
feat(bridge): init function for `useState` (#773) 2021-10-12 16:49:18 +02:00
Matt Kane 70c0d8eedb
chore: change `Nuxt3` to `Nuxt 3` (#764) 2021-10-12 16:19:58 +02:00
renovate[bot] 2e87a76721
chore(deps): update all non-major dependencies (#742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-12 16:04:31 +02:00
Sébastien Chopin 95779c3d5f
chore: add readme to packages (#727)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-12 03:38:17 +02:00
pooya parsa 54c57e3987
feat(nuxt3): `useFetch` (#721) 2021-10-12 00:36:50 +02:00
pooya parsa 666b7f1ba8
feat: `useState` composable (#719) 2021-10-11 19:48:03 +02:00
renovate[bot] 0dcbd4a682
chore(deps): update all non-major dependencies (#704)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 15:30:04 +02:00
Daniel Roe b005b2403f
feat(nitro): automatically type middleware/api routes (#708) 2021-10-11 15:29:02 +02:00
Anthony Fu a4e903e55e
fix(bridge): use esm for `unplugin-vue2-script-setup` (#690) 2021-10-11 10:21:45 +02:00
Anthony Fu bade471dcf
refactor: rename `global-imports` to `auto-imports` (#706) 2021-10-11 10:07:27 +02:00
renovate[bot] 27666063ea
chore(deps): update all non-major dependencies (#649)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-08 16:22:23 +02:00
pooya parsa 2bf645bd73
refactor(nuxt3): cleanup data fetching and improved `useAsyncData` (#699) 2021-10-08 16:21:55 +02:00
Daniel Roe 8df29679ce
fix(bridge): don't rely on auto-imports in internal plugin (#700) 2021-10-08 09:17:58 +02:00
Daniel Roe cc2279bd8a
refactor(nuxi): extract nitro types to corresponding modules (#668)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-07 12:09:09 +02:00
Pooya Parsa 45726616b2 fix(bridge): add meta to cjs wrapper (closes #671) 2021-10-07 10:43:00 +02:00
Daniel Roe 11490cdd7d
feat(bridge): add support for `<script setup>` (#678) 2021-10-07 10:31:29 +02:00
Daniel Roe 0aa6fbf5ef
fix(bridge): automatically transpile all modules (and sanitize transpiles) (#677) 2021-10-06 19:59:35 +02:00
Daniel Roe ac16127a13
fix(bridge): detect conflict with `@nuxt/typescript-build` usage (#672) 2021-10-06 17:39:13 +02:00
Daniel Roe 2fc0829dd2
fix(bridge): don't error with `defineNuxtMiddleware` (#676) 2021-10-06 17:36:24 +02:00
Daniel Roe a07b67ce57
feat(bridge): use `useMeta` in bridge projects (#664) 2021-10-06 14:37:45 +02:00
pooya parsa dd73a8bcad
feat: export `defineNuxtConfig` from `nuxt3` and `@nuxt/bridge` (#669) 2021-10-06 14:31:52 +02:00
Daniel Roe 0213adcd20
fix(bridge): emit types for module (#660) 2021-10-05 22:47:58 +02:00
Daniel Roe 599a2462f1
refactor(bridge): use babel typescript plugin instead of nuxt-swc (#653) 2021-10-05 21:18:09 +02:00
Pooya Parsa 2b1bf4824e chore: update base major versions to 3.x for simplicity 2021-10-05 17:09:24 +02:00
renovate[bot] 21a3e44fdb
chore(deps): update all non-major dependencies (#637) 2021-10-05 13:09:32 +02:00
Daniel Roe d51ed1e6aa
fix(bridge): resolve `browser` condition above `main` for client (#641) 2021-10-04 22:25:27 +02:00
Daniel Roe 0a9342c02d
fix: add main entrypoints for packages (#629) 2021-10-03 01:39:51 +02:00
pooya parsa 45b4946026
feat(nuxt3, bridge): useRuntimeConfig (#625)
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-10-02 22:30:20 +02:00
renovate[bot] e9a903f136
chore(deps): update dependency nuxt-vite to ^0.3.4 (#624)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 20:40:25 +02:00
Anthony Fu 9503d62607
feat(kit, bridge): version constraint utils and checks (#442)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-02 20:31:00 +02:00
Pooya Parsa eb0332126e fix(bridge): import nuxt3 src from relative path 2021-10-02 20:04:02 +02:00
renovate[bot] 03754d9ff7
chore(deps): update dependency mlly to ^0.2.4 (#622)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 19:00:10 +02:00
Daniel Roe b712de9aa2
feat(bridge): enable automatic global imports for nuxt2 (#609) 2021-10-02 18:59:32 +02:00
pooya parsa 6e496373f3
feat: use native esm for all packages (#539) 2021-10-02 18:01:17 +02:00
renovate[bot] d4b9862b3d
chore(deps): update dependency nuxt-vite to ^0.3.2 (#620)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 16:06:35 +02:00
Pooya Parsa 64c73b09a1 chore(bridge): add missing defu dependency 2021-10-02 15:43:21 +02:00
Daniel Roe 71e71d1327
feat(bridge, nuxt3): expose equivalent `useRoute` and `useRouter` com… (#615) 2021-10-02 14:32:28 +02:00
renovate[bot] d2214c4ee4
chore(deps): update all non-major dependencies (#606)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 13:54:10 +02:00
Daniel Roe a2da8a0a83
fix(bridge): add additional vue composition-api resolutions (#614) 2021-10-02 13:47:58 +02:00
Daniel Roe 2b51af76d8
feat(bridge): better resolution within wp4 (with fallback) (#608) 2021-10-02 13:44:30 +02:00
renovate[bot] a5f446ca6a
chore(deps): update all non-major dependencies (#593)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 20:28:57 +02:00
Daniel Roe 041b60f48e
fix(bridge): downgrade estree-walker dependency (#600) 2021-09-29 20:16:16 +02:00
Pooya Parsa 4837b92e57 fix(bridge): add implicit dependencies 2021-09-29 16:33:09 +02:00
renovate[bot] aaaeb826ba
chore(deps): update all non-major dependencies (#565) 2021-09-29 12:53:41 +02:00
Daniel Roe ad9d2d1906
feat(bridge): add support for legacy composition api helpers (#584) 2021-09-29 12:38:44 +02:00
pooya parsa 6329a681e4
refactor: migrate from upath to pathe (#553) 2021-09-27 14:49:36 +02:00
Daniel Roe 3bf856830b
feat(bridge): add `useNuxtApp` and `defineNuxtPlugin` composables (#576) 2021-09-25 10:24:37 +02:00
renovate[bot] 2bae698c18
chore(deps): update all non-major dependencies (#548)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-22 17:58:48 +02:00
pooya parsa fc019b8816
feat(bridge): enable composition-api (#551) 2021-09-22 17:34:11 +02:00
Pooya Parsa e2d216e4ee chore: ping unbuild to latest for sub packages
closes #457
2021-09-21 18:59:37 +02:00
renovate[bot] b06e90d336
chore(deps): update all non-major dependencies (#540)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 18:53:25 +02:00
pooya parsa 62647844b5
chore: update to unbuild 0.5.x (#545) 2021-09-21 18:49:36 +02:00
renovate[bot] 3671cfc772
chore(deps): update dependency node-fetch to v3 (#464)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 21:00:14 +02:00
renovate[bot] a6c7ee1828
chore(deps): update all non-major dependencies (#517)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-10 09:24:55 +02:00
renovate[bot] f468ad59e4
chore(deps): update all non-major dependencies (#502)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 20:11:07 +02:00
renovate[bot] 0c5234b8c0
chore(deps): update all non-major dependencies (#495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 13:09:14 +02:00
Ahad Birang 3304f75b50
fix(bridge): handle `ssr: false` (#489) 2021-09-06 13:37:58 +02:00
Pooya Parsa 9c14b886e8 fix(bridge): generate `dist/runtime` 2021-09-06 00:01:33 +02:00
Pooya Parsa 0b3271d275 fix(bridge): set webpack as implicit external 2021-09-06 00:00:07 +02:00
renovate[bot] 9f7438afb1
chore: update all non-major dependencies and add `node` to nitro external conditions (#440)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-05 23:54:12 +02:00
pooya parsa 44458fcbbb
feat: nuxt bridge (#459) 2021-09-05 23:21:33 +02:00