dio_bridge 1.0.1
dio_bridge: ^1.0.1 copied to clipboard
A Flutter wrapper around Dio HTTP client providing unified API service interface with secure token management, functional error handling, and cross-platform support.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 - 2026-01-08 #
Added #
- Added
webpackage dependency for modern web API support
Changed #
- Updated
DioBridgeTokenManagerto use conditional storage based on platform - Changed web token storage to use
localStorageinstead of unsupported secure storage - Updated documentation to clarify security differences between web and native platforms
Fixed #
- Fixed web platform support that was previously declared but non-functional
- Fixed token storage operations to work properly on web platforms using localStorage
1.0.0 - 2026-01-08 #
Added #
- Added
DioBridgeServiceclass for unified HTTP client interface with Dio - Added
getMethod(),postMethod(),putMethod(),deleteMethod(), andpatchMethod()for full HTTP method support - Added
DioBridgeTokenManagerfor secure encrypted token storage and management - Added
DioBridgeTokenInterceptorfor automatic Bearer token injection and 401 retry handling - Added
DioBridgeTokenPairclass for immutable token storage with expiration tracking - Added
DioBridgeOptionclass for request configuration with headers, query parameters, and progress callbacks - Added
DioBridgeHeadersealed class for predefined content-type header configurations - Added
DioBridgeResponseTypesealed class for type-safe response type handling - Added functional error handling using Either monad from fpdart for all HTTP methods
- Added automatic token refresh capability with configurable callback for seamless 401 handling
- Added progress tracking support for upload and download operations
- Added cross-platform secure storage integration via database_bridge package
- Added extension methods for seamless conversion between Dio and DioBridge types
- Added comprehensive token lifecycle management with authentication state checking