BREAKING CHANGE(client/streaming): Unify streaming APIs: remove raw()/streamNode() and standardize on web ReadableStream across runtimes
This commit is contained in:
10
changelog.md
10
changelog.md
@@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-11-17 - 5.0.0 - BREAKING CHANGE(client/streaming)
|
||||
Unify streaming APIs: remove raw()/streamNode() and standardize on web ReadableStream across runtimes
|
||||
|
||||
- Removed SmartRequest.raw() and RawStreamFunction type. The raw streaming function API is gone — use .stream() with a web ReadableStream for request body streaming.
|
||||
- Removed response.streamNode() from all runtimes. Responses now expose only response.stream() (ReadableStream<Uint8Array>). Node.js consumers must convert using Readable.fromWeb() if a Node.js stream is required.
|
||||
- Node implementation now uses Readable.toWeb() to convert native Node streams into web ReadableStream for a single cross-platform streaming API.
|
||||
- Client request.stream() still accepts Node.js streams but they are converted internally to web streams; temporary internal properties for raw streaming were removed.
|
||||
- Updated tests and documentation (readme) with migration guidance and examples for converting between web and Node.js streams.
|
||||
- Bumped devDependencies (@git.zone/tsbuild, tsrun, tstest) and upgraded form-data to a newer patch release.
|
||||
|
||||
## 2025-11-16 - 4.4.2 - fix(core_base/request)
|
||||
Strip 'unix:' prefix when parsing unix socket URLs so socketPath is a clean filesystem path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user