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>
Use git-show to read markdown from each version's tag and inject
doc/docZh into the 61 existing snapshot files without full re-extraction.
Also adds scripts/patch-doc-fields.ts for future use.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The previous string-based check missed cases where `debug` attribute
appears after other attributes (e.g. `iframe="800" debug`). Switch to
a regex that matches `debug` anywhere within the <code> tag.
Regenerate all per-minor snapshots and latest v4/v5/v6.json with
the corrected filter applied.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace fabricated changelog entries with real data parsed from
CHANGELOG.zh-CN.md (v4/v5/v6 branches)
- v4: 158 versions (4.0.0–4.24.16), 1226 changes
- v5: 170 versions (5.0.0–5.29.3), 1362 changes
- v6: 14 versions (6.0.0–6.3.2), 188 changes
- Fix data inaccuracies in v5.json:
- Add missing `ghost` prop to Button (deprecated since 5.22.0)
- Remove duplicate/wrong changelog entries claiming Table `virtual`
was added in 5.20.0 and 5.22.0 (it was added in 5.9.0)
- Fix Input `count` changelog entry (was since 5.10.0, not 5.20.0)
- Fix changelog version routing bug in `diff.ts`: querying
`antd changelog 6.3.2` now auto-detects major version from the
version argument itself instead of always defaulting to v5
- Fix README: remove non-existent --no-cache flag, fix feature
descriptions, add real CLI output examples, update version examples
to use versions that actually exist in the bundled data
- Update tests to match real data (5.21.0 has Segmented not Button;
use 5.99.99 for version-not-found test to ensure v5 routing)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove @ant-design/metadata dependency; all data is bundled in data/
- Rename sample-data/ to data/ and update package.json files field
- Remove --no-cache flag from CLI and all command implementations
- Simplify loadMetadata() to read directly from bundled JSON files
- Update spec.md to reflect bundled data strategy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>