Releases: hustcc/echarts-for-react
Releases · hustcc/echarts-for-react
3.0.3
What's Changed
- Add a section for next.js user on reducing bundle size by @Mr-Milk in #470
- Fixes #460: Initialise echarts with correct width and height by @mobeigi in #464
- 📝 doc: 修改README.md by @scc02 in #485
- fix: TSLint export type by @tisonkun in #498
- feat: whether to trigger
this.resize
when window resize by @fakership in #490 - docs(types): fix typo by @100gle in #535
- Update types.ts by @poozhu in #562
- feat: Pass through replaceMerge when using setOption. by @Xalier in #520
- docs: update .umirc.js by @hustcc in #569
- docs: update TS and useRef example by @mrdulin in #554
- Updated code transpilation for Next.js 13.1 or higher in readme file by @linkfang in #528
- fix: Replace EChartsOption/EChartsInstance type by @xyz-26 in #586
- fix: update action workflow by @hustcc in #587
- Fix #446, #447 issues. 1) Only refresh the events bound by echart when the event changes. 2) If the style or classname changes, it's more reasonable to refresh the data after performing charts.resize first. by @iitodo in #444
New Contributors
- @Mr-Milk made their first contribution in #470
- @scc02 made their first contribution in #485
- @tisonkun made their first contribution in #498
- @fakership made their first contribution in #490
- @100gle made their first contribution in #535
- @poozhu made their first contribution in #562
- @Xalier made their first contribution in #520
- @mrdulin made their first contribution in #554
- @linkfang made their first contribution in #528
- @xyz-26 made their first contribution in #586
- @iitodo made their first contribution in #444
Full Changelog: v3.0.2...v3.0.3
3.0.2
What's Changed
- fix(docs): xAxis "0" not found when import ECharts.js modules manually by @superlbr in #414
- Fix animations being cancelled by initial render resize by @mobeigi in #458
- getEchartsInstance方法没有注明返回值类型 by @n0099 in #429
- Allow resize to occur if style or className have changed by @mobeigi in #459
New Contributors
- @superlbr made their first contribution in #414
- @mobeigi made their first contribution in #458
- @n0099 made their first contribution in #429
Full Changelog: v3.0.1...v3.0.2
v3.0.1
v3.0.0 released, echarts v5 supported.
本次升级主要的内容在于:
1. 支持 echarts v5 最新版本
2. 完全 typescript
之前是在 React 0.14 时代,还是使用 props-types 校验 props,然后 ts 类型定义单独自己手写,也非常痛苦。所以这次直接使用 ts 写,自动生成 类型定义 文件。
3. 单测覆盖率
之前使用 jest-canvas-mock 进行单元测试,毕竟是 mock 而不是真实运营,所有一些逻辑测试不到,覆盖率一直提不上去。
所以这次换成了 jest-electron,真实运行,覆盖率直接提升到 ,运行也改成使用 GitHub action 了。当然 jest-electron 这个模块,也是为了给 AntV 系列技术栈做单测,而开发的轮子,个人觉得还是挺好用的。
4. 全新官网
之前的官网是自己初学 React 的时候,完全自己搭建的,没有 lint、ci,代码凌乱,样式也不好看。所以这次直接使用 dumi 这个库自动生成,网站全部 markdown 开发,也方便大家遇到官网 typo,直接一键提交 PR。
同时 Example 实例也可直接一键导航到其他代码编辑工具上。
5. README 排版
项目很简单,概念也很简单,所以直接 Readme 作为 document,但是之前的文档结构、样式排版比较凌乱,所以按照现在的个人审美,重新写了写!
3.0.0-beta.2
- peer echarts can be v3, v4, v5
- peer react can be v15, v16, v17
3.0.0-beta.1
- new website style.
- echarts v5 supported.
- run test case with jest-electron