Skip to content

Commit cae373b

Browse files
authored
Feature/echart v6 (#4)
* docs(changeset): chore: bump version * chore: bump version
1 parent 74caf05 commit cae373b

File tree

7 files changed

+1929
-1799
lines changed

7 files changed

+1929
-1799
lines changed

.changeset/fancy-birds-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"use-echarts-react": patch
3+
---
4+
5+
chore: bump version

biome.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
"enabled": true,
99
"useIgnoreFile": true
1010
},
11-
"organizeImports": {
12-
"enabled": true
11+
"assist": {
12+
"actions": {
13+
"source": {
14+
"organizeImports": "on"
15+
}
16+
}
1317
},
1418
"formatter": {
1519
"enabled": true,
@@ -76,7 +80,7 @@
7680
},
7781
"overrides": [
7882
{
79-
"include": [
83+
"includes": [
8084
"**/tsconfig*.json"
8185
],
8286
"formatter": {
@@ -89,11 +93,9 @@
8993
}
9094
},
9195
{
92-
"include": [
93-
"**/*.json"
94-
],
95-
"ignore": [
96-
"**/tsconfig*.json"
96+
"includes": [
97+
"**/*.json",
98+
"!**/tsconfig*.json"
9799
],
98100
"formatter": {
99101
"lineWidth": 1

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"test": "turbo run test:ci"
2020
},
2121
"devDependencies": {
22-
"@biomejs/biome": "^1.9.4",
23-
"@changesets/cli": "^2.27.11",
22+
"@biomejs/biome": "^2.2.0",
23+
"@changesets/cli": "^2.29.5",
2424
"@changesets/config": "^3.0.5",
2525
"husky": "^9.1.7",
26-
"lint-staged": "^15.4.3",
27-
"syncpack": "^13.0.0",
28-
"turbo": "^2.4.4"
26+
"lint-staged": "^16.1.5",
27+
"syncpack": "^13.0.4",
28+
"turbo": "^2.5.5"
2929
},
3030
"engines": {
3131
"node": ">=20.13.0"

packages/use-echarts-react/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@
3131
"use-resize-observer": "^9.1.0"
3232
},
3333
"devDependencies": {
34-
"@testing-library/dom": "^10.4.0",
35-
"@testing-library/react": "^16.2.0",
36-
"@types/jest": "^29.5.14",
37-
"@types/node": "^22.13.2",
38-
"jest": "^29.7.0",
39-
"jest-environment-jsdom": "^29.7.0",
40-
"ts-jest": "^29.1.2",
34+
"@testing-library/dom": "^10.4.1",
35+
"@testing-library/react": "^16.3.0",
36+
"@types/jest": "^30.0.0",
37+
"@types/node": "^24.2.1",
38+
"jest": "^30.0.5",
39+
"jest-environment-jsdom": "^30.0.5",
40+
"ts-jest": "^29.4.1",
4141
"ts-loader": "^9.5.1",
4242
"ts-node": "^10.9.2",
4343
"tsconfig-paths": "^4.2.0",
44-
"tsup": "^8.4.0",
45-
"typescript": "^5.3.3"
44+
"tsup": "^8.5.0",
45+
"typescript": "^5.9.2"
4646
},
4747
"engines": {
4848
"node": ">=20.13.0"
@@ -59,7 +59,7 @@
5959
"peerDependencies": {
6060
"@types/react": ">=16.8.0",
6161
"@types/react-dom": ">=16.8.0",
62-
"echarts": "^5",
62+
"echarts": "^5 || ^6",
6363
"react": ">=16.8.0",
6464
"react-dom": ">=16.8.0"
6565
},
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
export { useECharts } from './use-echarts';
2-
export { useEChartsEvent } from './use-echarts-event';
31
export type {
4-
ECBasicOption,
5-
DeclarativeModeOptType,
6-
DeclarativeModeInitOptionsType,
72
DeclarativeEChartsRef,
8-
ImperativeModeOptType,
9-
ImperativeModeInitOptionsType,
10-
ImperativeEChartsRef,
3+
DeclarativeModeInitOptionsType,
4+
DeclarativeModeOptType,
5+
ECBasicOption,
116
EChartsRef,
127
EventType,
13-
QueryType,
14-
HandlerType
8+
HandlerType,
9+
ImperativeEChartsRef,
10+
ImperativeModeInitOptionsType,
11+
ImperativeModeOptType,
12+
QueryType
1513
} from './types';
14+
export { useECharts } from './use-echarts';
15+
export { useEChartsEvent } from './use-echarts-event';

packages/use-echarts-react/src/utils.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type EChartsType, connect, disconnect } from 'echarts';
1+
import { connect, disconnect, type EChartsType } from 'echarts';
22
import {
33
FORBIT_METHOD_LIST,
44
FORBIT_PROP_LIST,

0 commit comments

Comments
 (0)