Closed renovate[bot] closed 1 year ago
Latest commit: cc183a9ceb0925df756b7ffd802d41fac3ecfd89
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR contains the following updates:
3.0.0
->3.3.1
3.0.0
->3.3.1
18.14.6
->18.15.3
5.54.1
->5.55.0
5.54.1
->5.55.0
8.35.0
->8.36.0
4.1.4
->4.2.0
Release Notes
nuxt/nuxt
### [`v3.3.1`](https://togithub.com/nuxt/nuxt/releases/tag/v3.3.1) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.3.0...v3.3.1) > **3.3.0** is a minor (feature) release with lots of new features to play with. **3.3.1** was a swiftly following release to patch an issue with nuxi on Windows. ##### 👀 Highlights ##### ✨ Local module development DX We've landed a raft of changes to enable local modules and improve DX. We now auto-scan your `~/modules` folder and register top level files there as modules in your project ([https://github.com/nuxt/nuxt/pull/19394](https://togithub.com/nuxt/nuxt/pull/19394)). When these files are changed, we'll automatically restart the nuxt server. ```diff export default defineNuxtConfig({ modules: [ '@nuxtjs/tailwindcss', - '~/modules/purge-comments' ] }) ``` We also now expose `nuxt/kit` for easy access to kit composables in your local project without having to install `@nuxt/kit` ([https://github.com/nuxt/nuxt/pull/19422](https://togithub.com/nuxt/nuxt/pull/19422)). ##### ♻️ Restarting Nuxt You can add files to the `watch` array to automatically restart the server ([https://github.com/nuxt/nuxt/pull/19530](https://togithub.com/nuxt/nuxt/pull/19530)). This is likely to be particularly useful for module authors. You can also trigger a restart of the Nuxt server with the new `restart` hook ([https://github.com/nuxt/nuxt/pull/19084](https://togithub.com/nuxt/nuxt/pull/19084)). We also landed a couple of fixes on restarting the Nuxt server which should improve your experience when developing. ##### 🔥 Performance improvements We've increased static asset maxAge to 1yr as a matter of best practice ([https://github.com/nuxt/nuxt/pull/19335](https://togithub.com/nuxt/nuxt/pull/19335)), and support tree-shaking more of your build ([https://github.com/nuxt/nuxt/pull/19508](https://togithub.com/nuxt/nuxt/pull/19508)). We also now support preloading `- 🪄 **Automatically inferred return type** for `useFetch` and `$fetch` based on method. > It'll be a type error to use the wrong method when hitting an endpoint. > > Plus, if you have multiple methods served by a single endpoint (like `~/server/api/test.get.ts` and `~/server/api/test.post.ts` then the response type will match the kind of response you make. - 🍪 `useFetch` is now integrated with `event.$fetch`, meaning **cookies and context are now passed to api requests automagically** within internal requests. - 🔥 We now **treeshake client-only components** out of the server build more effectively using the experimental `treeshakeClientOnly` feature > This is turned on by default but if you experience any issues, you can turn this off via: > > ```js > export default defineNuxtConfig({ > experimental: { > treeshakeClientOnly: false > } > }) > ``` - 🛠️ New **`addRouteMiddleware` kit utility** for module authors - 💪 **Nitropack v2.2** has been released > Lots of features, including runtime proxy support using route rules, nested fetch calls, binary and raw storage operations, exposed `event.context.cf` (cloudflare) and built-in session support. > > For full details see [release notes](https://togithub.com/unjs/nitro/blob/main/CHANGELOG.md#v220) #### Changelog [compare changes](https://togithub.com/nuxt/nuxt/compare/v3.1.2...v3.2.0) ##### 🚀 Enhancements - **kit:** Add `addRouteMiddleware` method ([#18553](https://togithub.com/nuxt/nuxt/pull/18553)) - **cli:** Warn when prerendering routes with `ssr: false` ([#18783](https://togithub.com/nuxt/nuxt/pull/18783)) - **schema:** Add type hints for runtime config ([#18652](https://togithub.com/nuxt/nuxt/pull/18652)) - **nuxt:** Support type auto-import ([#18859](https://togithub.com/nuxt/nuxt/pull/18859)) - **nuxt:** Infer `useFetch` return based on the method ([#18526](https://togithub.com/nuxt/nuxt/pull/18526)) - **cli:** Add initial support for enabling/disabling devtools ([#18864](https://togithub.com/nuxt/nuxt/pull/18864)) - **nuxt:** Upgrade to nitropack 2.2 ([#18889](https://togithub.com/nuxt/nuxt/pull/18889)) ##### 🔥 Performance - **vite:** Use stub entry in vite server build when ` ssr: false ` ([#18782](https://togithub.com/nuxt/nuxt/pull/18782)) ##### 🩹 Fixes - **nuxt:** Treeshake client-only components with placeholders ([#8789](https://togithub.com/nuxt/nuxt/pull/8789)) - **webpack:** Client-side typechecking when `ssr: false` ([#18828](https://togithub.com/nuxt/nuxt/pull/18828)) - **vite:** Exclude styles, not all assets ([#18752](https://togithub.com/nuxt/nuxt/pull/18752)) - **nuxt:** Defer adding route path to preloaded record ([#18862](https://togithub.com/nuxt/nuxt/pull/18862)) - **nuxt:** Don't exclude pnpm layers from nitro esbuild/imports ([#9952](https://togithub.com/nuxt/nuxt/pull/9952)) - **nuxt:** Use parser to treeshake `
- Jenni
- Arun Govil
- 华晨
- Inesh Bose
- Theo Ephraim
### [`v3.1.1`](https://togithub.com/nuxt/nuxt/releases/tag/v3.1.1)
[Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.1.0...3.1.1)
> **3.1.1** is a bugfix release to address a problem rendering components injected by Vue or Nuxt plugins.
#### Update notes
There's also a [Nitro upgrade to v2.1.0](https://togithub.com/unjs/nitro/blob/main/CHANGELOG.md) released shortly after v3.1.1, so when upgrading, please either run `nuxt upgrade --force` or refresh your lockfile.
#### Changelog
[compare changes](https://togithub.com/nuxt/nuxt/compare/v3.1.0...v3.1.1)
##### 🩹 Fixes
- **nuxt:** Do not override inferred type of `` ([#18495](https://togithub.com/nuxt/nuxt/pull/18495))
- **nuxt:** Don't render unknown components with placeholder ([#18494](https://togithub.com/nuxt/nuxt/pull/18494))
- **vite:** Ensure newly created pages do not return 404 ([#18447](https://togithub.com/nuxt/nuxt/pull/18447))
- **nuxt:** Async transform for inline middleware ([#18460](https://togithub.com/nuxt/nuxt/pull/18460))
- **nuxt:** Augment interfaces exported from `vue` ([#18505](https://togithub.com/nuxt/nuxt/pull/18505))
##### 📖 Documentation
- Remove useNuxtData release alert ([#18488](https://togithub.com/nuxt/nuxt/pull/18488))
- Simplify the docs directory ([#18506](https://togithub.com/nuxt/nuxt/pull/18506))
- Add info about server-components async limits ([#18513](https://togithub.com/nuxt/nuxt/pull/18513))
- Keep `app.vue` file name consistent ([#18517](https://togithub.com/nuxt/nuxt/pull/18517))
##### ❤️ Contributors
- Daniel Roe
- 华晨
- Fabian B
- Sébastien Chopin
- Mahdi Boomeri
### [`v3.1.0`](https://togithub.com/nuxt/nuxt/releases/tag/v3.1.0)
[Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.0.0...v3.1.0)
> **3.1.0** is the first minor release after [Nuxt 3.0](https://togithub.com/nuxt/framework/releases/tag/v3.0.0) including bug fixes and enhancements.
💬 [**Release Discussion**](https://togithub.com/nuxt/nuxt/discussions/18486)
#### 👀 Highlights
- 📖 Lots of improvements to the documentation and website (you can already see them in [nuxt.com](https://nuxt.com))
- 🏝️ Experimental component Islands and [server only components](https://nuxt.com/docs/guide/directory-structure/components#server-components)
- ✨ New `onNuxtReady`, `useNuxtData` and `useSeoMeta` composables
- ﹛ experimental [config schema](https://togithub.com/nuxt/nuxt/pull/18410) (for module or theme authors)
- 💪 Upgraded to [Nitropack v2](https://togithub.com/unjs/nitro/releases/tag/v2.0.0)
- ⚡️ Migrated to [Vite 4](https://vitejs.dev/blog/announcing-vite4.html) and [Rollup 3](https://togithub.com/rollup/rollup/blob/master/CHANGELOG.md#300).
#### Changelog
[compare changes](https://togithub.com/nuxt/nuxt/compare/v3.0.0...chore/v3.1.0)
##### 🚀 Enhancements
- **nuxt:** Experimental server component islands ([#5689](https://togithub.com/nuxt/framework/pull/5689))
- **nuxt:** Add `onNuxtReady` composable ([#9478](https://togithub.com/nuxt/framework/pull/9478))
- `useNuxtData` composable ([#9262](https://togithub.com/nuxt/framework/pull/9262))
- **nuxt:** Support for extending error.vue in layers ([#9521](https://togithub.com/nuxt/framework/pull/9521))
- **vite:** Upgrade to vite 4 ([#9238](https://togithub.com/nuxt/framework/pull/9238))
- **nuxt:** Deep watch `useCookie` ref value by default ([#9664](https://togithub.com/nuxt/framework/pull/9664))
- **vite:** Display production build stats ([#9761](https://togithub.com/nuxt/framework/pull/9761))
- **nuxt:** Server-only components ([#9972](https://togithub.com/nuxt/framework/pull/9972))
- **imports:** `imports:context` hook for unimport context ([#9971](https://togithub.com/nuxt/framework/pull/9971))
- **vite:** Support `build.transpile` as function ([#7767](https://togithub.com/nuxt/framework/pull/7767))
- **nuxt:** Prefetch middleware/layouts + await layout loading ([#10155](https://togithub.com/nuxt/framework/pull/10155))
- **nuxt:** Support server components with extracted payloads ([#10113](https://togithub.com/nuxt/framework/pull/10113))
- **kit:** Add `extendRouteRules` method ([#9771](https://togithub.com/nuxt/framework/pull/9771))
- **nuxt:** Allow disabling color for `` ([#18432](https://togithub.com/nuxt/nuxt/pull/18432))
- **head:** `useSeoMeta` composable ([#18441](https://togithub.com/nuxt/nuxt/pull/18441))
- Experimental config schema ([#18410](https://togithub.com/nuxt/nuxt/pull/18410))
##### 🔥 Performance
- **nuxt:** Use static import of `@unhead/ssr` ([#9826](https://togithub.com/nuxt/framework/pull/9826))
- **nuxt:** Add tree-shaken `useServerSeoMeta` composable ([#18476](https://togithub.com/nuxt/nuxt/pull/18476))
##### 🩹 Fixes
- Remove `postcss.config` from schema ([#9181](https://togithub.com/nuxt/framework/pull/9181))
- **nuxt:** Include missing `` component props ([#9204](https://togithub.com/nuxt/framework/pull/9204))
- **nuxt:** Allow layouts to receive custom props ([#9395](https://togithub.com/nuxt/framework/pull/9395))
- **test-utils:** Do not hide vitest output ([#9442](https://togithub.com/nuxt/framework/pull/9442))
- **nuxt:** `useCookie` with defaults should return non-null value ([#9449](https://togithub.com/nuxt/framework/pull/9449))
- **nuxt:** Defer render-blocking prefetches until after load ([#9475](https://togithub.com/nuxt/framework/pull/9475))
- **nuxt:** Speculation rules should be reactive ([#9472](https://togithub.com/nuxt/framework/pull/9472))
- **kit:** Support applying `.nuxtignore` within external layers ([#9599](https://togithub.com/nuxt/framework/pull/9599))
- **nuxt:** Remove deprecated `req`/`res` access ([#9636](https://togithub.com/nuxt/framework/pull/9636))
- **nuxt:** Await plugin asyncdata promises in nuxt hook ([#9616](https://togithub.com/nuxt/framework/pull/9616))
- **schema:** Add hookable dependency ([#9648](https://togithub.com/nuxt/framework/pull/9648))
- **vite:** Skip *only* vite transform middleware ([#9602](https://togithub.com/nuxt/framework/pull/9602))
- **nuxt:** Remove absolute paths from routes objects ([#9655](https://togithub.com/nuxt/framework/pull/9655))
- **nuxt:** Make dev-only regexp less greedy ([#9679](https://togithub.com/nuxt/framework/pull/9679))
- **nuxt:** Set is loading state for `` after throttle ([#9832](https://togithub.com/nuxt/framework/pull/9832))
- **cli:** Show an error if no value is supplied for the `--template` flag ([#9946](https://togithub.com/nuxt/framework/pull/9946))
- **vite:** Defer to nitro to copy public dir ([#10013](https://togithub.com/nuxt/framework/pull/10013))
- **nuxt:** Include components `runtime` dir in build output ([#10046](https://togithub.com/nuxt/framework/pull/10046))
- **nuxt:** Add `build.transpile` strings to nitro inline list ([#10094](https://togithub.com/nuxt/framework/pull/10094))
- **nuxt:** Support deep assign on empty object for app config ([#10087](https://togithub.com/nuxt/framework/pull/10087))
- **nuxt:** Don't short circuit middleware after validate function ([#9180](https://togithub.com/nuxt/framework/pull/9180))
- **nuxt:** Don't try to override computed layouts in `definePageMeta` ([#9161](https://togithub.com/nuxt/framework/pull/9161))
- **nuxt:** Allow overriding lower layer composables ([#10017](https://togithub.com/nuxt/framework/pull/10017))
- **nuxt:** Update `class` prop type for head components ([#9133](https://togithub.com/nuxt/framework/pull/9133))
- **nuxt:** Avoid injecting url helpers into `globalThis` ([#9627](https://togithub.com/nuxt/framework/pull/9627))
- **nuxt:** Name anonymous components in render tree ([#10011](https://togithub.com/nuxt/framework/pull/10011))
- **vite:** Add additional before skipping vite transform ([#10120](https://togithub.com/nuxt/framework/pull/10120))
- **kit:** Resolve group syntax of `ignore` ([#15884](https://togithub.com/nuxt/nuxt/pull/15884))
- **nuxt:** Use query for hashing the fetch key ([#18411](https://togithub.com/nuxt/nuxt/pull/18411))
- **cli:** Prevent showing stack traces while scaffolding ([#9962](https://togithub.com/nuxt/framework/pull/9962))
- **nuxt:** Provide types for modules as array ([#18416](https://togithub.com/nuxt/nuxt/pull/18416))
- **vite:** Don't skip loading styles in hydration phase ([#18433](https://togithub.com/nuxt/nuxt/pull/18433))
- **vite:** Enable css sourcemaps in dev based on `sourcemap` ([#18446](https://togithub.com/nuxt/nuxt/pull/18446))
- **nuxt:** Await async `callWithNuxt` calls ([#18443](https://togithub.com/nuxt/nuxt/pull/18443))
- **nuxt:** Let router handle internal redirects within middleware ([#18445](https://togithub.com/nuxt/nuxt/pull/18445))
- **nuxt:** Import `onServerPrefetch` ([629d2c099](https://togithub.com/nuxt/nuxt/commit/629d2c099))
- Upgrade unimport, close [#15594](https://togithub.com/nuxt/nuxt/issues/15594) ([#15594](https://togithub.com/nuxt/nuxt/ssue/15594))
- Upgrade unimport ([#18475](https://togithub.com/nuxt/nuxt/pull/18475))
##### 💅 Refactors
- **jobs:** Remove unused asset ([#9116](https://togithub.com/nuxt/framework/pull/9116))
- **nuxt:** Fix typo in internal plugin names ([#9201](https://togithub.com/nuxt/framework/pull/9201))
- **nuxt:** Use `pathe.join` for layer lookup ([#9540](https://togithub.com/nuxt/framework/pull/9540))
- Split out type imports from value imports ([#9225](https://togithub.com/nuxt/framework/pull/9225))
- **nuxt:** Remove `vue-meta` for head support ([#9638](https://togithub.com/nuxt/framework/pull/9638))
- **nuxt:** Do not add all composable auto-imports to `globalThis` ([#9630](https://togithub.com/nuxt/framework/pull/9630))
- **vite:** Show log when client build is starting ([#9759](https://togithub.com/nuxt/framework/pull/9759))
- **home:** Sections ([#9882](https://togithub.com/nuxt/framework/pull/9882))
- Heros ([#9886](https://togithub.com/nuxt/framework/pull/9886))
- Improve internal type definitions of `` ([#9869](https://togithub.com/nuxt/framework/pull/9869))
##### 📖 Documentation
- Update to 3.0 and upgrade theme ([cd2ad7108](https://togithub.com/nuxt/nuxt/commit/cd2ad7108))
- Fix paths to migration guides ([#9071](https://togithub.com/nuxt/framework/pull/9071))
- Fix broken paths ([#9076](https://togithub.com/nuxt/framework/pull/9076))
- Set nuxt stability to stable ([#9075](https://togithub.com/nuxt/framework/pull/9075))
- Fix broken link ([24c8653b2](https://togithub.com/nuxt/nuxt/commit/24c8653b2))
- Update redirects ([f01fc1863](https://togithub.com/nuxt/nuxt/commit/f01fc1863))
- **seo:** Add robots file ([#9111](https://togithub.com/nuxt/framework/pull/9111))
- Improve images quality ([#9112](https://togithub.com/nuxt/framework/pull/9112))
-
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.