Skip to content

Commit 0ae4948

Browse files
committed
Prepare errors 15.0.1 release
1 parent 29acac2 commit 0ae4948

6 files changed

Lines changed: 186 additions & 171 deletions

File tree

‎RELEASE_NOTES.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Release Notes
22

3+
## 15.0.1 — 2026-10-26
4+
5+
### Changed
6+
7+
- Updated the package and Eliware logger and test dependencies to version 15.0.1.
8+
- Updated compatible dependency versions in the lock file.
9+
- Clarified the removal method requirements for process objects without listener inspection.
10+
- Preserved the public API and runtime behavior.
11+
312
## 15.0.0 — 2026-10-21
413

514
### Changed

‎docs/api.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ Also provide an `off()` or `removeListener()` method.
6262
The package uses `off()` when both removal methods exist.
6363

6464
The process object can provide `listeners(event)` to let the package verify handler removal.
65-
If the process object omits `listeners(event)`, removal methods must throw or return `false` when removal fails.
66-
The package cannot verify a silent removal failure when the process object omits `listeners(event)`.
65+
If the process object omits `listeners(event)`, the package treats a return as success unless it returns `false`.
66+
The process object must throw or return `false` when it cannot remove a registered handler.
67+
The package cannot find a failure when a removal method returns without removing the handler.
68+
In that case, the registration can report `removed` as `true` while the handler remains attached.
6769

6870
The object can provide `once()` for one-shot listeners.
6971
If `once()` does not exist, the package uses `on()` and tracks fired events.

‎docs/troubleshooting.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ If `removeHandlers()` throws, call it again to retry failed removals.
4646
The package does not remove other listeners from the process object.
4747
If one removal fails, the package keeps the completed removals and retries only the remaining work.
4848

49+
If the process object omits `listeners()`, its removal method must throw or return `false` when it cannot remove a handler.
50+
The package cannot find a failure when a removal method returns without removing a handler.
51+
4952
## A second registration does not use new options
5053

5154
Each process object can have one active registration.

0 commit comments

Comments
 (0)