Releases: nuxt/cli
v3.10.1
📁 Support .config/
dir
With this release, nuxi upgrades to the latest c12 version with support of .config/
dir for loading nuxt config (see config dir proposal for more info).
You can now alternatively use .config/nuxt.config.ts
or .config/nuxt.ts
to define your Nuxt configuration.
Make sure to renew the lock file or use npx nuxi upgrade --force
to install the latest c12 version.
📦 Dependency upgrades
Bundled dependencies upgraded backporting various ecosystem fixes.
🩹 Fixes
- Don't write
.npmrc
withshamefully-hoist=true
anymore (#319) - Handle spaces in path at repo initialization (#300)
- dev: Support
.config/
dir and custom config extensions (#341) - add: Show description for
template
positional arg (#325)
❤️ Contributors
- Pooya Parsa (@pi0)
- Ettapp
- Gangan
- Daniel Roe (@danielroe)
- Celibioux
v3.10.0
🚀 Enhancements
- build: Support
--preset
arg (#290) - dev: Return listener instance for programmatic usage (#278)
- upgrade: Improve error message when package manager cannot be detected (#270)
🩹 Fixes
- analyze: Don't override analyze options (#259)
- init: Use absolute path for installing dependencies (#272)
- dev: Pass programmatic args to sub process (#275)
- analyze, cleanup, upgrade: Respect custom
buildDir
(#276) - analyze: Set path for client analyze results (#277)
- test: Pass
rootDir
torunTests
command (#284)
💅 Refactors
- Use magicast
.includes
helper (#268)
❤️ Contributors
- Pooya Parsa (@pi0)
- Katerina Skroumpelou
- Daniel Roe daniel@roe.dev
- Larry Williamson (@L422Y)
- Jiten (Jits) Bhagat
- Angel Hernandez angel.hernandez.12@live.com
v3.9.1
🩹 Fixes
- Pass
baseUrl
to listen options (#236) - dev: Prefer
localhost
over[::]
for internal networking (#242) - Support
-nightly
nuxt releases and publishnuxi-nightly
(#248)
🏡 Chore
❤️ Contributors
- Pooya Parsa (@pi0)
- Daniel Roe daniel@roe.dev
- Warflash nwiesinger67@gmail.com
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
v3.8.4
🩹 Fixes
- Pass
logLevel
when runningprepare
(#170) - Allow layers to define
devServer
config (#166) - dev: Use dedicated signal for restart (#174)
- dev: Default host should be
undefined
(#182)
🏡 Chore
❤️ Contributors
- Pooya Parsa (@pi0)
- Niels Janssen nielsjanssen@live.nl
- Daniel Roe daniel@roe.dev
v3.8.3
v3.8.2
v3.8.1
v3.8.0
🚀 Enhancements
- Add
--sourcemap
support tobuild-module
(#129)
🩹 Fixes
- dev: Enable
https
by default whendevServer.https
options is set (#146) - dev: Handle hard restart (#147)
- dev: Provide cli entry for programmatic usage (#148)
- dev: Disable forked mode by default for bun and test (#154)
💅 Refactors
- Import
package.json
with json assertion (#151) - dev: Rewrite dev to support
--no-fork
and improve stability (#153)
❤️ Contributors
- Pooya Parsa (@pi0)
- Bobbie Goede bobbiegoede@gmail.com
v3.7.3
🩹 Fixes
nuxi dev
: Pass listener interface to thelisten
hook (#120)nuxi dev
: Use truthy value of-o
(#125)nuxi dev
: Passhttps
info to the vite HMR port (#126)nuxi dev
: Support WebSocket Upgrades (#127)nuxi devtools
: Defineenable|disable
command as positional argument (#119)nuxi upgrade
: Prompt for force install (#111)- Prefer ipv4 stack for Windows, WSL2 and internals (#122)
- Add cli version and name in usage (#123)
- Improve preview banner and add backward compatible
start
(#124)
📖 Documentation
- Fix typo (#110)