aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-02 04:20:50 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-02 04:20:50 +0800
commit3f24e5b6ead1e153408ae5e58ad34636fe614645 (patch)
tree93b7c4da1e16c07e9b4c7842ffd6e410e4d1d967 /CHANGELOG.md
parentfbe831d29310e050f156355ece670c5a89f9d269 (diff)
fix(macros): fix false positives in entry_has_variant substring matching
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2c36f25..9863596 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,7 +10,8 @@ Any contributor making changes to the project must record their changes in this
**- Milestone.1 "MVP" -**
-- [Release 0.2.0 (Unreleased)](#release-020-unreleased)
+- [Release 0.2.1 (Unreleased)](#release-021-unreleased)
+- [Release 0.2.0 (2026-06-30)](#release-020-2026-06-30)
- [Release 0.1.9 (2026-05-29)](#release-019-2026-05-29)
- [Release 0.1.8 (2026-05-18)](#release-018-2026-05-18)
- [Release 0.1.7 (2026-05-04)](#release-017-2026-05-04)
@@ -26,11 +27,16 @@ Any contributor making changes to the project must record their changes in this
## Contents
-### Release ? (Unreleased)
+### Release 0.2.1 (Unreleased)
#### Fixes:
-None
+1. **[`macros`]** Fixed false positives in `entry_has_variant` caused by bare substring matching in the third `contains` check.
+ When a longer variant (e.g., `EntryListAlias`) is registered first, followed by a shorter variant that shares the same prefix (e.g., `EntryList`),
+ `"=> EntryList"` would incorrectly match as a substring of `"=> EntryListAlias,"`, causing a false duplicate registration detection.
+ Now changed to use `find` + trailing character boundary validation, ensuring the character immediately after the match is not an identifier character (letter/digit/underscore).
+
+ Affected scope: Deduplication logic for `#[chain]`, `#[renderer]`, `#[help]`, and `#[completion]` registration.
#### Optimizations: