We're happy to announce the release of Vue CLI version 4!
This major version bump is focused on necessary version bumps of underlying tools, better default setups, and other fine-tunings required for long-term maintenance.
We expect a smooth migration experience for most users.
You can view the full migration guide at https://cli.vuejs.org/migrating-from-v3/
Vue CLI v4 comes with greatly improved Nightwatch, Jest and PWA support, as well as many other small tweaks across all the core packages.
Lots of underlying major dependencies have been upgraded:
- core-js 3
- Nightwatch 1.x
- Jest 24
- Mocha 6
- workbox-webpack-plugin 4
- And a lot more……
The complete change list is available in the migration guide.
While our focus has shifted to this new major version, old versions will continue to be supported for a while.
Most of the (non-semver-breaking) new features we bring in v4 have already been backported to v3.
We'd like to continue to backport more commits to v3, but as the codebase diverges, it might become harder and harder for us to do so.
We strongly recommend you to upgrade your projects to v4 soon.
Here are a few new features not able to be backported to v3, because of the codebase divergence:
In the development of v4, we've modernized much of the code base, now allowing us to support more package managers (custom package managers and PNPM v4).
Yarn v2 support may arrive in subsequent feature releases of Vue CLI v4.
For plugin developers, a few more utilities are available in the
- Async function support in generators
migratorinterface for code migration through the new
afterAnyInvokehook (the former is essentially the same as
onCreateComplete, the latter will be run after any plugin generator invocation, we currently have used this hook in the
transformScriptAPI, to run jscodeshift codemods in the user projects (available since v3.9)