Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An in-range update of @vue/cli-plugin-babel is breaking the build 🚨 #12

Closed
greenkeeper bot opened this issue Nov 27, 2019 · 9 comments
Closed

Comments

@greenkeeper
Copy link
Contributor

greenkeeper bot commented Nov 27, 2019

The devDependency @vue/cli-plugin-babel was updated from 4.1.0 to 4.1.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@vue/cli-plugin-babel is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • WhiteSource Security Check: The Security Check found 3 vulnerabilities.

Severity CVSS Score CVE GitHub Issue
Medium 6.1 CVE-2015-9251 #4
Medium 6.1 CVE-2012-6708 #3
Medium 4.3 WS-2016-0090 #5

Scan token: fb262a75f32d481cab7f7d521137ddd0

Release Notes for v4.1.1

🐛 Bug Fix

  • @vue/cli-plugin-typescript

Committers: 1

Commits

The new version differs by 3 commits.

  • 2ddcc65 v4.1.1
  • dd98fa6 fix: fix tsx compilation (#4894)
  • d21245d workflow: correctly decide which dist-tag to use

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 27, 2019

After pinning to 4.1.0 your tests are passing again. Downgrade this dependency 📌.

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 28, 2019

Your tests are still failing with this version. Compare changes

Commits

The new version differs by 20 commits.

  • 3b7227d v4.1.2
  • 95ae2a1 chore: merge branch 'master' into dev
  • 0cba512 fix: fix several bugs in the PWA plugin UI, make it usable again (#4974)
  • 1594327 chore: fix link to himepage (#5004)
  • 9e73907 docs: update example code (#4987)
  • ef548a7 Update debugging instructions (#4754)
  • 7bc3cd7 docs: his -> their (#4976)
  • 3f15b4c mention navigateFallback in the pwa docs (#4973)
  • 00acca5 refactor: use inline approach (#4904)
  • 26bdb51 fix: typo errors (#4938)
  • f7b95ac fix: should download to different directories for different pre… (#4922)
  • 02f2436 docs: [RU] Translation update (#4917)
  • c7961cd fix: do not throw when babel config contains ignore/include/exclude (#4924)
  • aeddc6f refactor: changed var async to isAsync (#4909)
  • 6c24964 chore: remove unused dependency "slash"

There are 20 commits in total.

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 7, 2020

Your tests are still failing with this version. Compare changes

Release Notes for v4.2.0

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 projects, run

vue upgrade

Notable Changes

Vue CLI UI CORS Issue

A critically CORS vulnerability is fixed in this version.
We recommend all users of vue ui to upgrade to this version as soon as possible.

#4985 #5142

Lock Minor Version By Default

From this version on, newly-created projects and newly-added CLI plugins will lock the plugin version ranges to their minor versions.

The core functionalities of Vue CLI is quite stable at the moment.
We made this change to improve project stability even more.

Users can run vue upgrade periodically to bump the minor versions in the projects.
We also expect this change to make the adoption of new features smoother.

See more detailed explanation at #5012

ESLint 6

With the recent updates in the ecosystem (eslint-plugin-vue, @vue/eslint-config-airbnb, @vue/eslint-config-standard, @vue/eslint-config-prettier, @vue/eslint-config-typescript), Vue CLI now supports ESLint 6. It will scaffold all new projects will ESLint 6.

For users from older versions, ESLint 5 is still supported. If you want to adopt ESLint 6 in the project, it's recommended to migrate through the vue upgrade command; otherwise, there will be much manual work to do.

Optional Chaining & Nullish Coalescing

We now support the optional chaining and nullish coalescing operators!

// Optional chaining
a?.(); // undefined if `a` is null/undefined
b?.c; // undefined if `b` is null/undefined

// Nullish coalescing
undefined ?? 'some other default'; // result: 'some other default'
null ?? 'some other default'; // result: 'some other default'
'' ?? 'some other default'; // result: ''
0 ?? 300; // result: 0
false ?? true; // result: false

If you're using Babel, these syntaxes supported by default since this version, so no actions to take.

If you're using TypeScript, the vue upgrade command will automatically do the necessary
configurations for you, or you can manually upgrade your typescript dependency to 3.7.0 or later.

vue upgrade and vue migrate

See the Pull Request at #5091

You may have encountered the TypeError: Invalid Version: N/A error if you ran vue upgrade in a monorepo or forgot to run npm install first.
It is because, to run corresponding migration scripts, Vue CLI needs to know which versions of plugins the project previously depended on.

Monorepo support has been added since v4.2.

But in case of missing dependencies or any other edge cases, you can pass a --from option to the command to skip the local version detection step. For example: vue upgrade eslint --from 4.1.2.

A vue migrate --from command is available for those already bumped to the latest versions but didn't run the migration scripts.

Project Template Changes

  1. The default ESLint version is bumped to v6. Users can upgrade through vue upgrade.
  2. The default TypeScript version is bumped from ~3.5.3 to ~3.7.5. Users can upgrade through vue upgrade, or manually change the dependency version in package.json
  3. For ESLint + TypeScript + Nightwatch users, due to the ESLint rule change, an additional rule needs to be added to tests/e2e/.eslintrc. We haven't implemented an automatic migration script for it. Please add it manually. See https://github.com/vuejs/vue-cli/blob/v4.2.0/packages/%40vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js#L5
  4. The default @vue/test-utils version used for unit tests is bumped from 1.0.0-beta.29 to 1.0.0-beta.31. Due to the breaking changes, we didn't migrate it automatically for old projects. Please read the release notes and upgrade at your own will.

Detailed Changelog

🚀 New Features

  • @vue/cli-plugin-babel, @vue/cli-plugin-eslint, @vue/cli-plugin-typescript, @vue/cli
    • #5149 feat(GeneratorAPI): allow passing options to api.extendPackage (@sodatea)
  • @vue/cli-plugin-unit-jest, @vue/cli-plugin-unit-mocha
    • #5147 feat: create projects with @vue/test-utils beta 31 (@sodatea)
  • @vue/cli-ui, @vue/cli
    • #5134 feat: lock minor versions when creating projects / adding plugins (@sodatea)
  • @vue/cli-plugin-typescript, @vue/cli-ui
  • @vue/cli
    • #5091 feat: vue upgrade monorepo support, --from option, and a new vue migrate --from command (@sodatea)
    • #4828 feat: add option --merge to create command (@zyy7259)
  • @vue/cli-service
  • @vue/babel-preset-app, @vue/cli-plugin-e2e-nightwatch, @vue/cli-plugin-eslint, @vue/cli-plugin-pwa, @vue/cli-ui-addon-webpack, @vue/cli-ui-addon-widgets, @vue/cli-ui, @vue/cli
  • @vue/cli-service, @vue/cli-shared-utils, @vue/cli
  • @vue/babel-preset-app
  • @vue/cli-service-global
    • #5029 feat: don't throw on console/debugger statements for vue serve (@sodatea)

🐛 Bug Fix

  • @vue/cli-shared-utils, @vue/cli
    • #5150 fix: should infer package manager from config if there's no lockfile in the project (@sodatea)
    • #5045 refactor: use a plain http request to get package metadata (@sodatea)
  • @vue/cli
    • #5062 fix afterInvoke/onCreateComplete callbacks in Migrator (@sodatea)
    • #5038 fix: extendPackage dependency versions should be string (@pksunkara)
  • @vue/cli-ui, @vue/cli
    • #4985 fix(CORS): only allow connections from the designated host (@Akryum)
    • #5142 fix(CORS): fixup #4985, allow same-origin ws requests of any domain (@sodatea)
  • @vue/cli-plugin-e2e-cypress
  • @vue/cli-service
    • #5113 fix: correctly calculate cacheIdentifier from lockfiles (@sodatea)
  • @vue/cli-plugin-pwa
    • #5089 fix: pwa-plugin avoid generating manifest when path is an URL (@tkint)
  • @vue/cli-plugin-unit-jest, @vue/cli-plugin-unit-mocha
    • #5028 fix applyESLint when eslint plugin is added after unit test plugins (@sodatea)
  • @vue/cli-service, @vue/cli-test-utils
  • @vue/cli-plugin-e2e-nightwatch

📝 Documentation

🏠 Internal

  • @vue/babel-preset-app, @vue/cli-plugin-babel
    • #5133 refactor: remove usage of deprecated babel functions, preparing for babel 8 (@sodatea)
  • @vue/cli-service
    • #5123 fix: vue-template-compiler can be optional if @vue/compiler-sfc presents (@sodatea)
    • #5060 refactor: use the title option in the html template, instead of hard-code the project name (@sodatea)
  • @vue/cli
    • #5110 refactor: use env variables to set registry for package managers (@sodatea)
  • @vue/cli-shared-utils
    • #5092 refactor: use createRequire to load/resolve modules (@sodatea)
  • @vue/cli-plugin-router, @vue/cli-plugin-typescript, @vue/cli-service

Committers: 17

Commits

The new version differs by 69 commits.

  • 079a451 v4.2.0
  • d493491 chore: pre release sync
  • 6d680bc fix(migrator): correctly extract config fields to files
  • 246c197 fix: clear require cache after upgrade, before migrate
  • ef15316 fix: preserve the tilde version range after vue upgrade
  • 51a4da7 fix: should infer package manager from config if there's no lockfile in the project (#5150)
  • f5f4de0 feat(GeneratorAPI): allow passing options to api.extendPackage (#5149)
  • 9a1d52e feat: create projects with @vue/test-utils beta 31 (#5147)
  • adef4c9 fix(e2e-nightwatch): fix eslint config generation (#5148)
  • c5bf5b1 chore: update chromedriver version to 80
  • e6d7bbd feat: implement a migrator that updates the project's ts version
  • 82bd074 refactor: use dep versions from plugin package.json
  • 1b64ff8 fix: fix eslint errors for typescript + e2e-nightwatch setup
  • e4410b8 fixup! fix: fix duplicate slash in metadata url
  • 813680e fix: should use the local version number if the cache falls behind

There are 69 commits in total.

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 7, 2020

Your tests are still failing with this version. Compare changes

Release Notes for v4.2.1

🐛 Bug Fix

Commits

The new version differs by 17 commits.

  • 8b951f8 v4.2.1
  • 776275d fix: add graphql-server.js to npm files
  • d7acff5 chore: merge branch 'dev' into master
  • 807382c chore: refine changelog [ci skip]
  • 7f2140a docs(en): update polyfill import according to core-js 3 docs (#5130)
  • 9f0b1f6 fix(docs): new travis CLI interface (#5126)
  • 9e18f3c Add a demo for multiple loader (#5122)
  • 771182e docs(zh): update polyfill import according to core-js 3 docs
  • ff8f035 docs: [RU] Translation update (#5094)
  • 5edafc0 line 477 according to english version (#5081)
  • b5dedc1 Add a demo for multiple loaders (#5076)
  • cf5f009 Mention that Vue CLI should be installed in Prototyping guide (#5079)
  • 1790205 fix: fix a typo (#5078)
  • 49f70ba docs: mention the precedence of .vue & .ts(x) extensions (#5055)
  • e8fb3d9 docs(zh): Sync Chinese translation (#5051) [ci skip]

There are 17 commits in total.

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 7, 2020

Your tests are passing again with this update. Explicitly upgrade to this version 🚀

Release Notes for v4.2.2

🐛 Bug Fix

  • @vue/cli
Commits

The new version differs by 3 commits.

  • 94da524 v4.2.2
  • 0d0168b fix(ui): fix the incorrect RegExp used for CORS check
  • 70fbd74 chore: refine changelog [ci skip]

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 29, 2020

Your tests are still failing with this version. Compare changes

Release Notes for v4.2.3

🐛 Bug Fix

  • @vue/cli
    • #5163 fix "Vue packages version mismatch" error caused by other global packages (@sodatea)
    • #5202 fix(GeneratorAPI): remove warning when using extendPackage with prune (@cexbrayat)
  • @vue/cli-service-global
    • #5196 fix(cli-service-global): fix no-debugger rule config (@sodatea)

📝 Documentation

🏠 Internal

Committers: 9

Commits

The new version differs by 21 commits.

  • 0380f22 v4.2.3
  • a6c35cd chore: merge branch 'dev'
  • da84840 docs: add page title & fix link [ci skip]
  • d8db292 fix: fix "Vue packages version mismatch" error caused by other global packages (#5163)
  • 5cb988c fix(GeneratorAPI): remove warning when using extendPackage with prune (#5202)
  • 69f6805 fix(cli-service-global): fix no-debugger rule config (#5196)
  • 7225649 docs: vue-cli -> Vue CLI
  • 33487a8 workflow: allow manually specifying dist-tag when releasing
  • c39eb72 docs(zh): fix typo in mode-and-env.md (#5224)
  • bd12771 Remove unnecessary hyphen (#5184)
  • 480ac7f chore: minor typographical fix (#5215)
  • b08c10f docs(zh): update example format (#5209)
  • efbc20c docs(zh): Update now 404 url (#5141)
  • 1423553 chore: Minor typographical fix (#5189)
  • 677e4c5 Added basic upgrading instructions (#5176)

There are 21 commits in total.

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 4, 2020

Your tests are still failing with this version. Compare changes

Release Notes for v4.3.0

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 projects, run

vue upgrade

🚀 New Features

  • @vue/cli-plugin-unit-mocha
    • #5294 feat(service): Allow mocha unit tests debugger to be bound to a specified IP and port (@darrylkuhn)
  • @vue/babel-preset-app
    • #5322 feat: enable bugfixes option for babel by default (@sodatea)
  • @vue/cli-service
  • @vue/cli
    • #5212 feat(vue-cli): Choosing to save as a preset tells you where it is saved (@jaireina)
  • @vue/cli-plugin-typescript
    • #5170 feat: use @vue/compiler-sfc as a compiler for TS if available (@cexbrayat)
  • @vue/cli-plugin-eslint, @vue/cli-service-global, @vue/cli-ui-addon-widgets
    • #5241 feat: ease the default no-console severity to warn (@sodatea)
  • @vue/cli-service, @vue/cli-ui-addon-webpack, @vue/cli-ui-addon-widgets, @vue/cli-ui
    • #5233 feat: add "not dead" to the default browserslist query (@sodatea)
  • @vue/cli-plugin-router

🐛 Bug Fix

  • @vue/cli-shared-utils
    • #5315 fix: avoid process hanging when trying to get Chrome version (@sodatea)
    • #5264 fix false positive of hasProjectNpm (@sodatea)
  • @vue/cli-ui
    • #5290 fix(cli-ui): build task defaults should respect outputDir option from config file (Closes #2639) (@LinusBorg)
  • @vue/cli-service
    • #5320 fix: spawn scripts with node, fix modern mode with Yarn 2 (Berry) (@sodatea)
    • #5247 fix(target-lib): fix dynamic public path in a dynamic chunk in Firefox (@sodatea)
  • @vue/cli-plugin-pwa
  • @vue/cli-plugin-eslint
  • @vue/babel-preset-app
    • #5236 fix(babel-preset-app): avoid corejs warning when useBuiltIns is false (@LeBenLeBen)

📝 Documentation

🏠 Internal

  • @vue/cli-service-global
    • #5319 chore(cli-service-global): remove direct dependency on @vue/babel-preset-app (@sodatea)
  • @vue/cli-service
    • #5305 refactor: simplify config loading by skipping fs.existsSync check (@sodatea)
  • @vue/cli

🔨 Underlying Tools

  • @vue/cli-plugin-eslint
    • #5273 chore(eslint): bump minimum required eslint-loader version to support ESLint 6 (@megos)

Committers: 15

Commits

The new version differs by 34 commits.

  • 4659869 v4.3.0
  • 4b31d8a chore: pre release sync
  • 016bb32 chore: bump typescript version to 3.8
  • 5c8c614 chore: update download-git-repo to the latest major
  • ee05918 chore: dependency maintenance
  • 960400b chore: merge branch 'master' into dev
  • 0051017 feat(service): Allow mocha unit tests debugger to be bound to a specified IP and port (#5294)
  • 3d200ce fix(ui): change git initialization commit message placeholder text (#5329)
  • 55d3375 feat: enable bugfixes option for babel by default (#5322)
  • a1041a8 fix: avoid process hanging when trying to get Chrome version (#5315)
  • 4225c30 feat: support vue.config.cjs (#5293)
  • d8afaa0 fix(ui): build task defaults should respect outputDir option from config file (#5290)
  • ef9f7bf chore(cli-service-global): remove direct dependency on @vue/babel-preset-app (#5319)
  • ebcee9a fix: spawn scripts with node, fix modern mode with Yarn 2 (Berry) (#5320)
  • f1bdf73 refactor: simplify config loading by skip fs.existsSync check (#5305)

There are 34 commits in total.

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 7, 2020

Your tests are still failing with this version. Compare changes

Release Notes for v4.3.1

🐛 Bug Fix

  • @vue/cli-plugin-eslint
    • #5363 fix(eslint-migrator): fix local eslint major version detection (@sodatea)
  • @vue/cli
    • #5360 fix: run migrator in a separator process, fix require cache issues during upgrade (@sodatea)

Committers: 1

Commits

The new version differs by 3 commits.

  • 2ec479a v4.3.1
  • 30b6873 fix(eslint-migrator): fix local eslint major version detection (#5363)
  • 9855c52 fix: run migrator in a separator process, fix require cache issues during upgrade (#5360)

See the full diff

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 27, 2020

Your tests are still failing with this version. Compare changes

Release Notes for v4.4.1

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 projects, run

vue upgrade

Notable Changes

The polyfill logic for modern mode and web components target has been refactored.

The final browser target is now calculated from the intersection of the user-specified browser target and the minimum browser versions that support modern mode / web component.

This means we can now drop many polyfills that are only used for some obsolete evergreen browsers if you are using the default browserslist target (["> 1%", "last 2 versions", "not dead"]), which will greatly reduce the bundle size of modern mode / web component target.


🐛 Bug Fix

  • @vue/babel-preset-app
    • #5513 refactor: improve the polyfill importing logic of modern mode (@sodatea)
  • @vue/cli

📝 Documentation

🏠 Internal

  • @vue/babel-preset-app
    • #5513 refactor: improve the polyfill importing logic of modern mode (@sodatea)

Committers: 3

Commits

The new version differs by 43 commits.

  • 34f303b v4.4.1
  • 36b475c chore: depedency maintenance
  • 91ca0b1 refactor: improve the polyfill importing logic of modern mode (#5513)
  • 538a028 fix(cli): fix the creation log (#5502)
  • f425fff chore: Merge branch 'master' into dev
  • 057201c docs: explain pwa head/manifest icons (#5408)
  • 6323b73 v4.4.0
  • d03ccc3 chore: pre release sync
  • 01d4bea fix: should throw errors if there is bad require() in vue.config.js (#5500)
  • 02a365d feat(plugin-api): expose inquirer to prompts.js, allowing custom prompt types (#5498)
  • 0295ff6 fix(unit-jest): fix .vue coverage report when babel plugin is not enabled (#5499)
  • aee9e17 fix: allow specifying plugin version when calling vue add (#5497)
  • 8b01c9e chore: dependency maintenance (#5496)
  • 90f1146 fix(ui): the logs from creator should be displayed in the UI (#5493)
  • 16d2701 fix(mocha): avoid --inspect-brk flag clobbering other values (#5473)

There are 43 commits in total.

See the full diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant