Skip to content

Releases: vuejs/vue-cli

v4.5.9

17 Nov 07:12
Compare
Choose a tag to compare

This version updates the Cypress plugin, allows users to update to a new version of Cypress on their own.
Due to backward compatibility concerns, @vue/cli-plugin-e2e-cypress 4.x always comes with a Cypress 3 dependency, and won't be updated until CLI v5 releases.
But now that Cypress has shipped several new major versions in the past year, bringing many interesting new features such as cross-browser testing, you may want to try out a new version. As of this release, there now are 2 ways to update the Cypress dependency in the project:

  1. (Yarn users only) Add a resolutions field in the package.json:
{
  "resolutions": {
    "cypress": "^5.6.0"
  }
}

Then run yarn again to install the new dependencies. This will keep exactly one Cypress copy in the project so it's the recommended approach.

  1. Ensure you are on @vue/cli-plugin-e2e-cypress 4.5.9, then run npm install -D cypress or yarn add -D cypress in the project.
    This will install the latest Cypress version to your project root, and the Vue CLI plugin will refer to it when executing the test:e2e task.
    A drawback of this approach is that cypress@3 will still be downloaded during the dependency installation process, even it's useless now. Though, it is only a temporary problem as we are trying to keep the plugin's backward compatibility, and will be soon fixed with an upcoming v5 release.

๐Ÿš€ New Features

  • @vue/cli-plugin-e2e-cypress

Committers: 1

v4.5.8

19 Oct 10:44
Compare
Choose a tag to compare

This version has updated the TypeScript shim for Vue 3.
If you encounter any typing issue when using vue v3.0.1 and @vue/test-utils, please update your src/shims-vue.d.ts file according to https://github.com/vuejs/vue-cli/pull/5975/files

๐Ÿ› Bug Fix

  • @vue/cli-plugin-typescript
  • @vue/cli
    • #5961 fix: npm 7 compat by turning on legacy-peer-deps flag (@sodatea)
  • @vue/cli-plugin-eslint
    • #5962 fix: narrow the eslint peer dep version range, avoiding npm 7 error (@sodatea)

Committers: 2

v4.5.7

07 Oct 08:43
Compare
Choose a tag to compare

๐Ÿ› Bug Fix

  • @vue/cli-plugin-babel, @vue/cli-plugin-typescript, @vue/cli-service
  • @vue/cli
    • #5871 fix: more accurate warning message for missing global peer dependencies (@sodatea)
    • #5902 fix: incorrectly read Taobao binary mirror configuration. (@godky)
    • #5892 fix: respect scope when resolving package metadata (@bodograumann)
  • @vue/cli-plugin-pwa, @vue/cli-service
    • #5899 fix: shouldn't remove attribute quotes in HTML (@sodatea)

๐Ÿ“ Documentation

Committers: 4

v4.5.6

10 Sep 13:38
Compare
Choose a tag to compare

๐Ÿ› Bug Fix

  • @vue/cli

Committers: 1

v4.5.5

10 Sep 12:29
f77b4d3
Compare
Choose a tag to compare

Highlights

If you are working on a Vue 3 project, this version of Vue CLI comes with the latest beta version of vue-loader, which enables support for the experimental <script setup> syntax.

<template>
  <button @click="inc">{{ count }}</button>
</template>

<script setup>
import { ref } from 'vue'

export const count = ref(0)
export const inc = () => count.value++
</script>

If you encounter any bug when trying out this new feature, please raise an issue in the vue-loader repository.

Known Issues

The two new features currently do not work well with thread-loader. In Vue CLI, you need to set parallel: false for them to work correctly.


๐Ÿ› Bug Fix

  • @vue/cli-service
    • #5868 fix: enable some syntax extensions by default for vue script compiler (@sodatea)
  • @vue/cli-plugin-router, @vue/cli-service
    • #5852 fix: fix duplicate id="app" in Vue 3 project template (@sodatea)
  • @vue/cli-plugin-unit-jest, @vue/cli-plugin-unit-mocha
    • #5591 fix(unit-jest, unit-mocha): generate passing tests when bare option is used with router enabled (#3544) (@IwalkAlone)
  • @vue/cli-plugin-pwa
  • @vue/cli
    • #5827 fix: fix support for Node.js v8 and deprecate it (@sodatea)
    • #5823 Handle GPG sign git config for initial commit (@spenserblack)
    • #5808 fix: strip non-ansi characters from registry config (@sodatea)
    • #5801 fix: do not throw when api.render is called from an anonymous function (@sodatea)

๐Ÿ  Internal

  • @vue/cli-ui
    • #3687 perf(ui): improve get folder list to use Promises instead of sync (@pikax)

๐Ÿ”จ Underlying Tools

  • @vue/babel-preset-app
    • #5831 chore: rename jsx package scope from ant-design-vue to vue (@Amour1688)

Committers: 8

v4.5.4

18 Aug 02:15
ff24edb
Compare
Choose a tag to compare

How to Upgrade

First, reinstall the latest version of @vue/cli globally.

yarn global add @vue/cli
# OR
npm install -g @vue/cli

Then in the existing Vue CLI projects, run

vue upgrade

๐Ÿ› Bug Fix

  • @vue/cli-plugin-typescript
  • @vue/cli-service
  • @vue/cli

Committers: 3

v4.5.3

11 Aug 09:12
a1ee583
Compare
Choose a tag to compare

๐Ÿ› Bug Fix

  • @vue/cli-service
    • #5774 fix: load vue from @vue/cli-service-global on vue serve/vue build (@sodatea)
  • @vue/cli-plugin-e2e-webdriverio, @vue/cli-plugin-typescript
    • #5769 fix: add missing mocha type if wdio is not installed along with any unit testing frameworks (@sodatea)
  • @vue/cli-plugin-typescript
    • #5771 fix: only replace App.vue when there's no router plugin (@sodatea)

Committers: 1

v4.5.2

10 Aug 06:52
3952125
Compare
Choose a tag to compare

๐Ÿ› Bug Fix

  • @vue/cli-plugin-typescript
    • #5768 fix: no longer need a shim for fork-ts-checker vue 3 support (@sodatea)

๐Ÿ“ Documentation, ๐Ÿ  Internal

  • @vue/babel-preset-app, @vue/cli-plugin-e2e-nightwatch, @vue/cli-plugin-eslint, @vue/cli-plugin-typescript, @vue/cli-service, @vue/cli

Committers: 3

v4.5.1

06 Aug 15:58
09adc41
Compare
Choose a tag to compare
v4.5.1 Pre-release
Pre-release

Highlights

This version comes with a new core plugin for E2E testing - @vue/cli-plugin-e2e-webdriverio, thanks to the maintainer of WebdriverIO @christian-bromann.

Users will see WebDriverIO listed as an option for E2E test when creating a new project with vue create.

Or, in other existing projects, you can run vue add @vue/e2e-webdriverio@next to try it out.


๐Ÿš€ New Features

  • @vue/cli-plugin-e2e-webdriverio, @vue/cli-shared-utils, @vue/cli
  • @vue/cli-service
    • #5725 feat: implement a migrator that removes vue-cli-plugin-next as it's no longer needed (@sodatea)

๐Ÿ› Bug Fix

  • @vue/cli-plugin-typescript
    • #5731 fix: fix skipLibCheck default value for vue create (@sodatea)
    • #5722 fix: use fork-ts-checker-webpack-plugin v5 for vue 3 type checking (@sodatea)
  • @vue/cli
    • #5744 fix: ignore .svn/** when reading and writing files (@sodatea)
    • #5736 fix(e2e): shouldn't install webdrivers for unchecked browsers on creation (@sodatea)
  • @vue/cli-service
    • #5718 fix: make vue-loader-v16 an optional dependency, avoid crashing npm 5 (@sodatea)

๐Ÿ  Internal

๐Ÿ”จ Underlying Tools

  • @vue/babel-preset-app, @vue/cli-plugin-babel, @vue/cli-plugin-e2e-nightwatch, @vue/cli-plugin-e2e-webdriverio, @vue/cli-plugin-typescript, @vue/cli-plugin-unit-jest, @vue/cli-service, @vue/cli-test-utils

Committers: 6

v4.5.0

24 Jul 11:53
5634825
Compare
Choose a tag to compare
v4.5.0 Pre-release
Pre-release

Highlights

This version adds first-class Vue 3 support (for preview). You no longer need vue-cli-plugin-vue-next to serve and build Vue 3 projects. Users of the plugin can safely remove it from the projects.

vue create hello-vue-3


๐Ÿš€ New Features

  • @vue/babel-preset-app, @vue/cli-plugin-babel, @vue/cli-plugin-eslint, @vue/cli-plugin-router, @vue/cli-plugin-typescript, @vue/cli-plugin-unit-jest, @vue/cli-plugin-unit-mocha, @vue/cli-plugin-vuex, @vue/cli-service, @vue/cli-test-utils, @vue/cli-ui, @vue/cli
    • #5637 feat: allow choosing vue version on creation (and in presets) (@sodatea)
  • @vue/cli-plugin-typescript
    • #5688 feat: add skipLibCheck option in the TS template (defaults to true) (@sodatea)
  • @vue/cli-service, @vue/cli-test-utils, @vue/cli
  • @vue/cli-plugin-typescript, @vue/cli-service
  • @vue/cli-service, @vue/cli

๐Ÿ› Bug Fix

  • @vue/cli-service
  • @vue/babel-preset-app
    • #5543 fix: better error message for non-existent polyfill names (@sodatea)

๐Ÿ“ Documentation

๐Ÿ  Internal

  • @vue/cli-shared-utils
  • @vue/cli-service, @vue/cli
    • #5629 refactor: replace jscodeshift with vue-codemod (@sodatea)

Committers: 7