Skip to content

Releases: nuxt/cli

v3.10.1

14 Feb 15:04
@pi0 pi0
19c3aa0
Compare
Choose a tag to compare

compare changes

📁 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 with shamefully-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

v3.10.0

20 Nov 15:38
@pi0 pi0
80566b2
Compare
Choose a tag to compare

compare changes

🚀 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 to runTests command (#284)

💅 Refactors

  • Use magicast .includes helper (#268)

❤️ Contributors

v3.9.1

19 Oct 12:49
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Pass baseUrl to listen options (#236)
  • dev: Prefer localhost over [::] for internal networking (#242)
  • Support -nightly nuxt releases and publish nuxi-nightly (#248)

🏡 Chore

❤️ Contributors

v3.9.0

20 Sep 18:30
@pi0 pi0
3428175
Compare
Choose a tag to compare

Note
As always, use npx nuxi upgrade or bun x nuxi upgrade to update the CLI in your projects.
Check with nuxi --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

compare changes

🚀 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

  • Add dev:bun and nuxi-bun local scripts (e350838)
  • Allow disabling vite HMR port integration (#189)

❤️ Contributors

v3.8.4

14 Sep 16:57
@pi0 pi0
3150bfa
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Pass logLevel when running prepare (#170)
  • Allow layers to define devServer config (#166)
  • dev: Use dedicated signal for restart (#174)
  • dev: Default host should be undefined (#182)

🏡 Chore

❤️ Contributors

v3.8.3

11 Sep 12:21
@pi0 pi0
cf0fe6d
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Allow overriding internal dev server port via _PORT (#165)

v3.8.2

11 Sep 11:27
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🏡 Chore

v3.8.1

08 Sep 23:40
@pi0 pi0
7e488c9
Compare
Choose a tag to compare

compare changes

🩹 Fixes

v3.8.0

07 Sep 16:53
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Add --sourcemap support to build-module (#129)

🩹 Fixes

  • dev: Enable https by default when devServer.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

v3.7.3

30 Aug 18:43
@pi0 pi0
35b6b92
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • nuxi dev: Pass listener interface to the listen hook (#120)
  • nuxi dev: Use truthy value of -o (#125)
  • nuxi dev: Pass https info to the vite HMR port (#126)
  • nuxi dev: Support WebSocket Upgrades (#127)
  • nuxi devtools: Define enable|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

❤️ Contributors