You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/07/31 12:43:42 UTC

[incubator-echarts] branch next updated: chore: remove zrender version check. change version in source

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/next by this push:
     new fd38675  chore: remove zrender version check. change version in source
fd38675 is described below

commit fd38675701a16180c4b57c9985672f59b3e0b4a5
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jul 31 20:43:15 2020 +0800

    chore: remove zrender version check. change version in source
---
 src/echarts.ts | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/src/echarts.ts b/src/echarts.ts
index 645cd68..701cdf8 100644
--- a/src/echarts.ts
+++ b/src/echarts.ts
@@ -110,10 +110,10 @@ const each = zrUtil.each;
 const isFunction = zrUtil.isFunction;
 const isObject = zrUtil.isObject;
 
-export const version = '4.8.0';
+export const version = '5.0.0-alpha.1';
 
 export const dependencies = {
-    zrender: '4.3.1'
+    zrender: '5.0.0-alpha.1'
 };
 
 const TEST_FRAME_REMAIN_TIME = 1;
@@ -2363,16 +2363,6 @@ export function init(
     }
 ): ECharts {
     if (__DEV__) {
-        // Check version
-        if (+zrender.version.replace('.', '') < +dependencies.zrender.replace('.', '')) {
-            throw new Error(
-                'zrender/src ' + zrender.version
-                + ' is too old for ECharts ' + version
-                + '. Current version need ZRender '
-                + dependencies.zrender + '+'
-            );
-        }
-
         if (!dom) {
             throw new Error('Initialize failed: invalid dom.');
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org