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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,28 @@
1
1
# @maxmorozoff/try-catch-tuple
2
2
3
+
## 0.1.0
4
+
5
+
### Minor Changes
6
+
7
+
- 23d5176: feat: enhance error handling and improve TypeScript support
8
+
9
+
#### Added
10
+
11
+
- Introduced `.errors<E>()` method to allow specifying expected error types.
12
+
- Ensured non-Error thrown values are wrapped properly in an `Error` instance with `cause`.
13
+
- Added more tests to cover edge cases and ensure robustness.
14
+
15
+
#### Improved
16
+
17
+
- Refactored `tryCatch`, `tryCatch.sync`, and `tryCatch.async` to support generic error types.
18
+
- Introduced `TryCatchFunc` and `TryCatchResult` for improved type safety.
19
+
- Updated `typescript` version range in `peerDependencies` to `^5.0.0`, supporting all 5.x versions.
20
+
- Added `peerDependenciesMeta` to mark `typescript` as an optional dependency. This allows consumers of the package to choose not to install `typescript` while still ensuring compatibility with TypeScript 5.x.
21
+
22
+
#### Fixed
23
+
24
+
-`handleError` now correctly preserves the original thrown value under `cause`.
0 commit comments