Commit Graph

539 Commits

Author SHA1 Message Date
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
pooya parsa
b03cdb7114
feat!(nuxt3): use individual config layers for extending (#3717) 2022-03-16 21:36:30 +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
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
Anthony Fu
ae8b35173e
fix(macros): ignore nullish id for transform (#3697) 2022-03-16 11:52:05 +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
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
Daniel Roe
7bf338da8c
feat(nuxt3)!: enable using <NuxtLayout> without pages integration (#3610) 2022-03-14 11:47:24 +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
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
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
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
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]
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
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
f1d2eb1335
chore: update to nuxt/eslint-config 8 (#3537) 2022-03-07 15:49:13 +01:00
Dizzy
120ee4f795 feat!(nuxt3): extend auto imports on generateApp hook (#3480) 2022-03-07 11:41:33 +01:00
Anthony Fu
ecee32988d
chore: migrate to magic-string (#3482) 2022-03-03 11:01:14 +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
Daniel Roe
52d22feaea
fix(nuxt3): share scanned components with loader (#3396)
* fix(nuxt3): share scanned components with loader

* refactor: remove `src` type from input

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

* fix: use shared context for extending components too

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2022-02-28 11:07:20 +01:00
renovate[bot]
9b19b9f366
chore(deps): update all non-major dependencies (#3400)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 19:38:00 +00:00
Daniel Roe
73ba30fb69
refactor(schema,webpack)!: split out webpack and postcss build options (#2812)
* refactor: split out webpack and postcss build options

* feat(schema): set nuxt3 builder in config

* fix(schema): default postcss config file to false

* chore: update lockfile

* style: remove unused imports

* refactor(webpack): remove (previously disabled) babel config

* refactor: move shared vite options into schema

* fix(schema): omit __NUXT_BASE__ from defaults

* fix: move appDir-dependent options back to vite

* refactor: split out virtual modules

* refactor: extract compile/createDevMiddleware

* refactor: further improvements

* chore: remove `@nuxt/webpack-builder` dependency

* chore: update lockfile

* refactor: move `builder` option to top level

* fix: bind close to watcher instance

* chore: update lockfile

* fix: create portal between postcss & build.postcss.postcssOptions

* fix: remove duplicate

* fix: revert

* fix: use `postcss` directly

* fix: import builder from rootDir

* chore: dedupe webpack install

* test: update fixture to use `builder`

* fix: bind class in pify

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-25 20:11:01 +01:00
Daniel Roe
2b3dbed594
fix(nuxt3): only warn within error handling routine (#3394) 2022-02-25 17:33:27 +01:00
Daniel Roe
e45a780714
fix(vite,webpack): disable async entrypoint by default (#3375)
* fix(vite): don't use async entry

* fix: use async entry when built

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

* refactor: move to experimental.asyncEntry

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

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

* Update packages/vite/src/vite.ts

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

* style: remove double space

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-25 13:42:34 +01:00
renovate[bot]
5c1f2fad83
chore(deps): update all non-major dependencies (#3347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-25 12:39:10 +01:00
Daniel Roe
d007d02356
fix: only warn about error handlers on client-side (#3345) 2022-02-25 12:04:58 +01:00
Daniel Roe
ac63401700
fix(nuxt3): don't add superfluous templates (#3366) 2022-02-25 11:16:24 +01:00