Skip to content

Commit

Permalink
chore: Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Apr 7, 2020
2 parents 0ce0db2 + 2ec479a commit bd7ad93
Show file tree
Hide file tree
Showing 62 changed files with 1,801 additions and 548 deletions.
86 changes: 86 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,90 @@

## 4.3.1 (2020-04-07)

#### :bug: Bug Fix
* `@vue/cli-plugin-eslint`
* [#5363](https://github.com/vuejs/vue-cli/pull/5363) fix(eslint-migrator): fix local eslint major version detection ([@sodatea](https://github.com/sodatea))
* `@vue/cli`
* [#5360](https://github.com/vuejs/vue-cli/pull/5360) fix: run migrator in a separator process, fix require cache issues during upgrade ([@sodatea](https://github.com/sodatea))

#### Committers: 1
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))



## 4.3.0 (2020-04-01)

#### :rocket: New Features
* `@vue/cli-plugin-unit-mocha`
* [#5294](https://github.com/vuejs/vue-cli/pull/5294) feat(service): Allow mocha unit tests debugger to be bound to a specified IP and port ([@darrylkuhn](https://github.com/darrylkuhn))
* `@vue/babel-preset-app`
* [#5322](https://github.com/vuejs/vue-cli/pull/5322) feat: enable `bugfixes` option for babel by default ([@sodatea](https://github.com/sodatea))
* `@vue/cli-service`
* [#5293](https://github.com/vuejs/vue-cli/pull/5293) support vue.config.cjs ([@simon300000](https://github.com/simon300000))
* [#3886](https://github.com/vuejs/vue-cli/pull/3886) feat: wc entry accepts multiple file patterns splited by ',' ([@manico](https://github.com/manico))
* `@vue/cli`
* [#5212](https://github.com/vuejs/vue-cli/pull/5212) feat(vue-cli): Choosing to save as a preset tells you where it is saved ([@jaireina](https://github.com/jaireina))
* `@vue/cli-plugin-typescript`
* [#5170](https://github.com/vuejs/vue-cli/pull/5170) feat: use @vue/compiler-sfc as a compiler for TS if available ([@cexbrayat](https://github.com/cexbrayat))
* `@vue/cli-plugin-eslint`, `@vue/cli-service-global`, `@vue/cli-ui-addon-widgets`
* [#5241](https://github.com/vuejs/vue-cli/pull/5241) feat: ease the default `no-console` severity to `warn` ([@sodatea](https://github.com/sodatea))
* `@vue/cli-service`, `@vue/cli-ui-addon-webpack`, `@vue/cli-ui-addon-widgets`, `@vue/cli-ui`
* [#5233](https://github.com/vuejs/vue-cli/pull/5233) feat: add "not dead" to the default browserslist query ([@sodatea](https://github.com/sodatea))
* `@vue/cli-plugin-router`
* [#4805](https://github.com/vuejs/vue-cli/pull/4805) types(router): added router array type for Array RouteConfig ([@manuelojeda](https://github.com/manuelojeda))

#### :bug: Bug Fix
* `@vue/cli-shared-utils`
* [#5315](https://github.com/vuejs/vue-cli/pull/5315) fix: avoid process hanging when trying to get Chrome version ([@sodatea](https://github.com/sodatea))
* [#5264](https://github.com/vuejs/vue-cli/pull/5264) fix false positive of `hasProjectNpm` ([@sodatea](https://github.com/sodatea))
* `@vue/cli-ui`
* [#5290](https://github.com/vuejs/vue-cli/pull/5290) fix(cli-ui): build task defaults should respect outputDir option from config file (Closes [#2639](https://github.com/vuejs/vue-cli/issues/2639)) ([@LinusBorg](https://github.com/LinusBorg))
* `@vue/cli-service`
* [#5320](https://github.com/vuejs/vue-cli/pull/5320) fix: spawn scripts with node, fix modern mode with Yarn 2 (Berry) ([@sodatea](https://github.com/sodatea))
* [#5247](https://github.com/vuejs/vue-cli/pull/5247) fix(target-lib): fix dynamic public path in a dynamic chunk in Firefox ([@sodatea](https://github.com/sodatea))
* `@vue/cli-plugin-pwa`
* [#5087](https://github.com/vuejs/vue-cli/pull/5087) feat(pwa): Check for null or undefined in iconPaths ([@janispritzkau](https://github.com/janispritzkau))
* `@vue/cli-plugin-eslint`
* [#5242](https://github.com/vuejs/vue-cli/pull/5242) fix: fix severity config in ui ([@sodatea](https://github.com/sodatea))
* `@vue/babel-preset-app`
* [#5236](https://github.com/vuejs/vue-cli/pull/5236) fix(babel-preset-app): avoid corejs warning when useBuiltIns is false ([@LeBenLeBen](https://github.com/LeBenLeBen))

#### :memo: Documentation
* [#5243](https://github.com/vuejs/vue-cli/pull/5243) docs: add warning on client side environment variables ([@sodatea](https://github.com/sodatea))
* [#5231](https://github.com/vuejs/vue-cli/pull/5231) Update plugin-dev.md ([@yeyan1996](https://github.com/yeyan1996))

#### :house: Internal
* `@vue/cli-service-global`
* [#5319](https://github.com/vuejs/vue-cli/pull/5319) chore(cli-service-global): remove direct dependency on `@vue/babel-preset-app` ([@sodatea](https://github.com/sodatea))
* `@vue/cli-service`
* [#5305](https://github.com/vuejs/vue-cli/pull/5305) refactor: simplify config loading by skipping `fs.existsSync` check ([@sodatea](https://github.com/sodatea))
* `@vue/cli`
* [#5228](https://github.com/vuejs/vue-cli/pull/5228) test: e2e test case for command suggestion logic ([@jamesgeorge007](https://github.com/jamesgeorge007))
* [#5238](https://github.com/vuejs/vue-cli/pull/5238) Improve package.json not found error  ([@barbeque](https://github.com/barbeque))

#### :hammer: Underlying Tools
* `@vue/cli-plugin-eslint`
* [#5273](https://github.com/vuejs/vue-cli/pull/5273) chore(eslint): bump minimum required eslint-loader version to support ESLint 6 ([@megos](https://github.com/megos))

#### Committers: 15
- Benoît Burgener ([@LeBenLeBen](https://github.com/LeBenLeBen))
- Cédric Exbrayat ([@cexbrayat](https://github.com/cexbrayat))
- Darryl Kuhn ([@darrylkuhn](https://github.com/darrylkuhn))
- George Tsiolis ([@gtsiolis](https://github.com/gtsiolis))
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
- Jadranko Dragoje ([@manico](https://github.com/manico))
- Jair Reina ([@jaireina](https://github.com/jaireina))
- James George ([@jamesgeorge007](https://github.com/jamesgeorge007))
- Janis Pritzkau ([@janispritzkau](https://github.com/janispritzkau))
- Manuel Ojeda ([@manuelojeda](https://github.com/manuelojeda))
- Mike ([@barbeque](https://github.com/barbeque))
- Thorsten Lünborg ([@LinusBorg](https://github.com/LinusBorg))
- megos ([@megos](https://github.com/megos))
- simon3000 ([@simon300000](https://github.com/simon300000))
- 夜宴 ([@yeyan1996](https://github.com/yeyan1996))



## 4.2.3 (2020-02-27)

#### :bug: Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion docs/core-plugins/eslint.md
Expand Up @@ -17,7 +17,7 @@
--max-warnings specify number of warnings to make build failed (default: Infinity)
```

Lints and fixes files. If no specific files are given, it lints all files in `src` and `test`.
Lints and fixes files. If no specific files are given, it lints all files in `src` and `tests`.

Other [ESLint CLI options](https://eslint.org/docs/user-guide/command-line-interface#options) are also supported.

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
@@ -1,7 +1,7 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "4.2.3",
"version": "4.3.1",
"packages": [
"packages/@vue/babel-preset-app",
"packages/@vue/cli*",
Expand Down
36 changes: 18 additions & 18 deletions package.json
Expand Up @@ -44,47 +44,47 @@
]
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/core": "^7.9.0",
"@vue/eslint-config-airbnb": "^5.0.2",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-standard": "^5.1.0",
"@vue/eslint-config-typescript": "^5.0.1",
"@vuepress/plugin-pwa": "^1.3.0",
"@vuepress/theme-vue": "^1.3.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"@vue/eslint-config-standard": "^5.1.2",
"@vue/eslint-config-typescript": "^5.0.2",
"@vuepress/plugin-pwa": "^1.4.0",
"@vuepress/theme-vue": "^1.4.0",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.3",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.9.0",
"chromedriver": "^80.0.0",
"chromedriver": "^80.0.1",
"debug": "^4.1.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-graphql": "^3.1.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.1.2",
"eslint-plugin-vue": "^6.2.2",
"eslint-plugin-vue-libs": "^4.0.0",
"execa": "^1.0.0",
"geckodriver": "^1.19.1",
"globby": "^9.2.0",
"graphql": "^14.6.0",
"http-server": "^0.12.1",
"inquirer": "^6.3.1",
"inquirer": "^7.1.0",
"jest": "^24.9.0",
"lerna": "^3.19.0",
"lerna-changelog": "^0.8.3",
"lint-staged": "^9.5.0",
"memfs": "^3.0.4",
"minimist": "^1.2.0",
"memfs": "^3.1.2",
"minimist": "^1.2.5",
"prettier": ">= 1.13.0",
"request": "^2.87.0",
"request": "^2.88.2",
"request-promise-native": "^1.0.8",
"rimraf": "^3.0.1",
"rimraf": "^3.0.2",
"semver": "^6.1.0",
"typescript": "~3.7.5",
"typescript": "~3.8.3",
"vuepress": "^1.3.0",
"webpack": "^4.0.0",
"yorkie": "^2.0.0"
Expand Down
6 changes: 4 additions & 2 deletions packages/@vue/babel-preset-app/index.js
Expand Up @@ -59,6 +59,7 @@ module.exports = (context, options = {}) => {
debug = false,
useBuiltIns = 'usage',
modules = false,
bugfixes = true,
targets: rawTargets,
spec,
ignoreBrowserslistConfig = !!process.env.VUE_CLI_MODERN_BUILD,
Expand Down Expand Up @@ -137,7 +138,8 @@ module.exports = (context, options = {}) => {
}

const envOptions = {
corejs: 3,
bugfixes,
corejs: useBuiltIns ? 3 : false,
spec,
loose,
debug,
Expand Down Expand Up @@ -204,7 +206,7 @@ module.exports = (context, options = {}) => {
presets: [
[require('@babel/preset-env'), {
useBuiltIns,
corejs: 3
corejs: useBuiltIns ? 3 : false
}]
]
}]
Expand Down
12 changes: 6 additions & 6 deletions packages/@vue/babel-preset-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@vue/babel-preset-app",
"version": "4.2.3",
"version": "4.3.1",
"description": "babel-preset-app for vue-cli",
"main": "index.js",
"publishConfig": {
Expand All @@ -22,16 +22,16 @@
},
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/babel-preset-app#readme",
"dependencies": {
"@babel/core": "^7.8.4",
"@babel/helper-compilation-targets": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/helper-compilation-targets": "^7.8.7",
"@babel/helper-module-imports": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-jsx": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/runtime": "^7.9.2",
"@vue/babel-preset-jsx": "^1.1.2",
"babel-plugin-dynamic-import-node": "^2.3.0",
"core-js": "^3.6.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-init/package.json
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-init",
"version": "4.2.3",
"version": "4.3.1",
"description": "init addon for vue-cli",
"main": "index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-overlay/package.json
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-overlay",
"version": "4.2.3",
"version": "4.3.1",
"description": "error overlay & dev server middleware for vue-cli",
"main": "dist/client.js",
"files": [
Expand Down
10 changes: 5 additions & 5 deletions packages/@vue/cli-plugin-babel/package.json
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-babel",
"version": "4.2.3",
"version": "4.3.1",
"description": "babel plugin for vue-cli",
"main": "index.js",
"repository": {
Expand All @@ -20,10 +20,10 @@
},
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/cli-plugin-babel#readme",
"dependencies": {
"@babel/core": "^7.8.4",
"@vue/babel-preset-app": "^4.2.3",
"@vue/cli-shared-utils": "^4.2.3",
"babel-loader": "^8.0.6",
"@babel/core": "^7.9.0",
"@vue/babel-preset-app": "^4.3.1",
"@vue/cli-shared-utils": "^4.3.1",
"babel-loader": "^8.1.0",
"cache-loader": "^4.1.0",
"thread-loader": "^2.1.3",
"webpack": "^4.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/@vue/cli-plugin-e2e-cypress/package.json
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-e2e-cypress",
"version": "4.2.3",
"version": "4.3.1",
"description": "e2e-cypress plugin for vue-cli",
"main": "index.js",
"repository": {
Expand All @@ -23,9 +23,9 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^4.2.3",
"@vue/cli-shared-utils": "^4.3.1",
"cypress": "^3.8.3",
"eslint-plugin-cypress": "^2.8.1"
"eslint-plugin-cypress": "^2.10.3"
},
"peerDependencies": {
"@vue/cli-service": "^3.0.0 || ^4.0.0-0"
Expand Down
6 changes: 3 additions & 3 deletions packages/@vue/cli-plugin-e2e-nightwatch/package.json
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-e2e-nightwatch",
"version": "4.2.3",
"version": "4.3.1",
"description": "e2e-nightwatch plugin for vue-cli",
"main": "index.js",
"repository": {
Expand All @@ -23,12 +23,12 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^4.2.3",
"@vue/cli-shared-utils": "^4.3.1",
"deepmerge": "^4.2.2",
"nightwatch": "^1.3.4"
},
"devDependencies": {
"chromedriver": "^80.0.0",
"chromedriver": "^80.0.1",
"geckodriver": "^1.19.1",
"selenium-server": "^3.141.59"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/__tests__/ui.spec.js
Expand Up @@ -84,7 +84,7 @@ describe('getEslintPrompts', () => {
extends: 'plugin:vue/recommended',
rules: {
'vue/lorem': ['error', ['asd']], // custom setting
'vue/ipsum': 'warning'
'vue/ipsum': 'warn'
}
}
}
Expand Down Expand Up @@ -146,7 +146,7 @@ describe('getEslintPrompts', () => {
})

it('sets value on prompt item, if the rule was set in project\'s eslint config', () => {
expect(prompts[1].value).toBe('"warning"')
expect(prompts[1].value).toBe('"warn"')
expect(prompts[2].value).toBe('["error",["asd"]]')
})

Expand Down
18 changes: 9 additions & 9 deletions packages/@vue/cli-plugin-eslint/eslintDeps.js
@@ -1,28 +1,28 @@
const DEPS_MAP = {
base: {
eslint: '^6.7.2',
'eslint-plugin-vue': '^6.1.2'
'eslint-plugin-vue': '^6.2.2'
},
airbnb: {
'@vue/eslint-config-airbnb': '^5.0.2',
'eslint-plugin-import': '^2.20.1'
'eslint-plugin-import': '^2.20.2'
},
prettier: {
'@vue/eslint-config-prettier': '^6.0.0',
'eslint-plugin-prettier': '^3.1.1',
prettier: '^1.19.1'
},
standard: {
'@vue/eslint-config-standard': '^5.1.0',
'eslint-plugin-import': '^2.20.1',
'eslint-plugin-node': '^11.0.0',
'@vue/eslint-config-standard': '^5.1.2',
'eslint-plugin-import': '^2.20.2',
'eslint-plugin-node': '^11.1.0',
'eslint-plugin-promise': '^4.2.1',
'eslint-plugin-standard': '^4.0.0'
},
typescript: {
'@vue/eslint-config-typescript': '^5.0.1',
'@typescript-eslint/eslint-plugin': '^2.18.0',
'@typescript-eslint/parser': '^2.18.0'
'@vue/eslint-config-typescript': '^5.0.2',
'@typescript-eslint/eslint-plugin': '^2.26.0',
'@typescript-eslint/parser': '^2.26.0'
}
}

Expand All @@ -37,7 +37,7 @@ exports.getDeps = function (api, preset) {

if (api.hasPlugin('babel') && !api.hasPlugin('typescript')) {
Object.assign(deps, {
'babel-eslint': '^10.0.3'
'babel-eslint': '^10.1.0'
})
}

Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/eslintOptions.js
Expand Up @@ -7,8 +7,8 @@ exports.config = (api, preset) => {
ecmaVersion: 2020
},
rules: {
'no-console': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'error' : 'off'`),
'no-debugger': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'error' : 'off'`)
'no-console': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'warn' : 'off'`),
'no-debugger': makeJSOnlyValue(`process.env.NODE_ENV === 'production' ? 'warn' : 'off'`)
}
}

Expand Down

0 comments on commit bd7ad93

Please sign in to comment.