fix(typedrequest): Add skipHooks flag to TypedRequest to optionally suppress global hooks for internal requests

This commit is contained in:
2025-12-04 22:48:44 +00:00
parent 2a89e88dd1
commit 0d3d5cb562
3 changed files with 37 additions and 21 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2025-12-04 - 3.2.2 - fix(typedrequest)
Add skipHooks flag to TypedRequest to optionally suppress global hooks for internal requests
- Introduce public skipHooks boolean on TypedRequest (default false) with documentation comment explaining it should be used for internal/logging requests to prevent infinite loops.
- Guard calls to global hooks (onOutgoingRequest and onIncomingResponse) in TypedRequest.fire() so hooks are not invoked when skipHooks is true.
## 2025-12-04 - 3.2.1 - fix(typedrouter)
Use globalThis-backed globalHooks for TypedRouter to enable cross-bundle sharing; fix merging and clearing of global hooks.