v3.7.0 #22823
Replies: 11 comments 20 replies
-
@danielroe it seems upgrade broke my project
the code causing this (nuxt-swiper/dist/module.mjs):
is this an unintended breaking change in the hooks ? |
Beta Was this translation helpful? Give feedback.
-
I get error after update 3.6.5 to 3.7.0, I try to create fresh install nuxt 3.7.0
I get error
My node version nuxt.config.ts is default from fresh install
package.json
I try to find solution but still not found. |
Beta Was this translation helpful? Give feedback.
-
Performances are very poor when loading a Nuxt 3.7.0 on browser. It's very slow since it is multi proxified in dev mode ! |
Beta Was this translation helpful? Give feedback.
-
Amazing stuff 👏 |
Beta Was this translation helpful? Give feedback.
-
not sure why, but when using my auth module, cpu usage rises to almost 100% and my naive-ui theme lags like crazy. This is just going from 3.6.5 -> 3.7.0. This specifically only happens when I log in and user info is stored in SSR. |
Beta Was this translation helpful? Give feedback.
-
So cool, I need to try it. |
Beta Was this translation helpful? Give feedback.
-
devServer not working |
Beta Was this translation helpful? Give feedback.
-
Is baseUrl from tsconfig removed recently in 3.7? This breaks |
Beta Was this translation helpful? Give feedback.
-
I heard @danielroe talking about typed inputs for useFetch on "views on vue". |
Beta Was this translation helpful? Give feedback.
-
May someone help me with this problem. am stuck #22867 (comment) |
Beta Was this translation helpful? Give feedback.
-
Amazing release! We rely heavily on the extend / layers, and after the upgrade, keep getting a lot of these warnings:
We have one base, and one client folder, where the client folder overwrites the core. Is it possible to disable the warning? |
Beta Was this translation helpful? Give feedback.
-
👀 Highlights
🐣 A New CLI
We've refactored
nuxi
using unjs/citty and this marks the first Nuxt release that depends on the new version, safely in its own repository. We have grand plans for this - check out some of the features + roadmap discussions in nuxt/cli and please feel free to contribute!Nuxi is now decoupled from the main
nuxt
version - we plan to iterate and release nuxi more quickly in future so you can expect new things coming soon!🕸️ Native Web Streams and
Response
With improvements in unjs/h3 and unjs/nitro, it's now possible to directly return a
Response
object from server routes, meaning it's also possible to return and handle streams natively in Nuxt.👉 Check out the full detail in the unjs/h3 and unjs/nitro release notes.
🔥 HTML Rendering Optimisations
This release comes with a couple of improvements in rendering HTML responses from the server. We now determine whether to preload/prefetch resources at build time (so you can customise this in the
build:manifest
hook). We also now manage rendering the HTML for them directly inunhead
(#22179), which means you can configure the order for<link>
,<meta>
,<script>
,<style>
, and more. And - in our preliminary testing - it's even faster!It's possible to opt-in to upcoming head improvements with the
experimental.headNext
flag. This currently includes a new ordering algorithm based on capo.js (#22431) and allows enabling future optimisations as they are released inunhead
:We'd love your thoughts - you can respond with any issues/feedback in this discussion.
🛠️ Build Environment Shortcuts
In your Nuxt config you can now use
$client
and$server
shortcuts to easily define configuration that is specific to just the Vite client/server (#22302) or webpack client/server (#22304) builds. This previously was only possible with thevite:extendConfig
andwebpack:config
hooks.For example:
⚡️ Vite 4.4
We've chosen to unpin Vite from minor versions, meaning whenever Vite releases a new feature version you can opt-in straight away. Vite 4.4 brings a lot of exciting things, including experimental Lightning CSS support - and much more!
👉 Check out the Vite release notes for more.
💪 TypeScript Updates
We now use purely relative paths in the generated
tsconfig.json
instead of setting abaseUrl
. This means better support for dev environments like docker images where the absolute path may not match your IDE (#22410).We also set a couple of additional compiler flag defaults to match Vite/TS recommendations (#22468).
Plus, you should now get type hinted access to layouts in
setPageLayout
and also in<NuxtLayout name>
(#22363).🦄 Async Context support
If you've ever got an issue with 'Nuxt context unavailable' this might be one for you. We now support native async context for Bun and Node under an experimental flag, in both Nuxt and Nitro (#20918).
This enables using Nuxt composables on the server without needing to ensure they are being called directly in a setup function. It also allows the same in Nitro, with a new
useEvent()
utility that is usable in server routes.To try it out, you can enable
experimental.asyncContext
:👓 Watcher Updates
We've fixed a couple of issues with watchers, meaning that you should need to restart your server less often - and you should see a significant performance increase if you are using layers.
⚗️ Nitro 2.6
There are lots more exciting features coming directly from Nitro 2.6, including smaller, lighter servers and new persistent data storage in a
.data
directory.👉 Read more in the full release article.
✅ Upgrading
As usual, our recommendation for upgrading is to run:
This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.
👉 Changelog
compare changes
This discussion was created from the release v3.7.0.
Beta Was this translation helpful? Give feedback.
All reactions