64 Commits

Author SHA1 Message Date
高艳兵 03823d3a5a fix: extract embedded shared component props (#213)
Co-authored-by: afc163 <afc163@gmail.com>
2026-08-17 10:19:50 +08:00
afc163 4a70eebc36 Merge remote-tracking branch 'origin/main' into codex/fix-changelog-component-ownership
# Conflicts:
#	spec.md
2026-07-13 14:53:22 +08:00
afc163 c70c80e6ee Merge pull request #195 from ant-design/codex/fix-semantic-dotted-keys
fix(semantic): extract dotted semantic keys
2026-07-13 14:48:15 +08:00
afc163 eee47a1aeb Merge pull request #193 from ant-design/codex/fix-sync-tag-injection
fix(sync): prevent release tag shell injection
2026-07-13 14:47:22 +08:00
afc163 495dc9d9b7 fix(changelog): exclude overview documentation 2026-07-13 14:42:26 +08:00
afc163 cf3ba3f1c5 fix(changelog): exclude non-component directories 2026-07-13 14:39:48 +08:00
afc163 7a9801d443 fix(changelog): validate inferred component names 2026-07-13 14:31:15 +08:00
afc163 d984b65fd9 fix(extract): preserve escaped semantic descriptions 2026-07-13 14:25:38 +08:00
afc163 da28f108e6 Merge remote-tracking branch 'origin/main' into codex/fix-semantic-dotted-keys
# Conflicts:
#	spec.md
2026-07-13 14:24:17 +08:00
afc163 35c912072b fix(sync): support secure npm invocation on Windows 2026-07-13 14:23:09 +08:00
afc163 75ae1d3f80 fix(changelog): preserve emoji entries and ownership (#196) 2026-07-10 18:16:08 +08:00
afc163 af3ae3b737 test(semantic): preserve identifier keys 2026-07-10 17:45:51 +08:00
afc163 d3d01b85bb fix(semantic): extract dotted semantic keys 2026-07-10 17:45:28 +08:00
afc163 9a733136b8 fix(sync): pass release values as argv 2026-07-10 17:31:14 +08:00
afc163 ea4b38f52c ci: tolerate pkg-size comment permission failures (#187) 2026-07-03 20:32:11 +08:00
afc163 1b34110338 feat: add CFonts help banner (#184) 2026-07-01 20:28:12 +08:00
afc163 614660de61 fix: authenticate sync release checks (#180) 2026-06-22 12:03:03 +08:00
afc163 0939df814e fix: recover missing publish release artifacts (#179) 2026-06-22 11:48:42 +08:00
afc163 0ac194df9d fix: harden sync publish recovery (#178)
* fix: harden sync publish recovery

* test: cover publish recovery step order
2026-06-22 11:32:36 +08:00
afc163 25162503fe fix: recover failed sync publish releases (#177) 2026-06-22 11:07:21 +08:00
afc163 1934accbae fix: fail sync on missing indexed snapshots (#176) 2026-06-22 11:05:53 +08:00
afc163 7639bd726f fix: commit data-only sync changes 2026-06-22 00:07:36 +08:00
afc163 d16b142aa4 fix: validate synced data in workflow 2026-06-22 00:05:48 +08:00
afc163 64b3a19d48 fix: parse latest antd version for sync check 2026-06-22 00:03:34 +08:00
afc163 fd0a336a01 fix: refresh token metadata per synced tag 2026-06-22 00:01:30 +08:00
afc163 f214f4be03 fix: fail closed on corrupted versions index 2026-06-21 23:59:47 +08:00
afc163 c28553b5f5 fix: fail sync when release tags are unavailable 2026-06-21 23:56:07 +08:00
afc163 e6e07f47e1 fix(deps): resolve dependabot security alerts (#167) 2026-06-20 23:11:07 +08:00
afc163 b28de139b8 fix: keep doctor bug checks offline (#164) 2026-06-20 21:42:50 +08:00
afc163 3174c1d698 fix: update snapshots automatically during sync workflow (#155)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 19:18:19 +08:00
afc163 acf72acf0d fix: skip validation for components with only subComponentProps (#152)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 18:26:12 +08:00
二货爱吃白萝卜 9e4e358e0f feat: add design.md command and antd_design_md MCP tool (#147)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 17:45:43 +08:00
afc163 f1140fa92a fix: restore missing token data in v5/v6 snapshots and prevent silent data loss in sync (#138)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 18:05:42 +08:00
afc163 b72e2e3137 fix: escape all regex special chars in extract-changelog version input (#135) 2026-06-02 10:54:53 +08:00
afc163 86114d9ba4 fix: use execFileSync to avoid shell injection in patch-token-names (#134) 2026-06-02 10:35:18 +08:00
afc163 fb639f32cf fix: use execFileSync to avoid shell injection in sync.ts (#137) 2026-06-02 10:33:43 +08:00
afc163 cb2ffaabcd fix: backfill empty props from doc when version snapshots have missing data (#132)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 21:36:52 +08:00
afc163 513ab72826 fix: harden sync pipeline and clean up dead metadata fields (#125)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 14:57:11 +08:00
afc163 62ebb21feb fix: repair malformed prop metadata caused by escaped pipe/bracket parsing (#122)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 18:10:11 +08:00
afc163 a70f9a4eee chore: remove stale v6 snapshots and prevent re-accumulation (#107)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-15 00:27:58 +08:00
afc163 488eb066c9 chore: update 6.4.0 changelog and fix sync version detection (#106)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 16:56:38 +08:00
afc163 1e5eeb43c9 fix: only include changed versions in sync commit and changelog (#84)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 19:22:14 +08:00
afc163 6b3418edcc fix: sync workflow never detects new antd versions (#83)
* fix: sync workflow never detects new antd versions

The check-version step compared local data/v6.json against
@ant-design/cli on npm — which is always true since CLI publishes
at the synced version, causing the workflow to skip every run.

Replace with a script that compares the antd npm latest version
against local data, and also covers the recovery scenario where
data was pushed but npm publish failed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: sync workflow never detects new antd versions

The check-version step compared local data/v6.json against
@ant-design/cli on npm — which is always true since CLI publishes
at the synced version, causing the workflow to skip every run.

Replace with a script that compares the antd npm latest version
against local data, and also covers the recovery scenario where
data was pushed but npm publish failed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 18:51:15 +08:00
afc163 aad2fc0738 feat: add antd v3 support (#77)
* docs: add antd v3 support design spec

Design for adding antd 3.x support to enable migration assistance
and legacy project queries. Covers data extraction, command support
matrix, and enhanced v3→v4 migration knowledge.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add antd v3 support

- Add v3 data extraction with demo format compatibility
- Generate v3.json and v3.26.20.json data files
- Add v3-to-v4 migration knowledge module
- Return UNSUPPORTED_VERSION_FEATURE for token/semantic on v3
- Update spec.md with v3 support documentation

Closes #66

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address PR review comments

- Fix regex \Z anchor to $ for JS compatibility in demo extractor
- Fix v3 theming docs URL (3x.ant.design)
- Remove redundant Tree filterTreeNode migration entry
- Correct Table render description (signature unchanged)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: update design spec for v3 support

- Add language tag to code block
- Fix v3 theming docs URL to 3x.ant.design
- Update migration module path to match implementation
- Correct BackTop and Less variables migration notes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address remaining PR review comments

- Fix enMatch regex to use lookahead for zh-CN section
- Make JSX code block regex more flexible (jsx or js)
- Correct ConfigProvider migration description (introduced in v4)
- Update design doc with correct module path and migration notes
- Update snapshot for v3 Watermark component

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add comprehensive v3 test coverage

- Add e2e tests for `antd migrate 3 4` command
- Add v3 error tests for token and semantic commands
- Add v3 version detection tests
- Add v3 data loading tests (components, snapshots)
- Add tests for v3-specific components (Mention, Icon, LocaleProvider)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 18:54:02 +08:00
afc163 a00ad2b474 refactor: optimize sync.yml workflow (#74)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 13:31:24 +08:00
afc163 1192f255f1 chore: keep JSON in git, exclude from npm via .npmignore (#41)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 18:25:05 +08:00
afc163 a5014a6085 ci: add npm pack size detection workflow and badge (#39)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:28:40 +08:00
afc163 a42aa464b1 fix: sync workflow skips unchanged versions and creates GitHub release (#37)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 23:40:31 +08:00
afc163 8c92655b4b fix: remove empty author links in changelog descriptions (#31)
Contributor mentions like [@guoyunhe](https://github.com/guoyunhe) were
being stripped to [](https://github.com/guoyunhe) because the regex
only removed the @username portion, leaving an empty link shell.

Fix the extractor to match and remove the full contributor link pattern
first, then fall back to stripping bare @mentions.

Also patch all 65 existing data snapshot files (28,337 occurrences fixed)
and update affected test snapshots.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 01:09:52 -07:00
afc163 617d0a2e1a perf: gzip data files at pack time to reduce npm package size by 81% (#28)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 14:36:35 +08:00