yarn react-native-blob-util 0.24.11

4 hours ago

First release since 0.24.10. If you are on 0.24.10 and downloading to a path on Android, this upgrade is strongly recommended.

Bugfixes:
#488
#474
#482
#480
#487
#484

Android

  • Downloads to a file path no longer stop after the first 8 KB segment. 0.24.10 shipped a buffered drain without the matching okio sink write, so any file larger than one segment failed with "Download interrupted." (#474, reported in #488)
  • Download progress is calculated with float division, so the ratio no longer stays at 0 until completion (#482)

JavaScript

  • progress / uploadProgress byte counts are normalised to numbers where the native event enters JS. Android and iOS emitted strings while Windows emitted int64 and null, so the documented number contract was wrong on every platform. -1 now uniformly means "unknown length". This also fixes XMLHttpRequest firing the upload load event early, where a string comparison made "9" >= "10" true (reported in #484)
  • Removed the unused glob dependency (#480)

Types

  • HEAD and PATCH are accepted in the Methods union, in both index.d.ts and index.js.flow (#487)

Don't miss a new react-native-blob-util release

NewReleases is sending notifications on new releases.