aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-03 13:36:13 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-03 13:36:13 +0800
commit9c8f5c8d60f3066fec8a1573aa3f5673e0b2ecb8 (patch)
tree99a5de6f698310215163ffd488de2354c4b7fb3e /CHANGELOG.md
parent82372181d3b819ce57b04207f42406c188e42ac9 (diff)
chore!: rename ErrorDispatcherNotFound to EntryFallback
Rename the internal fallback type and its associated `ProgramCollect` plumbing from `ErrorDispatcherNotFound`/`build_dispatcher_not_found` to `EntryFallback`/`build_entry_fallback`, along with the generated enum variant and pack type. Update all documentation, examples, and tests accordingly.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index baa7f19..c954123 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -192,6 +192,26 @@ None
_No behavioral changes — this is a pure feature rename. The `extras` feature provides identical functionality to the old `extra_macros` feature; all prelude and macros module re-exports remain the same under the new feature name._
+2. **[`core`]** **[BREAKING RENAME]** Renamed the internal fallback type `ErrorDispatcherNotFound` and its associated `ProgramCollect` plumbing to `EntryFallback` / `build_entry_fallback`.
+
+ **Associated type renames (on `ProgramCollect`):**
+
+ - `type ErrorDispatcherNotFound` → `type EntryFallback`
+ - `fn build_dispatcher_not_found(args)` → `fn build_entry_fallback(args)`
+
+ **Type/enum renames generated by `gen_program!()`:**
+
+ - Enum variant `ThisProgram::ErrorDispatcherNotFound` → `ThisProgram::EntryFallback`
+ - Pack type `ErrorDispatcherNotFound` → `EntryFallback` (created by `program_fallback_gen!()` via `pack!(EntryFallback = Vec<String>)`)
+
+ **Migration guide (for downstream code):**
+
+ - Renderer/help functions that previously took `ErrorDispatcherNotFound` as a parameter must now take `EntryFallback`.
+ - Any code referencing `C::build_dispatcher_not_found(...)` must now call `C::build_entry_fallback(...)`.
+ - Any manual `ProgramCollect` implementation (e.g., in tests or mocks) must rename both the associated type `ErrorDispatcherNotFound` → `EntryFallback` and the associated method `build_dispatcher_not_found` → `build_entry_fallback`.
+
+ _No behavioral changes — this is a pure rename of the internal fallback type and its associated `ProgramCollect` methods. The type's semantics, shape (wrapping `Vec<String>`), and rendering behavior are unchanged.
+
---
### Release 0.3.0 (2026-07-27)