Skip to content

Commit 3cea668

Browse files
author
jarvisjiang
committed
chore(release): 1.6.0
1 parent 7dbbd47 commit 3cea668

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,29 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.5.1] - 2026-01-04
8+
## [1.6.0] - 2026-01-06
99

1010
### Added
1111

1212
- Add `'bytes'` responseType to return `Uint8Array` via `Response.bytes()` (with fallback for older environments)
1313

14+
### Changed
15+
16+
- Refactor signal handling: extract `configureSignal()` function to ensure fresh timeout signal on retries
17+
- Refactor progress tracking to use `response.clone()` instead of `stream.tee()`
18+
- Simplify `setupProgressCallbacks` with `for-await-of` loop
19+
- Use `AsyncIOResult` type alias for internal consistency
20+
- Use stricter `Uint8Array<ArrayBuffer>` typing throughout
21+
- Upgrade `typescript-eslint` to ^8.52.0
22+
23+
### Fixed
24+
25+
- Fix `body.cancel()` rejection handling on non-ok responses
26+
- Fix stream reader cancellation on error to release resources
27+
- Fix `json` and `stream` responseType to return `null` for empty body
28+
29+
## [1.5.1] - 2026-01-04
30+
1431
### Fixed
1532

1633
- Fix `ReadableStream<Uint8Array<ArrayBuffer>>` type parameter for abortable stream overload
@@ -160,6 +177,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
160177
- Timeout support
161178
- Rust-like Result type error handling via `happy-rusty` library
162179

180+
[1.6.0]: https://github.com/JiangJie/fetch-t/compare/v1.5.1...v1.6.0
163181
[1.5.1]: https://github.com/JiangJie/fetch-t/compare/v1.5.0...v1.5.1
164182
[1.5.0]: https://github.com/JiangJie/fetch-t/compare/v1.4.1...v1.5.0
165183
[1.4.1]: https://github.com/JiangJie/fetch-t/compare/v1.4.0...v1.4.1

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://jsr.io/schema/config-file.v1.json",
33
"name": "@happy-ts/fetch-t",
44
"license": "MIT",
5-
"version": "1.5.1",
5+
"version": "1.6.0",
66
"exports": "./src/mod.ts",
77
"imports": {
88
"happy-rusty": "npm:happy-rusty@^1.9.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Type-safe Fetch API wrapper with abortable requests, timeout support, progress tracking, automatic retry, and Rust-like Result error handling.",
44
"author": "[email protected]",
55
"license": "MIT",
6-
"version": "1.5.1",
6+
"version": "1.6.0",
77
"type": "module",
88
"main": "dist/main.cjs",
99
"module": "dist/main.mjs",

0 commit comments

Comments
 (0)