chore: update deps of vue-demi

This commit is contained in:
Justineo
2021-02-26 18:33:30 +08:00
parent 9f30925508
commit 0bdbd2034b
5 changed files with 20 additions and 21 deletions

View File

@ -281,10 +281,9 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
<summary>Vue 3</summary>
<!-- vue3Scripts:start -->
```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.0.5"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.1"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.0.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.0.0-alpha.5"></script>
```
@ -306,11 +305,10 @@ app.component('v-chart', VueECharts)
<summary>Vue 2</summary>
<!-- vue2Scripts:start -->
```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-rc.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.1"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.0.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.0.0-alpha.5"></script>
```
@ -425,6 +423,7 @@ import { INIT_OPTIONS_KEY } from 'vue-echarts'
- `dispatchAction` [](https://echarts.apache.org/en/api.html#echartsInstance.dispatchAction)
- `convertToPixel` [](https://echarts.apache.org/en/api.html#echartsInstance.convertToPixel)
- `convertFromPixel` [](https://echarts.apache.org/en/api.html#echartsInstance.convertFromPixel)
- `containPixel` [](https://echarts.apache.org/en/api.html#echartsInstance.containPixel)
- `showLoading` [](https://echarts.apache.org/en/api.html#echartsInstance.showLoading)
- `hideLoading` [](https://echarts.apache.org/en/api.html#echartsInstance.hideLoading)
- `containPixel` [](https://echarts.apache.org/en/api.html#echartsInstance.containPixel)
@ -489,6 +488,8 @@ See supported events [here →](https://echarts.apache.org/en/api.html#events)
## Migration to v6
> 💡 Please make sure to read the [migration guide](https://echarts.apache.org/en/tutorial.html#ECharts%205%20Upgrade%20Guide) for ECharts 5 as well.
The following breaking changes are introduced in `vue-echarts@6`:
### Vue 2 support

View File

@ -279,10 +279,9 @@ export default {
<summary>Vue 3</summary>
<!-- vue3Scripts:start -->
```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.0.5"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.1"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.0.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.0.0-alpha.5"></script>
```
@ -304,11 +303,10 @@ app.component('v-chart', VueECharts)
<summary>Vue 2</summary>
<!-- vue2Scripts:start -->
```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.0.0-rc.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-demi@0.6.1"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.0.2"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.0.0-alpha.5"></script>
```
@ -423,6 +421,7 @@ import { INIT_OPTIONS_KEY } from 'vue-echarts'
- `dispatchAction` [](https://echarts.apache.org/zh/api.html#echartsInstance.dispatchAction)
- `convertToPixel` [](https://echarts.apache.org/zh/api.html#echartsInstance.convertToPixel)
- `convertFromPixel` [](https://echarts.apache.org/zh/api.html#echartsInstance.convertFromPixel)
- `containPixel` [](https://echarts.apache.org/zh/api.html#echartsInstance.containPixel)
- `showLoading` [](https://echarts.apache.org/zh/api.html#echartsInstance.showLoading)
- `hideLoading` [](https://echarts.apache.org/zh/api.html#echartsInstance.hideLoading)
- `containPixel` [](https://echarts.apache.org/zh/api.html#echartsInstance.containPixel)
@ -487,6 +486,8 @@ Vue-ECharts 支持如下事件:
## 迁移到 v6
> 💡 请确保同时查阅 ECharts 5 的[升级指南](https://echarts.apache.org/zh/tutorial.html#ECharts%205%20%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97)。
`vue-echarts@6` 引入了如下破坏性变更:
### Vue 2 支持

15
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "vue-echarts",
"version": "6.0.0-alpha.1",
"version": "6.0.0-alpha.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -4330,7 +4330,8 @@
"core-js": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.9.0.tgz",
"integrity": "sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ=="
"integrity": "sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ==",
"dev": true
},
"core-js-compat": {
"version": "3.9.0",
@ -11314,8 +11315,7 @@
"resize-detector": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/resize-detector/-/resize-detector-0.3.0.tgz",
"integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ==",
"dev": true
"integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ=="
},
"resolve": {
"version": "1.20.0",
@ -13568,10 +13568,9 @@
}
},
"vue-demi": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.6.0.tgz",
"integrity": "sha512-8GEJa0mHJpYJeGeq5fD1pJct2kfdl30PHfmL1NaJ97mgKPyKojlIRt/3inGBK4Y0ylCI6T5vOo3chwpqDOq/Hw==",
"dev": true
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.6.1.tgz",
"integrity": "sha512-2DI0owOzgEDnEBoXpp0nTBquAWLZqVf/+AOJpPUnviT17unMELEPNy5BdSRnQEz+DA0STtqaz+MZtwhzlDHm5Q=="
},
"vue-eslint-parser": {
"version": "7.5.0",

View File

@ -19,9 +19,8 @@
"dist"
],
"dependencies": {
"core-js": "^3.6.5",
"resize-detector": "^0.3.0",
"vue-demi": "^0.6.0"
"vue-demi": "^0.6.1"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.1.1",
@ -53,8 +52,7 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"typescript": "^4.1.3",
"vue": "^3.0.5",
"vue-demi": "^0.6.0"
"vue": "^3.0.5"
},
"peerDependencies": {
"@vue/composition-api": "^1.0.0-rc.2",

View File

@ -10,7 +10,7 @@ const CDN_PREFIX = "https://cdn.jsdelivr.net/npm/";
const DEP_VERSIONS = {
"vue@3": "3.0.5",
"vue@2": "2.6.12",
"vue-demi": "0.6.0",
"vue-demi": "0.6.1",
"@vue/composition-api": "1.0.0-rc.2",
echarts: "5.0.2",
[name]: version