Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vue-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.2.3
Choose a base ref
...
head repository: vuejs/vue-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.3.0
Choose a head ref

Commits on Feb 28, 2020

  1. types(router): added router array type for Array RouteConfig (#4805)

    * types(router): added router array type for Array RouteConfig
    
    * Update index.js
    
    * Update index.js
    manuelojeda authored Feb 28, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    haoqunjiang Haoqun Jiang
    Copy the full SHA
    84abd11 View commit details
  2. docs: fix readme of @vue/cli-plugin-eslint (#5226) [ci skip]

    The default target directories of `vue-cli-service lint` command were written as `src` and `test`, but `src` and `tests` are correct.
    noi authored Feb 28, 2020
    Copy the full SHA
    0569054 View commit details

Commits on Mar 3, 2020

  1. Copy the full SHA
    f1bde5b View commit details

Commits on Mar 6, 2020

  1. Copy the full SHA
    d84c074 View commit details
  2. Copy the full SHA
    d41f31c View commit details
  3. Copy the full SHA
    74ca541 View commit details

Commits on Mar 11, 2020

  1. Copy the full SHA
    8749f4b View commit details

Commits on Mar 16, 2020

  1. chore(deps): bump minimist from 1.2.0 to 1.2.2 (#5271)

    Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.2.
    - [Release notes](https://github.com/substack/minimist/releases)
    - [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.2)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 16, 2020
    Copy the full SHA
    a40e083 View commit details
  2. chore(deps): bump acorn from 7.1.0 to 7.1.1 (#5270)

    Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1.
    - [Release notes](https://github.com/acornjs/acorn/releases)
    - [Commits](acornjs/acorn@7.1.0...7.1.1)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 16, 2020
    Copy the full SHA
    137e7a7 View commit details

Commits on Mar 19, 2020

  1. Copy the full SHA
    0609b1b View commit details
  2. Copy the full SHA
    a1782f9 View commit details
  3. Copy the full SHA
    41cf5e1 View commit details
  4. fix: fix severity config in ui (#5242)

    * fix: fix severity config in ui
    
    closes #5175
    
    * test: update test
    haoqunjiang authored Mar 19, 2020
    Copy the full SHA
    36c6c2e View commit details
  5. Copy the full SHA
    12f3d3b View commit details
  6. feat: use @vue/compiler-sfc as a compiler for TS if available (#5170)

    * feat: use @vue/compiler-sfc as a compiler for TS if available
    
    The `fork-ts-checker-webpack-plugin` is using `vue-template-compiler` by default, and this compiler is not the correct one to pick for vue-next. This commit tries to load `@vue/compiler-sfc` and falls back to `vue-template-compiler` if it does not find it.
    
    * chore: bump fork-ts-checker-webpack-plugin to v3.1.1
    cexbrayat authored Mar 19, 2020
    Copy the full SHA
    3633cf5 View commit details
  7. Copy the full SHA
    c8e6450 View commit details

Commits on Mar 21, 2020

  1. feat(vue-cli): Choosing to save as a preset tells you where it is sav…

    …ed (#5212)
    
    close #5197
    
    Co-authored-by: Jair Reina <Jair.Reina@digitaslbi.com>
    jaireina and Jair Reina authored Mar 21, 2020
    Copy the full SHA
    e5449ad View commit details
  2. Copy the full SHA
    db64c5b View commit details

Commits on Mar 23, 2020

  1. fix(target-lib): fix dynamic public path in a dynamic chunk in Firefox (

    #5247)
    
    * fix(target-lib): fix dynamic public path in a dynmaic chunk in Firefox
    
    * fix: fix typo
    
    * feat: use external dependency `@soda/get-current-script`
    
    * fix: const -> var, as the `setPublicPath` file is not transpiled
    haoqunjiang authored Mar 23, 2020
    2
    Copy the full SHA
    5b1709a View commit details

Commits on Mar 24, 2020

  1. refactor: simplify config loading by skip fs.existsSync check (#5305)

    Use error code thrown by `require` directly.
    This also simplifies module mocking in unit test.
    haoqunjiang authored Mar 24, 2020
    Copy the full SHA
    f1bdf73 View commit details

Commits on Mar 27, 2020

  1. Copy the full SHA
    ebcee9a View commit details
  2. chore(cli-service-global): remove direct dependency on @vue/babel-pre…

    …set-app (#5319)
    
    Eliminates the peer dependency warning.
    haoqunjiang authored Mar 27, 2020
    Copy the full SHA
    ef9f7bf View commit details
  3. Copy the full SHA
    d8afaa0 View commit details

Commits on Mar 31, 2020

  1. feat: support vue.config.cjs (#5293)

    * chore: Update yarn.lock
    
    * feat: support vue.config.cjs
    
    * fix: vue.config.js prior than cjs
    
    * chore: merge upstream
    simon300000 authored Mar 31, 2020
    Copy the full SHA
    4225c30 View commit details
  2. fix: avoid process hanging when trying to get Chrome version (#5315)

    * fix: add a timeout, avoid process hanging
    
    fixes #5310
    
    * fix: avoid accidentally trigerring the `installedBrowsers` getter
    
    fixes #5286
    haoqunjiang authored Mar 31, 2020
    Copy the full SHA
    a1041a8 View commit details
  3. feat: enable bugfixes option for babel by default (#5322)

    Per the discussion at babel/babel#11083,
    it should not be considered a breaking change
    
    Closes #5301
    Closes #4848
    haoqunjiang authored Mar 31, 2020
    Copy the full SHA
    55d3375 View commit details
  4. Copy the full SHA
    3d200ce View commit details

Commits on Apr 1, 2020

  1. Copy the full SHA
    0051017 View commit details
  2. Copy the full SHA
    960400b View commit details
  3. Copy the full SHA
    ee05918 View commit details
  4. Copy the full SHA
    5c8c614 View commit details
  5. chore: bump typescript version to 3.8

    It's been supported in the latest versions of @typescript-eslint packages
    typescript-eslint/typescript-eslint#1696
    haoqunjiang committed Apr 1, 2020
    Copy the full SHA
    016bb32 View commit details
  6. chore: pre release sync

    haoqunjiang committed Apr 1, 2020
    Copy the full SHA
    4b31d8a View commit details
  7. v4.3.0

    haoqunjiang committed Apr 1, 2020
    Copy the full SHA
    4659869 View commit details
Showing with 1,766 additions and 531 deletions.
  1. +73 −0 CHANGELOG.md
  2. +1 −1 docs/core-plugins/eslint.md
  3. +3 −3 docs/dev-guide/plugin-dev.md
  4. +10 −4 docs/guide/mode-and-env.md
  5. +1 −1 lerna.json
  6. +18 −18 package.json
  7. +4 −2 packages/@vue/babel-preset-app/index.js
  8. +6 −6 packages/@vue/babel-preset-app/package.json
  9. +1 −1 packages/@vue/cli-init/package.json
  10. +1 −1 packages/@vue/cli-overlay/package.json
  11. +5 −5 packages/@vue/cli-plugin-babel/package.json
  12. +3 −3 packages/@vue/cli-plugin-e2e-cypress/package.json
  13. +3 −3 packages/@vue/cli-plugin-e2e-nightwatch/package.json
  14. +1 −1 packages/@vue/cli-plugin-eslint/README.md
  15. +2 −2 packages/@vue/cli-plugin-eslint/__tests__/ui.spec.js
  16. +9 −9 packages/@vue/cli-plugin-eslint/eslintDeps.js
  17. +2 −2 packages/@vue/cli-plugin-eslint/eslintOptions.js
  18. +4 −4 packages/@vue/cli-plugin-eslint/package.json
  19. +1 −1 packages/@vue/cli-plugin-eslint/ui/configDescriptor.js
  20. +1 −1 packages/@vue/cli-plugin-pwa/generator/index.js
  21. +31 −17 packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js
  22. +3 −3 packages/@vue/cli-plugin-pwa/package.json
  23. +3 −2 packages/@vue/cli-plugin-router/generator/index.js
  24. +9 −1 packages/@vue/cli-plugin-router/generator/template/src/router/index.js
  25. +3 −3 packages/@vue/cli-plugin-router/package.json
  26. +13 −1 packages/@vue/cli-plugin-typescript/index.js
  27. +8 −8 packages/@vue/cli-plugin-typescript/package.json
  28. +7 −0 packages/@vue/cli-plugin-typescript/vue-compiler-sfc-shim.js
  29. +4 −4 packages/@vue/cli-plugin-unit-jest/package.json
  30. +1 −1 packages/@vue/cli-plugin-unit-mocha/generator/index.js
  31. +2 −1 packages/@vue/cli-plugin-unit-mocha/index.js
  32. +2 −2 packages/@vue/cli-plugin-unit-mocha/package.json
  33. +1 −1 packages/@vue/cli-plugin-vuex/generator/index.js
  34. +2 −2 packages/@vue/cli-plugin-vuex/package.json
  35. +3 −3 packages/@vue/cli-service-global/lib/globalConfigPlugin.js
  36. +7 −8 packages/@vue/cli-service-global/package.json
  37. +5 −13 packages/@vue/cli-service/__tests__/Service.spec.js
  38. +33 −0 packages/@vue/cli-service/__tests__/ServiceESM.spec.js
  39. +6 −0 packages/@vue/cli-service/__tests__/mockESM/package.json
  40. +4 −3 packages/@vue/cli-service/generator/index.js
  41. +42 −15 packages/@vue/cli-service/lib/Service.js
  42. +1 −1 packages/@vue/cli-service/lib/commands/build/index.js
  43. +1 −1 packages/@vue/cli-service/lib/commands/build/resolveWcConfig.js
  44. +11 −4 packages/@vue/cli-service/lib/commands/build/setPublicPath.js
  45. +20 −20 packages/@vue/cli-service/package.json
  46. +7 −0 packages/@vue/cli-shared-utils/index.js
  47. +38 −40 packages/@vue/cli-shared-utils/lib/env.js
  48. +2 −2 packages/@vue/cli-shared-utils/package.json
  49. +1 −1 packages/@vue/cli-test-utils/package.json
  50. +11 −10 packages/@vue/cli-ui-addon-webpack/package.json
  51. +1 −0 packages/@vue/cli-ui-addon-widgets/.browserslistrc
  52. +2 −2 packages/@vue/cli-ui-addon-widgets/.eslintrc.js
  53. +8 −8 packages/@vue/cli-ui-addon-widgets/package.json
  54. +1 −1 packages/@vue/cli-ui/locales/en.json
  55. +22 −21 packages/@vue/cli-ui/package.json
  56. +1 −1 packages/@vue/cli-ui/ui-defaults/tasks.js
  57. +11 −0 packages/@vue/cli/__tests__/args.spec.js
  58. +5 −3 packages/@vue/cli/lib/Creator.js
  59. +2 −1 packages/@vue/cli/lib/options.js
  60. +1 −1 packages/@vue/cli/lib/util/getPkg.js
  61. +11 −11 packages/@vue/cli/package.json
  62. +2 −2 packages/vue-cli-version-marker/package.json
  63. +1,269 −245 yarn.lock
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,77 @@

## 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
2 changes: 1 addition & 1 deletion docs/core-plugins/eslint.md
Original file line number Diff line number Diff line change
@@ -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.

6 changes: 3 additions & 3 deletions docs/dev-guide/plugin-dev.md
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@ First, we need to read main file content with Node `fs` module (which provides a
module.exports.hooks = (api) => {
api.afterInvoke(() => {
const fs = require('fs')
const contentMain = fs.readFileSync(api.entryFile, { encoding: 'utf-8' })
const contentMain = fs.readFileSync(api.resolve(api.entryFile), { encoding: 'utf-8' })
const lines = contentMain.split(/\r?\n/g)
})
}
@@ -265,7 +265,7 @@ Then we should to find the string containing `render` word (it's usually a part
module.exports.hooks = (api) => {
api.afterInvoke(() => {
const fs = require('fs')
const contentMain = fs.readFileSync(api.entryFile, { encoding: 'utf-8' })
const contentMain = fs.readFileSync(api.resolve(api.entryFile), { encoding: 'utf-8' })
const lines = contentMain.split(/\r?\n/g)
const renderIndex = lines.findIndex(line => line.match(/render/))
@@ -283,7 +283,7 @@ module.exports.hooks = (api) => {
api.afterInvoke(() => {
const { EOL } = require('os')
const fs = require('fs')
const contentMain = fs.readFileSync(api.entryFile, { encoding: 'utf-8' })
const contentMain = fs.readFileSync(api.resolve(api.entryFile), { encoding: 'utf-8' })
const lines = contentMain.split(/\r?\n/g)
const renderIndex = lines.findIndex(line => line.match(/render/))
14 changes: 10 additions & 4 deletions docs/guide/mode-and-env.md
Original file line number Diff line number Diff line change
@@ -43,10 +43,16 @@ An env file simply contains key=value pairs of environment variables:

```
FOO=bar
VUE_APP_SECRET=secret
VUE_APP_NOT_SECRET_CODE=some_value
```

Note that only variables that start with `VUE_APP_` will be statically embedded into the client bundle with `webpack.DefinePlugin`.
::: warning
Do not store any secrets (such as private API keys) in your app!

Environment variables are embedded into the build, meaning anyone can view them by inspecting your app's files.
:::

Note that only `NODE_ENV`, `BASE_URL`, and variables that start with `VUE_APP_` will be statically embedded into the *client bundle* with `webpack.DefinePlugin`. It is to avoid accidentally exposing a private key on the machine that could have the same name.

For more detailed env parsing rules, please refer to [the documentation of `dotenv`](https://github.com/motdotla/dotenv#rules). We also use [dotenv-expand](https://github.com/motdotla/dotenv-expand) for variable expansion (available in Vue CLI 3.5+).

@@ -87,10 +93,10 @@ In both cases, the app is built as a production app because of the `NODE_ENV`, b
You can access env variables in your application code:

``` js
console.log(process.env.VUE_APP_SECRET)
console.log(process.env.VUE_APP_NOT_SECRET_CODE)
```

During build, `process.env.VUE_APP_SECRET` will be replaced by the corresponding value. In the case of `VUE_APP_SECRET=secret`, it will be replaced by `"secret"`.
During build, `process.env.VUE_APP_NOT_SECRET_CODE` will be replaced by the corresponding value. In the case of `VUE_APP_NOT_SECRET_CODE=some_value`, it will be replaced by `"some_value"`.

In addition to `VUE_APP_*` variables, there are also two special variables that will always be available in your app code:

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "4.2.3",
"version": "4.3.0",
"packages": [
"packages/@vue/babel-preset-app",
"packages/@vue/cli*",
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 4 additions & 2 deletions packages/@vue/babel-preset-app/index.js
Original file line number Diff line number Diff line change
@@ -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,
@@ -137,7 +138,8 @@ module.exports = (context, options = {}) => {
}

const envOptions = {
corejs: 3,
bugfixes,
corejs: useBuiltIns ? 3 : false,
spec,
loose,
debug,
@@ -204,7 +206,7 @@ module.exports = (context, options = {}) => {
presets: [
[require('@babel/preset-env'), {
useBuiltIns,
corejs: 3
corejs: useBuiltIns ? 3 : false
}]
]
}]
12 changes: 6 additions & 6 deletions packages/@vue/babel-preset-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/babel-preset-app",
"version": "4.2.3",
"version": "4.3.0",
"description": "babel-preset-app for vue-cli",
"main": "index.js",
"publishConfig": {
@@ -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",
2 changes: 1 addition & 1 deletion packages/@vue/cli-init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-init",
"version": "4.2.3",
"version": "4.3.0",
"description": "init addon for vue-cli",
"main": "index.js",
"publishConfig": {
2 changes: 1 addition & 1 deletion packages/@vue/cli-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-overlay",
"version": "4.2.3",
"version": "4.3.0",
"description": "error overlay & dev server middleware for vue-cli",
"main": "dist/client.js",
"files": [
10 changes: 5 additions & 5 deletions packages/@vue/cli-plugin-babel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-babel",
"version": "4.2.3",
"version": "4.3.0",
"description": "babel plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -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.0",
"@vue/cli-shared-utils": "^4.3.0",
"babel-loader": "^8.1.0",
"cache-loader": "^4.1.0",
"thread-loader": "^2.1.3",
"webpack": "^4.0.0"
6 changes: 3 additions & 3 deletions packages/@vue/cli-plugin-e2e-cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-e2e-cypress",
"version": "4.2.3",
"version": "4.3.0",
"description": "e2e-cypress plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,9 +23,9 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^4.2.3",
"@vue/cli-shared-utils": "^4.3.0",
"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"
6 changes: 3 additions & 3 deletions packages/@vue/cli-plugin-e2e-nightwatch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-e2e-nightwatch",
"version": "4.2.3",
"version": "4.3.0",
"description": "e2e-nightwatch plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,12 +23,12 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^4.2.3",
"@vue/cli-shared-utils": "^4.3.0",
"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"
},
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-eslint/README.md
Original file line number Diff line number Diff line change
@@ -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.

4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/__tests__/ui.spec.js
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ describe('getEslintPrompts', () => {
extends: 'plugin:vue/recommended',
rules: {
'vue/lorem': ['error', ['asd']], // custom setting
'vue/ipsum': 'warning'
'vue/ipsum': 'warn'
}
}
}
@@ -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"]]')
})

Loading