Skip to content

Commit 98bc5b6

Browse files
authored
Merge pull request #4531 from VisActor/release/2.0.20
[Auto release] release 2.0.20
2 parents a2396dc + 42ebc6f commit 98bc5b6

101 files changed

Lines changed: 4423 additions & 2965 deletions

File tree

Some content is hidden

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

.changelog/en.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
# v2.0.19
1+
# v2.0.20
22

3-
2026-03-06
3+
2026-03-26
4+
5+
**🐛 Bug Fixes**
6+
7+
- **@visactor/vchart**: fix theme config of spec and option
8+
- **@visactor/vchart**: datazoom update domain after data change. fix#4186
49

510
**🔨 Chores**
611

7-
- **@visactor/vchart**: remove unused GitHub Actions workflows
12+
- **@visactor/vchart**: update changes for 008-fix-size-legend-handler-text: Allow size legend handlerText.style to accept function-based values in the same way other legend style hooks already do, and add regression coverage proving the style callback is preserved through continuous legend attribute transformation.
13+
- **@visactor/vchart**: update changes for 009-fix-heatmap-scrollbar-axis-direction: Align ScrollBar with DataZoom by using the shared reverse-axis detection when converting scrollbar state percentages back into domain values.
14+
- **@visactor/vchart**: update changes for 009-fix-issue-of-mark-state-when-updateSpec: Fix an issue where mark states were not properly cleared when updateSpec was called, causing incorrect state persistence.
15+
- **@visactor/vchart**: update changes for 010-hide-empty-axes: Add an opt-in hideWhenEmpty axis option for cartesian axes.
16+
- **@visactor/vchart**: update changes for 009-fix-issue-of-mark-state-when-updateSpec: Fix an issue where mark states were not properly cleared when updateSpec was called, causing incorrect state persistence.
17+
- **@visactor/vchart**: upgrade vutils, vdataset, vscale, vlayouts to ~1.0.23
818

9-
**Full Changelog**: https://github.com/VisActor/VChart/compare/v2.0.18...v2.0.19
19+
**Full Changelog**: https://github.com/VisActor/VChart/compare/v2.0.19...v2.0.20
1020

11-
[more detail about v2.0.19](https://github.com/VisActor/VChart/releases/tag/v2.0.19)
21+
[more detail about v2.0.20](https://github.com/VisActor/VChart/releases/tag/v2.0.20)

.changelog/harmony.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
# v2.0.19
1+
# v2.0.20
22

3-
2026-03-06
3+
2026-03-26
4+
5+
**🐛 Bug Fixes**
6+
7+
- **@visactor/vchart**: fix theme config of spec and option
8+
- **@visactor/vchart**: datazoom update domain after data change. fix#4186
49

510
**🔨 Chores**
611

7-
- **@visactor/vchart**: remove unused GitHub Actions workflows
12+
- **@visactor/vchart**: update changes for 008-fix-size-legend-handler-text: Allow size legend handlerText.style to accept function-based values in the same way other legend style hooks already do, and add regression coverage proving the style callback is preserved through continuous legend attribute transformation.
13+
- **@visactor/vchart**: update changes for 009-fix-heatmap-scrollbar-axis-direction: Align ScrollBar with DataZoom by using the shared reverse-axis detection when converting scrollbar state percentages back into domain values.
14+
- **@visactor/vchart**: update changes for 009-fix-issue-of-mark-state-when-updateSpec: Fix an issue where mark states were not properly cleared when updateSpec was called, causing incorrect state persistence.
15+
- **@visactor/vchart**: update changes for 010-hide-empty-axes: Add an opt-in hideWhenEmpty axis option for cartesian axes.
16+
- **@visactor/vchart**: update changes for 009-fix-issue-of-mark-state-when-updateSpec: Fix an issue where mark states were not properly cleared when updateSpec was called, causing incorrect state persistence.
17+
- **@visactor/vchart**: upgrade vutils, vdataset, vscale, vlayouts to ~1.0.23
818

9-
**Full Changelog**: https://github.com/VisActor/VChart/compare/v2.0.18...v2.0.19
19+
**Full Changelog**: https://github.com/VisActor/VChart/compare/v2.0.19...v2.0.20
1020

11-
[more detail about v2.0.19](https://github.com/VisActor/VChart/releases/tag/v2.0.19)
21+
[more detail about v2.0.20](https://github.com/VisActor/VChart/releases/tag/v2.0.20)

.changelog/zh.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
# v2.0.19
1+
# v2.0.20
22

3-
2026-03-06
3+
2026-03-26
4+
5+
**🐛 问题修复**
6+
7+
- **@visactor/vchart**: 修复 theme config of spec and option
8+
- **@visactor/vchart**: datazoom update domain after data change. fix#4186
49

510
**🔨 维护与杂项**
611

7-
- **@visactor/vchart**: remove unused GitHub Actions workflows
12+
- **@visactor/vchart**: 更新 changes for 008-fix-size-图例-handler-text: Allow size 图例 handlerText.style accept function-based values in the same way other 图例 style hooks already do, and add regression coverage proving the style callback is preserved through continuous 图例 attribute transformation.
13+
- **@visactor/vchart**: 更新 changes for 009-fix-heatmap-scrollbar-axis-direction: Align ScrollBar with DataZoom by using the shared reverse-axis detection when converting scrollbar state percentages back into domain values.
14+
- **@visactor/vchart**: 更新 changes for 009-fix-问题-of-mark-state-when-updateSpec: Fix an 问题 where mark states were not properly cleared when updateSpec was called, causing incorrect state persistence.
15+
- **@visactor/vchart**: 更新 changes for 010-hide-empty-axes: Add an opt-in hideWhenEmpty axis option for cartesian axes.
16+
- **@visactor/vchart**: 更新 changes for 009-fix-问题-of-mark-state-when-updateSpec: Fix an 问题 where mark states were not properly cleared when updateSpec was called, causing incorrect state persistence.
17+
- **@visactor/vchart**: 升级 vutils, vdataset, vscale, vlayouts ~1.0.23
818

9-
**Full Changelog**: https://github.com/VisActor/VChart/compare/v2.0.18...v2.0.19
19+
**Full Changelog**: https://github.com/VisActor/VChart/compare/v2.0.19...v2.0.20
1020

11-
[更多详情请查看 v2.0.19](https://github.com/VisActor/VChart/releases/tag/v2.0.19)
21+
[更多详情请查看 v2.0.20](https://github.com/VisActor/VChart/releases/tag/v2.0.20)

.cursor/commands/speckit.prgenerate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: 'Generate a PR body using the GitHub pull request template and specs/<spec-id>/plan.md; default to the English template and write to specs/<spec-id>/PR_BODY.md.'
2+
description: 'Generate a PR body using the GitHub pull request template and specs/<spec-id>/plan.md; default to the English template and write to .trae/output/pr.body.local.md.'
33
handoffs:
44
- label: 'Create Pull Request'
55
agent: 'speckit.prcreate'
@@ -22,7 +22,7 @@ You **MUST** consider the user input before proceeding (if not empty), but treat
2222
- Parse `$ARGUMENTS` only for CLI-style options (for example, `--lang`, `--out`):
2323
- If `--lang zh` is present, use the Chinese template at `.github/PULL_REQUEST_TEMPLATE/pr_cn.md`.
2424
- Otherwise, use the English template at `.github/PULL_REQUEST_TEMPLATE.md` (the default; **do not** auto-detect language).
25-
- If an explicit output path is provided (for example, `--out specs/001-foo/PR_BODY.md`), respect it; otherwise, default to `specs/<spec-id>/PR_BODY.md`.
25+
- If an explicit output path is provided (for example, `--out specs/001-foo/PR_BODY.md`), respect it; otherwise, default to `.trae/output/pr.body.local.md`.
2626
- Resolve `specs/<spec-id>/` by deriving the numeric prefix from the current branch name and matching it to a directory under `specs/` whose name starts with that prefix.
2727
- From that directory, resolve `plan.md` as the primary context source for the PR.
2828

@@ -61,7 +61,7 @@ You **MUST** consider the user input before proceeding (if not empty), but treat
6161

6262
6. **Write PR body file without touching templates**:
6363
- Render the updated markdown content (with checklist, background, and Changelog injected) into a single PR body string.
64-
- Write this string to the resolved output path (default `specs/<spec-id>/PR_BODY.md`), creating parent directories if needed.
64+
- Write this string to the resolved output path (default `.trae/output/pr.body.local.md`), creating parent directories if needed.
6565
- Do **not** modify the original template files under `.github/`.
6666

6767
7. **Validation checklist**:

.cursor/rules/specify-rules.mdc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Auto-generated from all feature plans. Last updated: 2026-01-15
66
- TypeScript 4.x+ (Project uses TS) + `@visactor/vchart` (Core logic), `@visactor/react-vchart` (React wrapper) (007-fix-datazoom-react)
77
- N/A (In-memory chart state) (007-fix-datazoom-react)
88
- Markdown + JSON(文档内容与菜单配置) + `@internal/docs` 文档构建体系、`docs/assets/guide/menu.json` 导航配置、现有教程目录结构 (001-vchart-skill-tutorial)
9+
- TypeScript 4.9.5 + `@visactor/vchart`, `@visactor/vutils`, `@visactor/vrender-components` (010-hide-empty-axes)
910

1011
- TypeScript/React 18 + @visactor/react-vchart, @visactor/vchar (001-react-vchart-demo)
1112

@@ -27,9 +28,9 @@ npm test && npm run lint
2728
TypeScript 4.9.5: Follow standard conventions
2829

2930
## Recent Changes
31+
- 010-hide-empty-axes: Added TypeScript 4.9.5 + `@visactor/vchart`, `@visactor/vutils`, `@visactor/vrender-components`
3032
- 001-vchart-skill-tutorial: Added Markdown + JSON(文档内容与菜单配置) + `@internal/docs` 文档构建体系、`docs/assets/guide/menu.json` 导航配置、现有教程目录结构
3133
- 007-fix-datazoom-react: Added TypeScript 4.x+ (Project uses TS) + `@visactor/vchart` (Core logic), `@visactor/react-vchart` (React wrapper)
32-
- 007-fix-datazoom-react: Added [if applicable, e.g., PostgreSQL, CoreData, files or N/A]
3334

3435

3536

.github/workflows/post-release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Post release after develop synced
22

33
on:
4-
repository_dispatch:
5-
types: [develop-synced]
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Release version, e.g. 1.2.3'
8+
required: true
9+
type: string
610

711
jobs:
812
post_release:
@@ -12,19 +16,19 @@ jobs:
1216
contents: write
1317

1418
steps:
15-
- name: Read version from repository_dispatch payload
19+
- name: Read version from workflow_dispatch input
1620
id: meta
1721
env:
18-
PAYLOAD_VERSION: ${{ github.event.client_payload.version }}
22+
INPUT_VERSION: ${{ github.event.inputs.version }}
1923
run: |
2024
set -euo pipefail
21-
if [ -z "${PAYLOAD_VERSION}" ]; then
22-
echo "No version in client_payload, skip post-release."
25+
if [ -z "${INPUT_VERSION}" ]; then
26+
echo "No version in workflow_dispatch input, skip post-release."
2327
echo "skip=true" >> "$GITHUB_OUTPUT"
2428
exit 0
2529
fi
26-
echo "Using version from payload: ${PAYLOAD_VERSION}"
27-
echo "version=${PAYLOAD_VERSION}" >> "$GITHUB_OUTPUT"
30+
echo "Using version from input: ${INPUT_VERSION}"
31+
echo "version=${INPUT_VERSION}" >> "$GITHUB_OUTPUT"
2832
echo "skip=false" >> "$GITHUB_OUTPUT"
2933
3034
- name: Checkout main

.github/workflows/sync-main-to-develop.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sync main to develop after release (Scheme A)
1+
name: Sync main to develop after release
22

33
on:
44
pull_request:
@@ -102,11 +102,20 @@ jobs:
102102
103103
- name: Create Pull Request to develop
104104
if: steps.sync_branch.outputs.exists == 'false'
105-
uses: dustinirving/create-pr@v1.0.2
106-
with:
107-
token: ${{ secrets.GITHUB_TOKEN }}
108-
title: '[Auto Sync] Sync the code from branch main to branch develop after release ${{ steps.package_version.outputs.current_version }}'
109-
base: develop
110-
head: ${{ steps.sync_branch.outputs.sync_branch }}
111-
reviewers: xile611
112-
body: 'Sync the code from branch main to branch develop after release ${{ steps.package_version.outputs.current_version }}'
105+
env:
106+
GH_TOKEN: ${{ github.token }}
107+
run: |
108+
set -euo pipefail
109+
BRANCH="${{ steps.sync_branch.outputs.sync_branch }}"
110+
echo "Source branch: $BRANCH"
111+
112+
# Check if PR already exists
113+
if gh pr list --base develop --head "$BRANCH" --state open --json number --limit 1 | grep -q '"number"'; then
114+
echo "PR from $BRANCH to develop already exists, skip creating."
115+
exit 0
116+
fi
117+
118+
TITLE="[Auto Sync] Sync the code from branch main to branch develop after release ${{ steps.package_version.outputs.current_version }}"
119+
BODY="Sync the code from branch main to branch develop after release ${{ steps.package_version.outputs.current_version }}"
120+
121+
gh pr create --base develop --head "$BRANCH" --title "$TITLE" --body "$BODY" --reviewer xuefei1313

.vscode/launch.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,27 @@
1616
"skipFiles": ["<node_internals>/**"],
1717
"type": "pwa-node"
1818
},
19+
{
20+
"name": "Debug Jest-Electron Current File",
21+
"type": "node",
22+
"request": "launch",
23+
"cwd": "${workspaceFolder}/packages/vchart",
24+
"program": "${workspaceFolder}/packages/vchart/node_modules/jest/bin/jest.js",
25+
"args": [
26+
"${file}",
27+
"--watch"
28+
],
29+
"env": {
30+
"DEBUG_MODE": "1"
31+
},
32+
"console": "integratedTerminal",
33+
"internalConsoleOptions": "neverOpen"
34+
},
1935
{
2036
"name": "unit test",
2137
"type": "pwa-node",
2238
"request": "launch",
23-
"program": "${workspaceFolder}/packages/vchart/node_modules/.bin/jest",
39+
"program": "${workspaceFolder}/packages/vchart/node_modules/jest/bin/jest.js",
2440
"args": ["${file}"],
2541
"console": "integratedTerminal",
2642
"internalConsoleOptions": "neverOpen"

0 commit comments

Comments
 (0)