dio_web_adapter 2.2.1 copy "dio_web_adapter: ^2.2.1" to clipboard
dio_web_adapter: ^2.2.1 copied to clipboard

Platformweb

An adapter that supports Dio on Web.

CHANGELOG #

Unreleased #

None.

2.2.1 #

  • Warn when a request is not a CORS "simple request" and will trigger a preflight (OPTIONS) request, and enrich the XMLHttpRequest.onError message with CORS guidance when the request was preflighted. The warning can be disabled via BrowserHttpClientAdapter(enableCORSWarning: false); the enriched error message is always emitted.

2.2.0 #

  • Support Dio.download on Web by fetching bytes and triggering a browser download with a Blob URL.

2.1.2 #

  • Fix inaccurate timeout type detection using xhr.readyState instead of timer existence.

2.1.1 #

2.1.0 #

  • Support FileAccessMode in Dio.download and Dio.downloadUri to change download file opening mode.

2.0.0 #

  • Supports the WASM environment. Users should upgrade the adapter with dart pub upgrade or flutter pub upgrade to use the WASM-supported version.

1.0.1 #

  • Improves warning logs on the Web platform.

1.0.0 #

  • Split the Web ability from the package:dio.