Skip to content

Commit 3b106d1

Browse files
authored
Merge branch 'vuejs:dev' into patch-1
2 parents 9543792 + 7eb93c1 commit 3b106d1

File tree

59 files changed

+1299
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1299
-710
lines changed

CHANGELOG.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,86 @@
1+
2+
## 5.0.9 (2025-08-21)
3+
4+
#### :bug: Bug Fix
5+
* `@vue/cli`
6+
* [#7265](https://github.com/vuejs/vue-cli/pull/7265) fix: pnpm v7 install error ([@lvqq](https://github.com/lvqq))
7+
8+
#### Committers: 2
9+
- Bob van de Vijver ([@bobvandevijver](https://github.com/bobvandevijver))
10+
- chlorine ([@lvqq](https://github.com/lvqq))
11+
12+
13+
14+
15+
16+
17+
## 5.0.7 (2022-07-05)
18+
19+
* `@vue/cli-service`
20+
* [#7202](https://github.com/vuejs/vue-cli/pull/7202), [[558dea2](https://github.com/vuejs/vue-cli/commit/558dea2)] fix: support `devServer.server` option, avoid deprecation warnings ([@backrunner](https://github.com/backrunner), [@sodatea](https://github.com/sodatea))
21+
* [[beffe8a](https://github.com/vuejs/vue-cli/commit/beffe8a)] fix: allow disabling progress plugin via `devServer.client.progress`
22+
* `@vue/cli-ui`
23+
* [#7210](https://github.com/vuejs/vue-cli/pull/7210) chore: upgrade to apollo-server-express 3.x
24+
25+
#### Committers: 2
26+
- BackRunner ([@backrunner](https://github.com/backrunner))
27+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
28+
29+
30+
31+
## 5.0.6 (2022-06-16)
32+
33+
Fix compatibility with the upcoming Vue 2.7 (currently in alpha) and Vue Loader 15.10 (currently in beta).
34+
35+
In Vue 2.7, `vue-template-compiler` is no longer a required peer dependency. Rather, there's a new export under the main package as `vue/compiler-sfc`.
36+
37+
38+
39+
## 5.0.5 (2022-06-16)
40+
41+
#### :bug: Bug Fix
42+
* `@vue/cli`
43+
* [#7167](https://github.com/vuejs/vue-cli/pull/7167) feat(upgrade): prevent changing the structure of package.json file during upgrade ([@blzsaa](https://github.com/blzsaa))
44+
* `@vue/cli-service`
45+
* [#7023](https://github.com/vuejs/vue-cli/pull/7023) fix: windows vue.config.mjs support ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))
46+
47+
#### Committers: 3
48+
- Martijn Jacobs ([@maerteijn](https://github.com/maerteijn))
49+
- ZHAO Jinxiang ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))
50+
- [@blzsaa](https://github.com/blzsaa)
51+
52+
53+
54+
## 5.0.4 (2022-03-22)
55+
56+
#### :bug: Bug Fix
57+
* `@vue/cli-service`
58+
* [#7005](https://github.com/vuejs/vue-cli/pull/7005) Better handling of `publicPath: 'auto'` ([@AndreiSoroka](https://github.com/AndreiSoroka))
59+
* `@vue/cli-shared-utils`, `@vue/cli-ui`
60+
* [75826d6](https://github.com/vuejs/vue-cli/commit/75826d6) fix: replace `node-ipc` with `@achrinza/node-ipc` to further secure the dependency chain
61+
62+
#### Committers: 1
63+
- Andrei ([@AndreiSoroka](https://github.com/AndreiSoroka))
64+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
65+
66+
## 5.0.3 (2022-03-15)
67+
68+
#### :bug: Bug Fix
69+
* `@vue/cli-shared-utils`, `@vue/cli-ui`
70+
* Lock `node-ipc` to v9.2.1
71+
72+
## 5.0.2 (2022-03-15)
73+
74+
#### :bug: Bug Fix
75+
* `@vue/cli-service`
76+
* [#7044](https://github.com/vuejs/vue-cli/pull/7044) fix(cli-service): devServer proxy should be optional ([@ntnyq](https://github.com/ntnyq))
77+
* [#7039](https://github.com/vuejs/vue-cli/pull/7039) chore: add scss to LoaderOptions ([@hiblacker](https://github.com/hiblacker))
78+
79+
#### Committers: 2
80+
- Blacker ([@hiblacker](https://github.com/hiblacker))
81+
- ntnyq ([@ntnyq](https://github.com/ntnyq))
82+
83+
184
## 5.0.1 (2022-02-17)
285

386
Same as 5.0.0.
@@ -786,6 +869,54 @@ Ngo Wei Lin ([@Creastery](https://twitter.com/creastery)) of STAR Labs ([@starla
786869
- Yazhe Wang ([@jeneser](https://github.com/jeneser))
787870

788871

872+
## 4.5.19 (2022-06-28)
873+
874+
IMPORTANT NOTE: [IE 11 has reached End-of-Life](https://docs.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge#what-is-the-lifecycle-policy-for-internet-explorer-). The default `browserslist` query no longer includes IE 11 as a target.
875+
If your project still has to support IE 11, you **MUST** manually add `IE 11` to the last line of the `.browserslistrc` file in the project (or `browserslist` field in `package.json`)
876+
877+
#### :bug: Bug Fix
878+
879+
* `@vue/babel-preset-app`
880+
* [[c7fa1cf](https://github.com/vuejs/vue-cli/commit/c7fa1cf)] fix: always transpile syntaxes introduced in ES2020 or later, so that optional chaining and nullish coalescing syntaxes won't cause errors in webpack 4 and ESLint 6.
881+
* `@vue/cli-plugin-typescript`
882+
* [[5b57792](https://github.com/vuejs/vue-cli/commit/5b57792)] fix: typechecking with Vue 2.7, fixes #7213
883+
884+
885+
## 4.5.18 (2022-06-16)
886+
887+
Fix compatibility with the upcoming Vue 2.7 (currently in alpha) and Vue Loader 15.10 (currently in beta).
888+
889+
In Vue 2.7, `vue-template-compiler` is no longer a required peer dependency. Rather, there's a new export under the main package as `vue/compiler-sfc`.
890+
891+
892+
## 4.5.17 (2022-03-23)
893+
894+
#### :bug: Bug Fix
895+
* `@vue/cli-shared-utils`, `@vue/cli-ui`
896+
* [d7a9881](https://github.com/vuejs/vue-cli/commit/d7a9881) fix: replace `node-ipc` with `@achrinza/node-ipc` to further secure the dependency chain
897+
898+
#### Committers: 1
899+
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
900+
901+
902+
## 4.5.16 (2022-03-15)
903+
904+
#### :bug: Bug Fix
905+
* `@vue/cli-service`
906+
* Fix demo-lib.html and demo-wc.html for Vue 2
907+
* `@vue/cli-shared-utils`, `@vue/cli-ui`
908+
* Lock `node-ipc` to v9.2.1
909+
910+
911+
## 4.5.15 (2021-10-28)
912+
913+
#### Bug Fixes
914+
915+
* fix: set `.mjs` file type to `javascript/auto` [[15b1e1b]](https://github.com/vuejs/vue-cli/commit/15b1e1b6bfa40fe0b69db304a2439c66ff9ba65f)
916+
917+
This change allows an `.mjs` file to import named exports from `.cjs` and plain `.js` files.
918+
Fixes compatibility with `pinia`.
919+
789920

790921
## 4.5.14 (2021-10-14)
791922

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Vue CLI [![Build Status](https://circleci.com/gh/vuejs/vue-cli/tree/dev.svg?style=shield)](https://circleci.com/gh/vuejs/vue-cli/tree/dev) [![Windows Build status](https://ci.appveyor.com/api/projects/status/rkpafdpdwie9lqx0/branch/dev?svg=true)](https://ci.appveyor.com/project/yyx990803/vue-cli/branch/dev) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
22

3-
## Status
3+
## ⚠️ Status
44

5-
Vue CLI is now in maintenance mode. For new Vue 3 projects, please use [create-vue](https://github.com/vuejs/create-vue) to scaffold [Vite](https://vitejs.dev/)-based projects.
5+
Vue CLI is now in maintenance mode. For new projects, please use [create-vue](https://github.com/vuejs/create-vue) to scaffold [Vite](https://vitejs.dev/)-based projects. `create-vue` supports both Vue 2 and Vue 3.
6+
7+
Also refer to the [Vue 3 Tooling Guide](https://vuejs.org/guide/scaling-up/tooling.html) for the latest recommendations.
8+
9+
For information on migrating from Vue CLI to Vite:
10+
11+
- [Vue CLI -> Vite Migration Guide from VueSchool.io](https://vueschool.io/articles/vuejs-tutorials/how-to-migrate-from-vue-cli-to-vite/)
12+
- [Tools / Plugins that help with auto migration](https://github.com/vitejs/awesome-vite#vue-cli)
613

714
## Documentation
815

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
environment:
2-
nodejs_version: "12"
2+
nodejs_version: "14"
33

44
install:
55
- ps: Install-Product node $env:nodejs_version

docs/.vitepress/theme/index.js

Lines changed: 81 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,92 @@ import { h } from 'vue'
22
import DefaultTheme from 'vitepress/dist/client/theme-default'
33
import AlgoliaSearchBox from './AlgoliaSearchBox.vue'
44
import './custom.css'
5+
import { useData } from 'vitepress'
56

67
export default {
78
...DefaultTheme,
8-
Layout() {
9-
return h(DefaultTheme.Layout, null, {
10-
'navbar-search': () => {
11-
return h(AlgoliaSearchBox, {
12-
options: {
13-
indexName: 'cli_vuejs',
14-
apiKey: 'f6df220f7d246aff64a56300b7f19f21',
9+
Layout: {
10+
setup() {
11+
const { lang } = useData()
12+
return () => {
13+
return h(DefaultTheme.Layout, null, {
14+
'page-top': () => {
15+
return lang.value === 'zh-CN' ? notice_zh_cn() : notice_en()
16+
},
17+
'navbar-search': () => {
18+
return h(AlgoliaSearchBox, {
19+
options: {
20+
indexName: 'cli_vuejs',
21+
apiKey: 'f6df220f7d246aff64a56300b7f19f21'
22+
}
23+
})
1524
}
1625
})
1726
}
18-
})
27+
}
1928
}
2029
}
30+
31+
function notice_en() {
32+
return h('div', { class: 'warning custom-block' }, [
33+
h(
34+
'p',
35+
{ class: 'custom-block-title' },
36+
'⚠️ Vue CLI is in Maintenance Mode!'
37+
),
38+
h('p', [
39+
'For new projects, it is now recommended to use ',
40+
h(
41+
'a',
42+
{
43+
href: 'https://github.com/vuejs/create-vue',
44+
target: '_blank'
45+
},
46+
[h('code', 'create-vue')]
47+
),
48+
' to scaffold ',
49+
h('a', { href: 'https://vitejs.dev', target: '_blank' }, 'Vite'),
50+
'-based projects. ',
51+
'Also refer to the ',
52+
h(
53+
'a',
54+
{
55+
href: 'https://vuejs.org/guide/scaling-up/tooling.html',
56+
target: '_blank'
57+
},
58+
'Vue 3 Tooling Guide'
59+
),
60+
' for the latest recommendations.'
61+
])
62+
])
63+
}
64+
65+
function notice_zh_cn() {
66+
return h('div', { class: 'warning custom-block' }, [
67+
h('p', { class: 'custom-block-title' }, '⚠️ Vue CLI 现已处于维护模式!'),
68+
h('p', [
69+
'现在官方推荐使用 ',
70+
h(
71+
'a',
72+
{
73+
href: 'https://github.com/vuejs/create-vue',
74+
target: '_blank'
75+
},
76+
[h('code', 'create-vue')]
77+
),
78+
' 来创建基于 ',
79+
h('a', { href: 'https://cn.vitejs.dev', target: '_blank' }, 'Vite'),
80+
' 的新项目。 ',
81+
'另外请参考 ',
82+
h(
83+
'a',
84+
{
85+
href: 'https://cn.vuejs.org/guide/scaling-up/tooling.html',
86+
target: '_blank'
87+
},
88+
'Vue 3 工具链指南'
89+
),
90+
' 以了解最新的工具推荐。'
91+
])
92+
])
93+
}

docs/guide/cli-service.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ yarn serve
2626
If you have [npx](https://github.com/npm/npx) available (should be bundled with an up-to-date version of npm), you can also invoke the binary directly with:
2727

2828
```bash
29-
npx vue-cli-service serve
29+
npx --no vue-cli-service serve
3030
```
3131

3232
::: tip
@@ -114,21 +114,21 @@ You can use `vue-cli-service inspect` to inspect the webpack config inside a Vue
114114
Some CLI plugins will inject additional commands to `vue-cli-service`. For example, `@vue/cli-plugin-eslint` injects the `vue-cli-service lint` command. You can see all injected commands by running:
115115

116116
```bash
117-
npx vue-cli-service help
117+
npx --no vue-cli-service help
118118
```
119119

120120
You can also learn about the available options of each command with:
121121

122122
```bash
123-
npx vue-cli-service help [command]
123+
npx --no vue-cli-service help [command]
124124
```
125125

126126
## Skipping Plugins
127127

128128
You can exclude specific plugins when running a command by passing the name of the plugin to the `--skip-plugins` option:
129129

130130
```bash
131-
npx vue-cli-service build --skip-plugins pwa
131+
npx --no vue-cli-service build --skip-plugins pwa
132132
```
133133

134134
::: tip
@@ -138,18 +138,18 @@ This option is available for _every_ `vue-cli-service` command, including custom
138138
You can skip multiple plugins by passing their names as a comma-separated list or by repeating the argument:
139139

140140
```bash
141-
npx vue-cli-service build --skip-plugins pwa,apollo --skip-plugins eslint
141+
npx --no vue-cli-service build --skip-plugins pwa,apollo --skip-plugins eslint
142142
```
143143

144144
Plugin names are resolved the same way they are during install, as described [here](./plugins-and-presets.md#installing-plugins-in-an-existing-project)
145145

146146
```bash
147147
# these are all equivalent
148-
npx vue-cli-service build --skip-plugins pwa
148+
npx --no vue-cli-service build --skip-plugins pwa
149149

150-
npx vue-cli-service build --skip-plugins @vue/pwa
150+
npx --no vue-cli-service build --skip-plugins @vue/pwa
151151

152-
npx vue-cli-service build --skip-plugins @vue/cli-plugin-pwa
152+
npx --no vue-cli-service build --skip-plugins @vue/cli-plugin-pwa
153153
```
154154

155155
## Caching and Parallelization

docs/guide/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ sidebarDepth: 0
44

55
# Overview
66

7-
::: warning
8-
This documentation is for `@vue/cli`. For the old `vue-cli`, see [here](https://github.com/vuejs/vue-cli/tree/v2#vue-cli--).
9-
:::
10-
117
Vue CLI is a full system for rapid Vue.js development, providing:
128

139
- Interactive project scaffolding via `@vue/cli`.

docs/guide/installation.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# Installation
22

3-
::: warning Warning regarding Previous Versions
4-
The package name changed from `vue-cli` to `@vue/cli`.
5-
If you have the previous `vue-cli` (1.x or 2.x) package installed globally, you need to uninstall it first with `npm uninstall vue-cli -g` or `yarn global remove vue-cli`.
6-
:::
7-
83
::: tip Node Version Requirement
94
Vue CLI 4.x requires [Node.js](https://nodejs.org/) version 8.9 or above (v10+ recommended). You can manage multiple versions of Node on the same machine with [n](https://github.com/tj/n), [nvm](https://github.com/creationix/nvm) or [nvm-windows](https://github.com/coreybutler/nvm-windows).
105
:::

docs/index.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,13 @@ home: true
33
heroImage: /favicon.png
44
actionText: Get Started →
55
actionLink: /guide/
6-
7-
features:
8-
- title: Feature Rich
9-
details: Out-of-the-box support for Babel, TypeScript, ESLint, PostCSS, PWA, Unit Testing & End-to-end Testing.
10-
- title: Extensible
11-
details: The plugin system allows the community to build and share reusable solutions to common needs.
12-
- title: No Need to Eject
13-
details: Vue CLI is fully configurable without the need for ejecting. This allows your project to stay up-to-date for the long run.
14-
- title: Graphical User Interface
15-
details: Create, develop and manage your projects through an accompanying graphical user interface.
16-
- title:
17-
details:
18-
- title: Future Ready
19-
details: Effortlessly ship native ES2015 code for modern browsers, or build your vue components as native web components.
20-
216
footer: MIT Licensed | Copyright © 2018-present Evan You
227
---
238

9+
:::warning Vue CLI is in Maintenance Mode!
10+
For new projects, please use [create-vue](https://github.com/vuejs/create-vue) to scaffold [Vite](https://vitejs.dev/)-based projects. Also refer to the [Vue 3 Tooling Guide](https://vuejs.org/guide/scaling-up/tooling.html) for the latest recommendations.
11+
:::
12+
2413
## Getting Started
2514

2615
Install:

docs/migrations/migrate-from-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The [`transpileDependencies` option](../config/#transpiledependencies) now accep
132132

133133
* `eslint-loader` is replaced by [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin), dropping support for ESLint <= 6.
134134
* New projects are now generated with `eslint-plugin-vue` v8, see the release notes ([v7](https://github.com/vuejs/eslint-plugin-vue/releases/tag/v7.0.0), [v8](https://github.com/vuejs/eslint-plugin-vue/releases/tag/v8.0.0)) for breaking changes.
135-
* `@vue/eslint-config-prettier` is deprecated. See <https://github.com/vuejs/eslint-config-prettier> for the migration guide.
135+
* If you are using `@vue/eslint-config-prettier`, please [migrate to `eslint-plugin-prettier`](https://github.com/vuejs/eslint-config-prettier/tree/81390fc2c16798ba189188acdc5da5ae5bca1127?tab=readme-ov-file#deprecated).
136136

137137
### PWA Plugin
138138

0 commit comments

Comments
 (0)