Commit Graph

655 Commits

Author SHA1 Message Date
Haoqun Jiang
e311b062cb v4.4.6 2020-06-24 13:23:16 +08:00
Haoqun Jiang
dd98d2a7f0 fix: fix jscodeshift peer dependency error (#5614)
Fixes #5612

TODO: @babel/preset-env can be removed when we switch over from
jscodeshift to vue-codemod
2020-06-24 13:17:19 +08:00
Haoqun Jiang
09cdf51c5e fix: fix support for some legacy registry servers (#5609)
Some registry servers do not recognize `application/vnd.npm.install-v1+json`
in the Accept header, so here we add `application/json` as fallback.
2020-06-24 10:35:55 +08:00
Haoqun Jiang
c889073c7f chore: improve error message when get metadata failed (#5604) 2020-06-24 10:35:01 +08:00
Haoqun Jiang
b66bc8c6e6 v4.4.5 2020-06-22 20:00:02 +08:00
Haoqun Jiang
4891d91d3c fix: support auth token when retrieving package metadata (#5586) 2020-06-19 15:47:13 +08:00
Haoqun Jiang
78374b717e v4.4.4 2020-06-12 20:59:21 +08:00
Haoqun Jiang
d9453e8227 v4.4.3 2020-06-12 15:53:06 +08:00
Haoqun Jiang
e13f8f8588 chore: merge branch 'master' into dev 2020-06-12 15:52:05 +08:00
Haoqun Jiang
a4839e921b v4.4.2 2020-06-12 15:46:01 +08:00
fxxjdedd
fa871b05b3 fix: add --no-verify to initial git commit (#5540) 2020-06-01 18:50:04 +08:00
Haoqun Jiang
34f303b0b6 v4.4.1 2020-05-25 16:09:19 +08:00
Haoqun Jiang
538a0288c8 fix(cli): fix the creation log (#5502) 2020-05-21 17:10:42 +08:00
Haoqun Jiang
6323b73260 v4.4.0 2020-05-19 23:19:18 +08:00
Haoqun Jiang
02a365dc65 feat(plugin-api): expose inquirer to prompts.js, allowing custom prompt types (#5498) 2020-05-19 20:41:06 +08:00
Haoqun Jiang
aee9e178e7 fix: allow specifying plugin version when calling vue add (#5497)
fixes #4700
2020-05-19 09:11:15 +08:00
Haoqun Jiang
8b01c9ec51 chore: dependency maintenance (#5496) 2020-05-18 21:24:19 +08:00
Haoqun Jiang
90f114640c fix(ui): the logs from creator should be displayed in the UI (#5493)
With `logWithSpinner`, the log would be output to the console instead.

Fixes #5240
Fixes #5445
2020-05-18 10:24:38 +08:00
Haoqun Jiang
75c398f04e fix(creator): do not override the README.md generated by plugins (#5472)
closes #4802
closes #4942
2020-05-16 22:09:56 +08:00
Romain
e2f00d2867 fix(ui): fix "update all plugins/dependencies" utility (#5395) 2020-05-08 16:42:45 +08:00
Haoqun Jiang
5e93d70e65 fix: normalize the file argument of transformScript, fix Windows compatibility (#5424) 2020-05-08 16:11:47 +08:00
Haoqun Jiang
8d1056268e chore: dependency maintenance 2020-04-29 16:41:40 +08:00
Haoqun Jiang
2ec479a331 v4.3.1 2020-04-07 23:39:34 +08:00
Haoqun Jiang
9855c52305 fix: run migrator in a separator process, fix require cache issues during upgrade (#5360)
* fix: run migrator in a separator process, fix require cache issues during upgrade

* fix: fix cwd

* test: fix test mocks

* fix: early return
2020-04-07 16:12:44 +08:00
Haoqun Jiang
465986923a v4.3.0 2020-04-01 15:59:32 +08:00
Haoqun Jiang
5c8c614414 chore: update download-git-repo to the latest major 2020-04-01 15:20:50 +08:00
Haoqun Jiang
ee05918486 chore: dependency maintenance 2020-04-01 14:27:44 +08:00
Jair Reina
e5449adf74 feat(vue-cli): Choosing to save as a preset tells you where it is saved (#5212)
close #5197

Co-authored-by: Jair Reina <Jair.Reina@digitaslbi.com>
2020-03-21 21:34:27 +08:00
James George
8749f4b715 chore: test case for command suggestion (#5228) 2020-03-11 17:41:39 +08:00
Mike
74ca541e27 Improve package.json not found error  (#5238) 2020-03-07 00:23:08 +01:00
Haoqun Jiang
0380f226b9 v4.2.3 2020-02-27 22:31:36 +08:00
Haoqun Jiang
d8db292080 fix: fix "Vue packages version mismatch" error caused by other global packages (#5163)
closes #5161

The root cause of such issues:

`vue-jscodeshift-adapter` requires `vue-template-compiler`.
`vue-template-compiler` tries to require the `vue` package and check
its version on startup.

Normally, there's no `vue` package in the dependency tree of `@vue/cli`,
so this check will just skip.

But if the user has installed some other global package that depend on
`vue`, and hoists it to the root `node_modules`, `vue-template-compiler`
would successfully require it and check against that `vue` version,
which sometimes may be outdated, thus failing the bootstrap process.
2020-02-27 11:10:47 +08:00
Cédric Exbrayat
5cb988cb27 fix(GeneratorAPI): remove warning when using extendPackage with prune (#5202)
Currently, if we use `api.extendPackage({foo: null}, {prune: true})` the dependency is removed but a warning is logged as the range is invalid:

```
 WARN  invalid version range for dependency "foo":

- null injected by generator "my-plugin"
```
2020-02-27 11:10:14 +08:00
James George
480ac7f84f chore: minor typographical fix (#5215) 2020-02-25 09:05:31 +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
94da5243be 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
8b951f81d5 v4.2.1 2020-02-07 18:09:45 +08:00
Haoqun Jiang
079a451f18 v4.2.0 2020-02-07 15:44:52 +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
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
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
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