Commit Graph

2842 Commits

Author SHA1 Message Date
Haoqun Jiang
33487a858c workflow: allow manually specifying dist-tag when releasing 2020-02-27 10:26:02 +08:00
James George
480ac7f84f chore: minor typographical fix (#5215) 2020-02-25 09:05:31 +08:00
Xiao Haiping
efbc20c676 docs(zh): Update now 404 url (#5141)
ref to en docs
2020-02-17 15:22:18 +08:00
James George
1423553a6d chore: Minor typographical fix (#5189)
* chore: typographical fix

* chore: update test
2020-02-16 20:52:17 +08:00
James George
130bcfb730 chore: switch over to leven for command suggestion (#5166)
* chore: switch to leven

* chore: update lock file

* chore: iterate through all the available commands and find closest match

* chore: update yarn.lock

* fix: lint

* chore: find the best possible match
2020-02-13 17:31:04 +08:00
Haoqun Jiang
38a7b0f153 chore: 4.2.2 changelog [ci skip] 2020-02-07 19:15:19 +08:00
Haoqun Jiang
94da5243be v4.2.2 v4.2.2 2020-02-07 19:10:35 +08:00
Haoqun Jiang
0d0168bf28 fix(ui): fix the incorrect RegExp used for CORS check 2020-02-07 19:04:35 +08:00
Haoqun Jiang
70fbd747df chore: refine changelog [ci skip] 2020-02-07 18:14:58 +08:00
Haoqun Jiang
8b951f81d5 v4.2.1 v4.2.1 2020-02-07 18:09:45 +08:00
Haoqun Jiang
776275d023 fix: add graphql-server.js to npm files 2020-02-07 18:08:29 +08:00
Haoqun Jiang
d7acff56a4 chore: merge branch 'dev' into master 2020-02-07 15:53:14 +08:00
Haoqun Jiang
807382c61f chore: refine changelog [ci skip] 2020-02-07 15:51:26 +08:00
Haoqun Jiang
079a451f18 v4.2.0 v4.2.0 2020-02-07 15:44:52 +08:00
Haoqun Jiang
d49349177d chore: pre release sync 2020-02-07 15:43:38 +08:00
Haoqun Jiang
6d680bc012 fix(migrator): correctly extract config fields to files 2020-02-06 19:40:50 +08:00
Haoqun Jiang
246c1973ab fix: clear require cache after upgrade, before migrate 2020-02-06 19:02:35 +08:00
Haoqun Jiang
ef15316591 fix: preserve the tilde version range after vue upgrade 2020-02-06 19:02:35 +08:00
Haoqun Jiang
51a4da7e9f fix: should infer package manager from config if there's no lockfile in the project (#5150)
* fix: should infer package manager from config if there's no lockfile in the project

* fixup! fix: should infer package manager from config if there's no lockfile in the project
2020-02-06 16:25:28 +08:00
Haoqun Jiang
f5f4de0aa3 feat(GeneratorAPI): allow passing options to api.extendPackage (#5149)
Currently, 3 options are implemented:

- options.prune (defaults to `false`) - Remove null or undefined
fields from the object after merging.
- options.merge (defaults to `true`) deep-merge nested fields, note
that dependency fields are always deep merged regardless of this option.
- options.warnIncompatibleVersions (defaults to `true`) Output warning
if two dependency version ranges don't intersect.

Closes #4779
2020-02-06 14:28:00 +08:00
Haoqun Jiang
9a1d52e2ff feat: create projects with @vue/test-utils beta 31 (#5147)
See changelog at https://github.com/vuejs/vue-test-utils/blob/v1.0.0-beta.31/CHANGELOG.md#100-beta31-2020-01-18

New projects will be created with this new version.

There are a few breaking changes since beta.29. So we can't automatically migrate existing projects to this new version. Users can upgrade at their own will.
2020-02-06 14:27:21 +08:00
小新
7f2140a218 docs(en): update polyfill import according to core-js 3 docs (#5130) 2020-02-06 13:36:49 +08:00
Cédric Exbrayat
adef4c9729 fix(e2e-nightwatch): fix eslint config generation (#5148)
Commit 1b64ff8464 introduced a nested if in `_eslintrc.js` with the same condition than the wrapping one. This changes the condition to check for TypeScript instead.
2020-02-05 22:55:19 +08:00
Haoqun Jiang
c5bf5b13a5 chore: update chromedriver version to 80 2020-02-05 19:54:03 +08:00
Haoqun Jiang
e6d7bbd731 feat: implement a migrator that updates the project's ts version 2020-02-05 19:29:17 +08:00
Haoqun Jiang
82bd07438a refactor: use dep versions from plugin package.json 2020-02-05 19:18:00 +08:00
Haoqun Jiang
1b64ff8464 fix: fix eslint errors for typescript + e2e-nightwatch setup 2020-02-05 17:51:50 +08:00
Haoqun Jiang
e4410b8e8d fixup! fix: fix duplicate slash in metadata url 2020-02-05 14:45:10 +08:00
Haoqun Jiang
813680eced fix: should use the local version number if the cache falls behind 2020-02-05 14:39:52 +08:00
Haoqun Jiang
e1b8519183 fix: fix duplicate slash in metadata url 2020-02-05 14:31:22 +08:00
Haoqun Jiang
02a4799256 chore: update vue & vue-template-compiler to 2.6.11 2020-02-05 14:27:40 +08:00
Haoqun Jiang
ce64455996 fix(cors): fixup #4985, allow same-origin ws requests of any domain (#5142)
* fix: followup of #4985, allow same-site ws requests of any domain

* fix: match whole string
2020-02-04 22:51:06 +08:00
Haoqun Jiang
3ee096ec35 fix: don't output warning message on eslint deps upgrade 2020-02-04 21:52:05 +08:00
Haoqun Jiang
45d4969083 ci: no need to include branch in the cache key 2020-02-04 20:13:03 +08:00
Haoqun Jiang
45013906de test: uncomment the airbnb eslint migrator test 2020-02-04 20:04:20 +08:00
Haoqun Jiang
773f8a47e9 feat: lock minor versions when creating projects / adding plugins (#5134)
* feat: lock minor versions when creating projects / adding plugins

closes #5012

* refactor: also calculate latestMinor version

* feat: support add packages with tilde version range

* refactor: make the `runCommand` invocations more concise

* refactor: use the `getVersions` utility function to get latestMinor

* feat: when adding plugins, use tilde range by default

* fix: allow empty args
2020-02-04 16:26:32 +08:00
Haoqun Jiang
c8cecffedb refactor: remove usage of deprecated babel functions, preparing for babel 8 (#5133)
* refactor: use babel.loadPartialConfigSync (added in babel 7.8)

As planned in https://github.com/babel/babel/issues/10746,
in babel 8 the old `loadPartialConfig` can't be used synchronously.

* refactor: remove dependence on internal babel files, preparing for babel 8

See
https://github.com/babel/babel/issues/10746
https://github.com/babel/babel/pull/10899
2020-02-03 19:52:42 +08:00
Guillaume Chau
da43343329 fix(CORS): only allow connections from the designated host (#4985)
* fix(cors): only allow localhost

* fix: use host so it's configurable

* fix: use cors options object

* feat: use a custom graphql-server instead of the one from apollo plugin

exports the httpServer instance

* fix: add CORS validation in the http upgrade request

Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2020-02-03 19:35:40 +08:00
Haoqun Jiang
8028d9fff7 chore: dependency maintenance 2020-02-02 23:08:35 +08:00
Haoqun Jiang
3f212bb5af chore: remove redundant devDependencies 2020-02-02 21:25:04 +08:00
Haoqun Jiang
b381c752c7 feat: upgrade to typescript@~3.7.5 (#5128) 2020-02-02 21:23:18 +08:00
Илья
9f0b1f6243 fix(docs): new travis CLI interface (#5126)
At the moment this is done like this: https://github.com/travis-ci/travis.rb#env
2020-02-01 09:36:34 +02:00
Thorsten Lünborg
f7ad307059 fix(e2e-cypress): make --headless work with --browser chrome (#5108)
* fix(e2e-cypress): make —headless work with —browser chrome

fix #5103

* fix: increase cypress minimum version to 3.8

this version onwards supports using --browser chrome --headless
2020-02-01 15:24:38 +08:00
Haoqun Jiang
76c173693e fix: correctly catch errors of offline install 2020-02-01 14:41:14 +08:00
Haoqun Jiang
9b073f864d ci: fix config format 2020-02-01 14:34:28 +08:00
Haoqun Jiang
eeb1491c64 test: use offline install for test projects (for vue upgrade) 2020-02-01 14:26:53 +08:00
Haoqun Jiang
170e63ecfc test: don't check for taobao registry during tests 2020-02-01 14:10:11 +08:00
Haoqun Jiang
5bf6051b75 fix: vue-template-compiler can be optional if @vue/compiler-sfc presents (#5123) 2020-01-30 20:38:39 +01:00
Haoqun Jiang
d11ecc2151 fix: correctly calculate cacheIdentifier from lockfiles (#5113)
* fix: correctly calculate cacheIdentifier from lockfiles

follow up of #3865
fixes #4438

* Revert "fix: correctly calculate cacheIdentifier from lockfiles"

This reverts commit dbce88b7cc.

* fix: should take all configFiles and lockfiles into account

The previous implementation is based on the assumption that config files
have precendences, e.g. `.eslintrc.js` will take higher precendence
over `.eslintrc`, and only one will take effect.

This is not accurate however. For example, babel relies on both babel
config and browserslist config, so we need to deal with 2 config files.
2020-01-30 20:36:56 +01:00
Frank Fang
9e18f3c01d Add a demo for multiple loader (#5122)
English version already merged https://github.com/vuejs/vue-cli/pull/5076/files
2020-01-30 22:01:31 +08:00