Skip to content

Commit b23e24b

Browse files
authored
[add] Chord chart & Matrix component in ECharts 6 (#21)
1 parent c5087f7 commit b23e24b

53 files changed

Lines changed: 1934 additions & 1877 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
11
name: CI & CD
22
on:
33
push:
4+
branches-ignore:
5+
- main
46
tags:
57
- v*
8+
env:
9+
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
10+
611
jobs:
7-
Build-and-Publish:
12+
ci:
13+
name: Build / Preview / Release
814
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
id-token: write
918
steps:
10-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1120

12-
- uses: pnpm/action-setup@v2
21+
- uses: pnpm/action-setup@v4
1322
with:
14-
version: 9
15-
- uses: actions/setup-node@v3
23+
version: 10
24+
- uses: actions/setup-node@v4
1625
with:
17-
node-version: 18
26+
node-version: 22
1827
registry-url: https://registry.npmjs.org
1928
cache: pnpm
2029
- name: Install Dependencies
2130
run: pnpm i --frozen-lockfile
2231

2332
- name: Build & Publish
24-
run: npm publish
2533
env:
2634
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27-
35+
run: |
36+
if [ $IS_RELEASE = "true" ]; then
37+
npm publish --access public --provenance
38+
else
39+
pnpm build
40+
fi
2841
- name: Update document
29-
uses: peaceiris/actions-gh-pages@v3
42+
if: env.IS_RELEASE == 'true'
43+
uses: peaceiris/actions-gh-pages@v4
3044
with:
3145
publish_dir: ./docs
3246
personal_token: ${{ secrets.GITHUB_TOKEN }}
@@ -39,4 +53,4 @@ jobs:
3953
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
4054
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
4155
working-directory: ./docs
42-
vercel-args: --prod
56+
vercel-args: ${{ env.IS_RELEASE == 'true' && '--prod' || '' }}

.github/workflows/push.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

ReadMe.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ A real [JSX][1] wrapper for [ECharts][2] based on [TypeScript][3] & [Web compone
1010

1111
## Features
1212

13-
- [x] All kinds of options & event handlers can be write in **JSX syntax**
14-
- [x] **Tree shaking** supported based on ECMAScript 6+ modules
13+
- [x] All kinds of options & event handlers can be write in **JSX syntax**
14+
- [x] **Tree shaking** supported based on ECMAScript 6+ modules
1515

1616
## Versions
1717

18-
| SemVer | branch | status | component API |
19-
| :----: | :------: | :----------: | :------------: |
20-
| `>=1` | `main` | ✅developing | Web components |
21-
| `<1` | `master` | ❌deprecated | React |
18+
| SemVer | branch | status | component API | ECharts version |
19+
| :----: | :------: | :----------: | :------------: | :-------------: |
20+
| `>=1` | `main` | ✅developing | Web components | `>=5` |
21+
| `<1` | `master` | ❌deprecated | React | `5.x` |
2222

2323
## Installation
2424

@@ -32,13 +32,9 @@ npm i echarts-jsx
3232

3333
Any kinds of Render engines that you like can be used to render ECharts JSX tags.
3434

35-
#### React 19+
35+
#### React
3636

37-
Old versions have a property bug of Custom elements: https://github.com/facebook/react/issues/11347
38-
39-
```shell
40-
npm i react@^19 react-dom@^19
41-
```
37+
React has a property bug of Custom elements, which hasn't been fixed totally: https://github.com/facebook/react/issues/29037#issuecomment-2525290829
4238

4339
#### Preact
4440

package.json

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "echarts-jsx",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"description": "A real JSX wrapper for ECharts based on TypeScript & Web components",
@@ -27,29 +27,38 @@
2727
"module": "dist/index.js",
2828
"main": "dist/index.umd.js",
2929
"dependencies": {
30-
"dom-renderer": "^2.3.0",
30+
"dom-renderer": "^2.6.2",
3131
"echarts": ">=5",
32-
"iterable-observer": "^1.0.1",
32+
"iterable-observer": "^1.1.0",
3333
"lodash": "^4.17.21",
34-
"web-streams-polyfill": "^4.0.0",
35-
"web-utility": "^4.4.0"
34+
"web-streams-polyfill": "^4.2.0",
35+
"web-utility": "^4.6.4"
3636
},
3737
"peerDependencies": {
3838
"@webcomponents/webcomponentsjs": "^2.8"
3939
},
4040
"devDependencies": {
41-
"@types/lodash": "^4.17.7",
41+
"@types/lodash": "^4.17.20",
4242
"buffer": "^6.0.3",
43-
"esbuild": "^0.23.0",
44-
"husky": "^9.1.4",
45-
"lint-staged": "^15.2.7",
43+
"esbuild": "^0.27.0",
44+
"husky": "^9.1.7",
45+
"lint-staged": "^16.2.7",
4646
"open-cli": "^8.0.0",
47-
"parcel": "~2.12.0",
48-
"prettier": "^3.3.3",
49-
"rimraf": "^5.0.9",
50-
"typedoc": "^0.26.5",
51-
"typedoc-plugin-mdn-links": "^3.2.6",
52-
"typescript": "~5.5.4"
47+
"parcel": "~2.16.1",
48+
"prettier": "^3.6.2",
49+
"rimraf": "^6.1.2",
50+
"typedoc": "^0.28.14",
51+
"typedoc-plugin-mdn-links": "^5.0.10",
52+
"typescript": "~5.9.3"
53+
},
54+
"pnpm": {
55+
"onlyBuiltDependencies": [
56+
"@parcel/watcher",
57+
"@swc/core",
58+
"esbuild",
59+
"lmdb",
60+
"msgpackr-extract"
61+
]
5362
},
5463
"prettier": {
5564
"singleQuote": true,

0 commit comments

Comments
 (0)