Skip to content

Commit e0a768b

Browse files
author
jarvisjiang
committed
chore(release): bump version to 1.8.0
- Add URL validation with browser relative path support
1 parent b2ccc66 commit e0a768b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ 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.8.0] - 2026-01-12
9+
10+
### Added
11+
12+
- Add URL validation with browser relative path support
13+
- Validates URLs upfront before calling `fetch`
14+
- Supports relative URLs in browser environments (using `location.href` as base)
15+
- Throws `TypeError` with unified message for invalid URLs in non-browser environments
16+
817
## [1.7.0] - 2026-01-08
918

1019
### Added
@@ -190,6 +199,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
190199
- Timeout support
191200
- Rust-like Result type error handling via `happy-rusty` library
192201

202+
[1.8.0]: https://github.com/JiangJie/fetch-t/compare/v1.7.0...v1.8.0
193203
[1.7.0]: https://github.com/JiangJie/fetch-t/compare/v1.6.0...v1.7.0
194204
[1.6.0]: https://github.com/JiangJie/fetch-t/compare/v1.5.1...v1.6.0
195205
[1.5.1]: https://github.com/JiangJie/fetch-t/compare/v1.5.0...v1.5.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.7.0",
5+
"version": "1.8.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.7.0",
6+
"version": "1.8.0",
77
"type": "module",
88
"main": "dist/main.cjs",
99
"module": "dist/main.mjs",

0 commit comments

Comments
 (0)