Releases: vuejs/vue-cli
v4.0.2
v4.0.1
v4.0.0
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
GeneratorAPI
.
- Async function support in generators
- The
migrator
interface for code migration through the newvue upgrade
command - The
afterInvoke
&afterAnyInvoke
hook (the former is essentially the same asonCreateComplete
, the latter will be run after any plugin generator invocation, we currently have used this hook in theeslint
plugin) - The
transformScript
API, to run jscodeshift codemods in the user projects (available since v3.9)
v4.0.0-rc.8
Documentation for the RC version is available at https://next.cli.vuejs.org/
See the migration guide at https://next.cli.vuejs.org/migrating-from-v3/
To install the RC version, run yarn global add @vue/cli@next
or npm i -g @vue/cli@next
🚀 New Features
@vue/cli
@vue/babel-preset-app
,@vue/cli-plugin-unit-jest
,@vue/cli-plugin-unit-mocha
@vue/cli-plugin-pwa
@vue/cli-service
💥 Breaking Changes
@vue/cli-service
🐛 Bug Fix
🏠 Internal
🔨 Underlying Tools
Committers: 2
v3.12.0
🚀 New Features
🐛 Bug Fix
@vue/cli-service
@vue/cli-shared-utils
@vue/cli
- #4525 fix: remove the nonexistent
test
command from generated README (@cexbrayat)
- #4525 fix: remove the nonexistent
📝 Documentation
@vue/cli
- #4551 docs: remove run for yarn commands in readme (@cexbrayat)
- Other
- #4561 Edited Dockerfile of Docker(Nginx) deployment doc (@vahdet)
- #4500 Documentation typo fixes (@owanhunte)
Committers: 6
- Cédric Exbrayat (@cexbrayat)
- Haoqun Jiang (@sodatea)
- Marcel Jahn (@ma-jahn)
- Natalia Tepluhina (@NataliaTepluhina)
- Owan Hunte (@owanhunte)
- vahdet (@vahdet)
v4.0.0-rc.7
v4.0.0-rc.6
v4.0.0-rc.5
4.0.0-rc.5 (2019-09-30)
🚀 New Features
@vue/cli
@vue/cli-plugin-babel
🐛 Bug Fix
@vue/cli-service
@vue/cli-plugin-e2e-nightwatch
Committers: 2
v4.0.0-rc.4
Documentation for the RC version is available at https://next.cli.vuejs.org/
There is also a work-in-progress migration guide at #4552
To install the RC version, run yarn global add @vue/cli@next
or npm i -g @vue/cli@next
Start from the version, the unit-jest
plugin comes with 4 configuration presets:
@vue/cli-plugin-unit-jest
The default preset for the most common type of projects@vue/cli-plugin-unit-jest/presets/no-babel
If you don't have@vue/cli-plugin-babel
installed and don't want to see babel files in the project@vue/cli-plugin-unit-jest/presets/typescript
The preset with TypeScript support (but no TSX support)@vue/cli-plugin-unit-jest/presets/typescript-and-babel
The preset with TypeScript (and TSX) and babel support.
If you haven't changed the default Jest configuration (lies in either jest.config.js
or the jest
field in package.json
) ever since project creation, you can now replace the massive configuration object with one single field:
module.exports = {
// Replace the following preset name with the one you want to use from the above list
preset: '@vue/cli-plugin-unit-jest'
}
(the ts-jest
, babel-jest
dependencies can also be removed now)
A reminder:
The default test environment in the new presets is jsdom@15, which differs from the default one in Jest 24 (jsdom@11).
This is to be aligned with the upcoming Jest 25 updates.
Most users won't be affected by this change.
For a detailed changelog with regard to jsdom, see https://github.com/jsdom/jsdom/blob/master/Changelog.md
🚀 New Features
@vue/cli-plugin-unit-jest
@vue/cli-plugin-e2e-nightwatch
,@vue/cli-shared-utils
,@vue/cli
🐛 Bug Fix
📝 Documentation
- #4561 Edited Dockerfile of Docker(Nginx) deployment doc (@vahdet)
- #4500 Documentation typo fixes (@owanhunte)
🔨 Underlying Tools
@vue/cli-plugin-unit-jest
Committers: 4
- Haoqun Jiang (@sodatea)
- Natalia Tepluhina (@NataliaTepluhina)
- Owan Hunte (@owanhunte)
- vahdet (@vahdet)
v4.0.0-rc.3
🚀 New Features
@vue/cli-service
,@vue/cli-shared-utils
@vue/cli-plugin-e2e-nightwatch
- #4541 Upgrade Nightwatch to v1.2 and update bundled config and generated tests (@beatfactor)
Committers: 2
- Andrei Rusu (@beatfactor)
- Haoqun Jiang (@sodatea)