Skip to content

Commit 40878a2

Browse files
author
jarvisjiang
committed
chore(release): bump version to 1.9.0
BREAKING CHANGE: FetchResponse renamed to FetchResult, FetchTask.response renamed to FetchTask.result
1 parent 6a1a23c commit 40878a2

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ 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.9.0] - 2026-01-13
9+
10+
### Changed
11+
12+
- **BREAKING**: Rename `FetchResponse<T, E>` to `FetchResult<T>` (simplified type, `E` is always `Error`)
13+
- **BREAKING**: Rename `FetchTask.response` property to `FetchTask.result`
14+
15+
### Migration
16+
17+
```typescript
18+
// Before
19+
import type { FetchResponse } from '@happy-ts/fetch-t';
20+
const task = fetchT(url, { abortable: true });
21+
const result = await task.response;
22+
23+
// After
24+
import type { FetchResult } from '@happy-ts/fetch-t';
25+
const task = fetchT(url, { abortable: true });
26+
const result = await task.result;
27+
```
28+
829
## [1.8.1] - 2026-01-13
930

1031
### Changed
@@ -210,6 +231,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
210231
- Timeout support
211232
- Rust-like Result type error handling via `happy-rusty` library
212233

234+
[1.9.0]: https://github.com/JiangJie/fetch-t/compare/v1.8.1...v1.9.0
213235
[1.8.1]: https://github.com/JiangJie/fetch-t/compare/v1.8.0...v1.8.1
214236
[1.8.0]: https://github.com/JiangJie/fetch-t/compare/v1.7.0...v1.8.0
215237
[1.7.0]: https://github.com/JiangJie/fetch-t/compare/v1.6.0...v1.7.0

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.8.1",
5+
"version": "1.9.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.8.1",
6+
"version": "1.9.0",
77
"type": "module",
88
"main": "dist/main.cjs",
99
"module": "dist/main.mjs",

0 commit comments

Comments
 (0)