aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-09 17:37:37 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-09 17:37:37 +0800
commit2eba732e17cf71dcf8a54b428a1c5e344582c2c2 (patch)
treee04266109421a0255625490dc997dc0d55bbf64a /CHANGELOG.md
parent10bc4ca7a4b3f14cfb57bf72a6da8aaa1490acf3 (diff)
Add exit code control and hook lifecycle features
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 51ca3c2..499161e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -46,8 +46,19 @@ if mingling::feature::MINGLING_ASYNC {
}
```
+5. **\[core\]** Added `with_hook` and `with_hook_anonymous` functions to embed callback events into the program lifecycle
+
+6. **\[core\]** Added `user_context.run_hook` configuration item to control whether the program runs hooks
+
+7. **\[core\]** Added `exec_and_exit`, which will return an `i32` exit code after the program ends
+
+8. **\[core\]** Added `ExitCodeSetup`, now you can use `mingling::update_exit_code(i32)` to control the exit code
+
+9. **\[core\]** `RenderResult` now carries new data `exit_code`
+
#### **BREAKING CHANGES**:
-None
+
+1. **\[core\]** The signature of `exec` has been changed to `exec(self) -> i32` (previously was `exec(self)`)
---