@happy-ts/fetch-t 1.3.3 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,132 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.4.1] - 2025-12-25
9
+
10
+ ### Fixed
11
+
12
+ - Fix unhandled promise rejections when `onChunk` or `onProgress` callbacks throw errors
13
+ - Fix unhandled promise rejections during stream read errors
14
+
15
+ ### Changed
16
+
17
+ - Upgrade `happy-rusty` dependency to ^1.6.2
18
+ - Upgrade `typescript-eslint` to ^8.50.1
19
+
20
+ ## [1.4.0] - 2025-12-19
21
+
22
+ ### Changed
23
+
24
+ - **BREAKING**: Migrate from Deno test runner to Vitest with MSW mocking
25
+ - **BREAKING**: Migrate from Rollup to Vite for building
26
+ - **BREAKING**: Change license from GPL-3.0 to MIT
27
+ - Upgrade `happy-rusty` dependency to ^1.6.1
28
+ - Upgrade all dev dependencies to latest versions
29
+ - Rewrite README with improved structure, examples, and API documentation
30
+ - Update GitHub Actions workflows for Vitest
31
+
32
+ ### Added
33
+
34
+ - Add `examples/` directory with runnable usage examples
35
+ - Add ESLint stylistic rules for code formatting
36
+ - Add TypeDoc HTML documentation hosted on GitHub Pages
37
+
38
+ ### Removed
39
+
40
+ - Remove Deno configuration (`deno.json`)
41
+ - Remove Rollup configuration (`rollup.config.mjs`)
42
+
43
+ ## [1.3.3] - 2025-11-27
44
+
45
+ ### Fixed
46
+
47
+ - Add npm imports to jsr.json for JSR publishing
48
+ - Override name attribute in FetchError class
49
+ - Comment out assertion for progress result in fetch test
50
+
51
+ ### Changed
52
+
53
+ - Upgrade rollup-plugin-dts to v6.3.0
54
+ - Update ESLint config with new API and rules
55
+ - Upgrade dev dependencies
56
+ - Update deno dependencies and import sources
57
+ - Remove .npmrc file
58
+
59
+ ## [1.3.2] - 2024-08-13
60
+
61
+ ### Changed
62
+
63
+ - The error type returned by a non-abortable `fetch` is explicitly `Error`
64
+
65
+ ## [1.3.1] - 2024-08-11
66
+
67
+ ### Changed
68
+
69
+ - Update dependencies
70
+
71
+ ## [1.3.0] - 2024-08-07
72
+
73
+ ### Added
74
+
75
+ - Support `onProgress` callback for tracking download progress
76
+ - Support `onChunk` callback for receiving raw data chunks
77
+ - Complete test cases for new features
78
+
79
+ ### Changed
80
+
81
+ - Update dependencies
82
+ - Update installation section of readme
83
+
84
+ ## [1.2.1] - 2024-08-05
85
+
86
+ ### Changed
87
+
88
+ - Update happy-rusty dependency
89
+ - Make test cases clearer
90
+
91
+ ## [1.2.0] - 2024-08-04
92
+
93
+ ### Changed
94
+
95
+ - Returns a `FetchError` when the response is not ok (instead of generic Error)
96
+ - Update happy-rusty dependency
97
+
98
+ ## [1.1.1] - 2024-08-03
99
+
100
+ ### Changed
101
+
102
+ - Update deno imports
103
+ - Update dependencies
104
+
105
+ ## [1.1.0] - 2024-08-02
106
+
107
+ ### Changed
108
+
109
+ - Reorganize the code structure
110
+ - Update happy-rusty to v1.3.0
111
+ - Fill test cases
112
+
113
+ ## [1.0.0] - Initial Release
114
+
115
+ ### Added
116
+
117
+ - Abortable requests via `FetchTask.abort()`
118
+ - Type-safe responses with `responseType` parameter ('text' | 'arraybuffer' | 'blob' | 'json')
119
+ - Timeout support
120
+ - Rust-like Result type error handling via `happy-rusty` library
121
+
122
+ [1.4.1]: https://github.com/JiangJie/fetch-t/compare/v1.4.0...v1.4.1
123
+ [1.4.0]: https://github.com/JiangJie/fetch-t/compare/v1.3.3...v1.4.0
124
+ [1.3.3]: https://github.com/JiangJie/fetch-t/compare/v1.3.2...v1.3.3
125
+ [1.3.2]: https://github.com/JiangJie/fetch-t/compare/v1.3.1...v1.3.2
126
+ [1.3.1]: https://github.com/JiangJie/fetch-t/compare/v1.3.0...v1.3.1
127
+ [1.3.0]: https://github.com/JiangJie/fetch-t/compare/v1.2.1...v1.3.0
128
+ [1.2.1]: https://github.com/JiangJie/fetch-t/compare/v1.2.0...v1.2.1
129
+ [1.2.0]: https://github.com/JiangJie/fetch-t/compare/v1.1.1...v1.2.0
130
+ [1.1.1]: https://github.com/JiangJie/fetch-t/compare/v1.1.0...v1.1.1
131
+ [1.1.0]: https://github.com/JiangJie/fetch-t/compare/v1.0.0...v1.1.0
132
+ [1.0.0]: https://github.com/JiangJie/fetch-t/releases/tag/v1.0.0