v2.0.0 #39
Closed
L-Blondy
announced in
Announcements
v2.0.0
#39
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Features & Improvements
onResponseStreamingandonRequestStreamingupnow supports asynchronous functions as its second argumentValidationErrorreadability for easier debuggingChangelog
(new) Retry
The retry system is now built-in and handles transient failures gracefully.
(new) Progress & Streaming
Progress tracking is now available for both upload and download operations through the
onResponseStreamingandonRequestStreamingoptions:(improved) Lifecycle Hooks
Lifecycle hooks are now available directly on the fetcher instance for more granular control:
(improved) Async Configuration
The
upfunction now supports asynchronous functions as its second argument:(breaking) Deprecated Options Removal
throwResponseError→ renamed toreject(available since 1.3.4)parseResponseError→ renamed toparseRejected(available since 1.3.4)Before (v1)
After (v2)
(breaking) Simplified Callback Options
All callbacks and
ResponseErrornow receive a standardRequestobject instead of resolved options, aligning with web standards.Before (v1)
After (v2)
Most users will not be affected by the Breaking Changes, as they primarily impact advanced use cases and deprecated features. The core functionality of up-fetch remains unchanged.
This discussion was created from the release v2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions