You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 62fd726
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Saborter Changelog
2
2
3
+
## v2.5.0 (May 16th, 2026)
4
+
5
+
### New Features
6
+
7
+
- Added separate handler methods `onCancel` and `onInterrupt` for interrupting and canceling a request [#84](https://github.com/TENSIILE/saborter/pull/84/changes/d959429fca49fd4fb5c4c0058e117a3d4f1ba6ca)
8
+
- Added a new event `settled` to `EventListener`[#84](https://github.com/TENSIILE/saborter/pull/84/changes/34843174ea21c79f83142c328e326cd3dffff3ee)
9
+
- Added strict typing for the `isAbortError` function where the typeguard targets `AbortError`[#85](https://github.com/TENSIILE/saborter/pull/85/changes/efb8d5faa5029e580127b447c26ec860284f2fde)
10
+
- Added `Response` exception to the `catch` block when `response.ok` is `false` when using the short `fetch` format [#85](https://github.com/TENSIILE/saborter/pull/85/changes/d096d569aadd3ad6c7aa9e1b08a679e41fb0fe49)
11
+
- Added `debounce` option directly to `Aborter's``try` method [#86](https://github.com/TENSIILE/saborter/pull/86/changes)
12
+
13
+
### Bug Fixes
14
+
15
+
- Fixed unnecessary calls to the Aborter context inject in Http Request when the provider is disabled [#85](https://github.com/TENSIILE/saborter/pull/85/changes/fa7b1a192e5f94a9caa2b124efdce62e0f619a66)
Copy file name to clipboardExpand all lines: docs/event-listener.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
## 📖 Overview
4
4
5
-
The `EventListener` class provides an event management system for handling operation interruption events. It implements the observer pattern for events of types `aborted` and `cancelled`.
5
+
The `EventListener` class provides an event management system for handling system interruptions. It implements the observer pattern for events of a certain set of types.
6
6
7
7
## 📝 Event Types
8
8
9
-
Two event types are supported:
9
+
The following event types are supported:
10
10
11
11
-**`aborted`** - operation was aborted
12
12
-`listener: (error: AbortError): void`
@@ -16,6 +16,8 @@ Two event types are supported:
16
16
-`listener: (data: any): void`
17
17
-**`rejected`** - event triggered when an operation fails with an error
18
18
-`listener: (error: Error): void`
19
+
-**`settled`** - event is triggered when the operation completes, both with an error and successfully
0 commit comments