v3.9.0
Note
As always, usenpx nuxi upgrade
orbun x nuxi upgrade
to update the CLI in your projects.
Check withnuxi --version
to make sure on the latest version!
🌟 What's New?
🐙 Smarter nuxi module add
command with nuxt/modules
db integration
The nuxi module add <name>
is now integrated with the nuxt/modules database. This means you can simply install modules by their name, and the CLI will automatically detect and apply compatibility requirements. (#197)
📱 Single HMR port for vite
Previously, Nuxt 3 used a separate random port (default 24678
) for Vite Hot-Module-Replacement support. This made it more challenging when you wanted to expose your development server to a mobile device or through a tunnel.
Now, you can simply use nuxi dev --tunnel
to expose your development server to any device with HMR support!
😌 Mitigated issues with the default host
We now use localhost
by default for Windows and the default host (same as in Nuxt 3.7) for WSL2 and Docker Environments (unjs/listhen#126). This mitigates performance issues related to using 127.0.0.1
as the default host.
If, after the upgrade, you are still experiencing a slow development server issue that was not present before 3.7, please reply in this thread: #209 🙏
🐰 Compatibility issues with bun 1.x
and the dev
command
We now disable both forked mode and the dev server proxy when using bun --bun dev
or bun --bun x nuxi dev
for stability. This should resolve the dev server hanging issues.
Changelog
🚀 Enhancements
- dev: Reuse main dev port for vite HMR (#184)
- mod-search: Filter mod search by compatible nuxt version (#134)
- init: Support
nuxi init --package-manager <npm|pnpm|yarn|bun>
(#97) - Modules db integration with
nuxi module add
(#197) - init: Support
nuxi init --git-init
(#204)
🔥 Performance
- dev: Avoid using proxy with
--no-fork
mode (fixes issues with bun) (#207)
🩹 Fixes
- Use
hook
to avoid race conditions (bc98376) - Soft warning for
node < 18
(#199) - Make dev proxy URL available for the
listen
hook (#206) - Use internal dev server URL for dev proxy (1316da6)
- dev: Remove duplicate displayed URL in no-fork mode (dfb3651)
- Prompt to abort
module add
if install failed (#208)
💅 Refactors
- Remove unused dependencies and code (f0e0c94)
🏡 Chore
❤️ Contributors
- Pooya Parsa (@pi0)
- Richard Rohrig
- Murisceman murisceman@gmail.com