Skip to content

Commit 2c70328

Browse files
CopilotTechQuery
andauthored
[migrate] upgrade React edition to ECharts 6 (#22)
Co-authored-by: South Drifter <shiy2008@gmail.com>
1 parent 2d20ae3 commit 2c70328

12 files changed

Lines changed: 4267 additions & 3572 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,34 @@ name: CI & CD
22
on:
33
push:
44
tags:
5-
- v*
5+
- v0.*
66
jobs:
77
Build-and-Publish:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
id-token: write
912
steps:
10-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1114

12-
- uses: pnpm/action-setup@v2
15+
- uses: pnpm/action-setup@v4
1316
with:
14-
version: 8
15-
- uses: actions/setup-node@v3
17+
version: 10
18+
- uses: actions/setup-node@v4
1619
with:
17-
node-version: 18
20+
node-version: 22
1821
registry-url: https://registry.npmjs.org
1922
cache: pnpm
2023
- name: Install Dependencies
2124
run: pnpm i --frozen-lockfile
2225

2326
- name: Build & Publish
24-
run: npm publish
27+
run: npm publish --access public --provenance
2528
env:
2629
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2730

2831
- name: Update document
29-
uses: peaceiris/actions-gh-pages@v3
32+
uses: peaceiris/actions-gh-pages@v4
3033
with:
3134
publish_dir: ./docs
3235
personal_token: ${{ secrets.GITHUB_TOKEN }}

ReadMe.md

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,40 @@ A real [JSX][1] wrapper for [ECharts][2] based on [TypeScript][3]
88

99
[![NPM](https://nodei.co/npm/echarts-jsx.png?downloads=true&downloadRank=true&stars=true)][7]
1010

11+
## Versions
12+
13+
| SemVer | branch | status | component API | ECharts version |
14+
| :----: | :------: | :-----------: | :------------: | :-------------: |
15+
| `>=1` | `main` | ✅developing | Web components | `>=5` |
16+
| `<1` | `master` | 🚧Maintaining | React | `>=5` |
17+
1118
## Features
1219

13-
- [x] All kinds of options & event handlers can be write in **JSX syntax**
14-
- [x] Parallel chart
15-
- [x] Line chart
16-
- [x] Scatter chart
17-
- [x] Bar chart
18-
- [x] Candle Stick chart
19-
- [x] Pie chart
20-
- [x] Radar chart
21-
- [x] Sunburst chart
22-
- [x] Gauge chart
23-
- [x] Tree chart
24-
- [x] Tree Map chart
25-
- [x] Sankey chart
26-
- [x] Heat Map chart
27-
- [x] Graph chart
28-
- [x] Funnel chart
29-
- [x] Theme River chart
30-
- [x] Async-load required modules automatically
20+
- [x] All kinds of options & event handlers can be write in **JSX syntax**
21+
- [x] Parallel chart
22+
- [x] Line chart
23+
- [x] Scatter chart
24+
- [x] Bar chart
25+
- [x] Candle Stick chart
26+
- [x] Boxplot chart
27+
- [x] Custom chart
28+
- [x] Effect Scatter chart
29+
- [x] Lines chart
30+
- [x] Map chart
31+
- [x] Pictorial Bar chart
32+
- [x] Chord chart
33+
- [x] Pie chart
34+
- [x] Radar chart
35+
- [x] Sunburst chart
36+
- [x] Gauge chart
37+
- [x] Tree chart
38+
- [x] Tree Map chart
39+
- [x] Sankey chart
40+
- [x] Heat Map chart
41+
- [x] Graph chart
42+
- [x] Funnel chart
43+
- [x] Theme River chart
44+
- [x] Async-load required modules automatically
3145

3246
## Quick start
3347

@@ -102,6 +116,6 @@ render(
102116
[4]: https://libraries.io/npm/echarts-jsx
103117
[5]: https://github.com/idea2app/ECharts-JSX/actions/workflows/main.yml
104118
[6]: https://github.com/ecomfe/awesome-echarts
105-
[7]: https://nodei.co/npm/echarts-jsx/
119+
[7]: https://npm.im/echarts-jsx/
106120
[8]: https://echarts.apache.org/handbook/en/get-started/
107121
[9]: https://codesandbox.io/s/echarts-jsx-demo-bouwsf?autoresize=1&fontsize=14&module=%2Fsrc%2FBar.tsx&theme=dark

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "echarts-jsx",
3-
"version": "0.5.4",
3+
"version": "0.6.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"description": "A real JSX wrapper for ECharts based on TypeScript",
@@ -25,25 +25,25 @@
2525
"module": "dist/index.js",
2626
"main": "dist/index.umd.js",
2727
"dependencies": {
28-
"echarts": "^5.4.3",
28+
"echarts": ">=5",
2929
"lodash": "^4.17.21",
30-
"web-utility": "^4.1.3"
30+
"web-utility": "^4.6.4"
3131
},
3232
"peerDependencies": {
3333
"react": ">=16"
3434
},
3535
"devDependencies": {
36-
"@types/lodash": "^4.14.200",
37-
"@types/react": "^18.2.34",
38-
"husky": "^8.0.3",
39-
"lint-staged": "^15.0.2",
36+
"@types/lodash": "^4.17.21",
37+
"@types/react": "^19.2.6",
38+
"husky": "^9.1.7",
39+
"lint-staged": "^16.2.7",
4040
"microbundle": "^0.15.1",
41-
"open-cli": "^7.2.0",
42-
"prettier": "^3.0.3",
43-
"react": "^18.2.0",
44-
"typedoc": "^0.25.3",
45-
"typedoc-plugin-mdn-links": "^3.1.0",
46-
"typescript": "~5.2.2"
41+
"open-cli": "^8.0.0",
42+
"prettier": "^3.6.2",
43+
"react": "^19.2.0",
44+
"typedoc": "^0.28.14",
45+
"typedoc-plugin-mdn-links": "^5.0.10",
46+
"typescript": "~5.9.3"
4747
},
4848
"prettier": {
4949
"singleQuote": true,
@@ -56,7 +56,7 @@
5656
},
5757
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
5858
"scripts": {
59-
"prepare": "husky install",
59+
"prepare": "husky",
6060
"test": "lint-staged",
6161
"pack-dist": "rm -rf dist/ && microbundle --name EChartsJSX --jsx jsx --jsxImportSource react --globals react/jsx-runtime=jsx,echarts/core=echarts,web-utility=WebUtility",
6262
"pack-docs": "rm -rf docs/ && typedoc source/",

0 commit comments

Comments
 (0)