@d1g1tal/transportr 2.2.1 → 3.0.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 +93 -0
- package/README.md +846 -491
- package/dist/{media-types.d.ts → content-type.d.ts} +2 -2
- package/dist/{media-types.js → content-type.js} +2 -2
- package/dist/content-type.js.map +7 -0
- package/dist/{headers.d.ts → request-header.d.ts} +2 -2
- package/dist/{headers.js → request-header.js} +2 -2
- package/dist/request-header.js.map +7 -0
- package/dist/{methods.d.ts → request-method.d.ts} +3 -3
- package/dist/{methods.js → request-method.js} +2 -2
- package/dist/request-method.js.map +7 -0
- package/dist/{response-headers.d.ts → response-header.d.ts} +2 -2
- package/dist/{response-headers.js → response-header.js} +2 -2
- package/dist/response-header.js.map +7 -0
- package/dist/transportr.d.ts +368 -282
- package/dist/transportr.js +7 -2
- package/dist/transportr.js.map +3 -3
- package/package.json +18 -18
- package/dist/headers.js.map +0 -7
- package/dist/media-types.js.map +0 -7
- package/dist/methods.js.map +0 -7
- package/dist/response-headers.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,96 @@
|
|
|
1
|
+
## [3.0.1](https://github.com/D1g1talEntr0py/transportr/compare/v3.0.0...v3.0.1) (2026-04-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update dependencies to resolve CVE-2026-39363 (4858b094e3a88858eb60113ba706b53e451c6158)
|
|
6
|
+
Updates vitest and related dev dependencies to their newest versions to resolve a security vulnerability in a transient dependency (Vite). Includes routine updates for other development dependencies.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Miscellaneous Chores
|
|
10
|
+
|
|
11
|
+
* add explicit type annotation to defaultOrigin (c938eb124fcb82e539af8f4e0ba02c16ddd39193)
|
|
12
|
+
Improves type safety and predictability by declaring a clear string type for the origin constant.
|
|
13
|
+
|
|
14
|
+
* **docs:** revise feature comparison (9daaa2457e71ce3b2e34210de871550bb0e824cf)
|
|
15
|
+
|
|
16
|
+
### Build System
|
|
17
|
+
|
|
18
|
+
* enable isolatedDeclarations in tsconfig (3a51dae3d455d01a522fa7464255b9e16ce6bf22)
|
|
19
|
+
Enhances build performance and compatibility with transpilers by enforcing isolated declaration generation.
|
|
20
|
+
|
|
21
|
+
## [3.0.0](https://github.com/D1g1talEntr0py/transportr/compare/v2.2.1...v3.0.0) (2026-04-05)
|
|
22
|
+
|
|
23
|
+
### ⚠ BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* Renamed submodule paths: headers->request-header, methods->request-method, media-types->content-type, response-headers->response-header.
|
|
26
|
+
Renamed exported symbols: HttpRequestHeader->RequestHeader, HttpRequestMethod->RequestMethod, HttpMediaType->ContentType, HttpResponseHeader->ResponseHeader.
|
|
27
|
+
Renamed static properties: RequestEvents->RequestEvent, RequestModes->RequestMode, RequestPriorities->RequestPriority, RedirectPolicies->RedirectPolicy.
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* add concurrent request helpers (4980696752ef8d8719e8f7abcc69f65934e63a40)
|
|
32
|
+
Introduces `Transportr.all()` for promise resolution of multiple requests and `Transportr.race()` for racing requests with automatic abortion of losing requests.
|
|
33
|
+
|
|
34
|
+
* add download progress tracking (bedbd0cfef36cece3c936f0dd0cd52f9feb3f76c)
|
|
35
|
+
Supports passing an `onDownloadProgress` callback in request options to track byte loading progress on responses returning a body stream.
|
|
36
|
+
|
|
37
|
+
* add NDJSON streaming (4fb5a5bc78ddd4a615f1ebc081be980631d2ff4c)
|
|
38
|
+
Introduces `getJsonStream<T>()` to parse Newline Delimited JSON feeds from an `application/x-ndjson` response stream into an `AsyncIterable<T>`.
|
|
39
|
+
|
|
40
|
+
* add SSE streaming (a649391f01e4a90a143bd1a10f1560b743573762)
|
|
41
|
+
Introduces `getEventStream()` method to parse Server-Sent Events (SSE) from the `text/event-stream` response into an `AsyncIterable<ServerSentEvent>`.
|
|
42
|
+
|
|
43
|
+
* add typed event handlers (13e2118c69e8e66caca14e7d336306bece11de3d)
|
|
44
|
+
Enhances the `register()` method to support strongly-typed event data payloads based on the specific event name being requested.
|
|
45
|
+
|
|
46
|
+
* add upload progress tracking (4e79faf80c619060290f17832d82bbf88108c104)
|
|
47
|
+
Supports passing an `onUploadProgress` callback in request options to track progress continuously when requests have a supported payload size.
|
|
48
|
+
|
|
49
|
+
* rename submodules, symbols, and static properties (e98a49e9d32f1c1918341711436c190fd171558a)
|
|
50
|
+
Renames exported constant submodules for clarity and consistency.
|
|
51
|
+
|
|
52
|
+
* support safe results tuples via unwrap flag (66325e1d155fd89b9190438044d61e096eaead1e)
|
|
53
|
+
Adds a new `unwrap: false` request option returning errors safely as `Result<T>` tuples `[true, data]` or `[false, error]` to avoid try/catch blocks.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Code Refactoring
|
|
57
|
+
|
|
58
|
+
* improve options configuring and hooks evaluation (a1f351220a5f5d5f3236616176747c9c27769f8a)
|
|
59
|
+
Refactors how request defaults and instance-level properties merge options like search parameters, hooks, and headers. Also adds configuration helper hooks.
|
|
60
|
+
|
|
61
|
+
* omit HttpError dependency bounds (3f21ace415eb94486b9d4640606707a1b560b902)
|
|
62
|
+
Refines isolated import statements for purely explicit types directly exporting HttpError appropriately.
|
|
63
|
+
|
|
64
|
+
* simplify base URL construction (695586e4fd0f69f938dfb7e22a9bf17983651fe7)
|
|
65
|
+
Streamlines origin defaults globally across instance initializations and tests.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Documentation
|
|
69
|
+
|
|
70
|
+
* update readme for v3.0 features and migrations (edcb56ce6fca02de4929a9dc28e9de11bfb8165c)
|
|
71
|
+
Revamps the README with details on the new v3.0 capabilities, including streaming, progress tracking, concurrent requests, and safe results. Also adds a migration guide for moving from v2 and updates feature comparisons.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Styles
|
|
75
|
+
|
|
76
|
+
* add editorconfig (8c23fd68716956717eafe1c6c089fb614ed6bf55)
|
|
77
|
+
Adds a standard .editorconfig file to ensure consistent line endings, charset, and indentation styles across all project files.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Tests
|
|
81
|
+
|
|
82
|
+
* add response handler jsdom exception tests (b420c84f1845dd185f7b828715974c4cf2456834)
|
|
83
|
+
Configures Vitest scenarios handling JSDOM dependencies specifically checking error instances when JSDOM is entirely missing.
|
|
84
|
+
|
|
85
|
+
* configure vitest environment for fetch mocks (dab6318b7c33dc1073cb2e87d55fc982656dbfb2)
|
|
86
|
+
Improves explicit mock response typings internally in tests avoiding implicit errors via type casting for globally overridden APIs like fetch.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Build System
|
|
90
|
+
|
|
91
|
+
* **deps:** update tldts and baseline-browser-mapping (f1c90bfe16a56158ce72fe1b0013200f708676c6)
|
|
92
|
+
Updates internal dependencies in pnpm-lock.yaml to their latest patch versions to ensure security and stability.
|
|
93
|
+
|
|
1
94
|
## [2.2.1](https://github.com/D1g1talEntr0py/transportr/compare/v2.2.0...v2.2.1) (2026-04-04)
|
|
2
95
|
|
|
3
96
|
### Bug Fixes
|