volt_net 2.1.2
volt_net: ^2.1.2 copied to clipboard
Motor de requisições HTTP de alta performance com Cache Híbrido (L1/L2), SQLite e Processamento em Isolates.
Changelog #
All notable changes to this project will be documented in this file.
2.1.1 (Pending) #
Added #
- Integrated Logging System: Added a built-in logger that uses
DebugUtilsto display structured Request/Response data. - CURL Generation: Every network request now automatically generates a ready-to-use CURL command in the console when logging is enabled.
- Enhanced Documentation: Refactored the entire codebase with triple-slash (
///) documentation comments and usage examples in English.
Changed #
- Logging Flag: Added
loggingparameter toVolt.initialize()to control the output of internal network logs. - DebugUtils Integration: Unified all request handlers (
GET,POST,PUT,DELETE) to useDebugUtilsfor visual consistency. - English Standards: Translated all internal code comments and log labels to English.
Fixed #
- Binding Initialization in Tests: Fixed
volt_log_test.dartto properly initialize Flutter bindings and handle sync monitoring during unit tests.
2.0.0 - 2026-03-04 #
Added #
- Full REST Support: Implementation of
PutRequestandDeleteRequestwith the same resilience and cache patterns as GET/POST. - Enterprise Resilience: Introduced
resilientBatchinPostRequestwith automatic rollback on failure and idempotency key support. - Advanced Offline Sync:
SyncQueueManagernow persistsPUTandDELETEoperations. - Multipart Media Sync: Added capability to keep files in the sync queue using
VoltFilefor deferred offline uploads. - VoltInterceptor: New interceptor system for global request/response modification and centralized error handling.
- New Models: Introduced
VoltFilefor file abstractions and improvedResultModel<T>with isolate-based parsing. - Testing Suite: Achieved ~95% code coverage with new integration and edge-case tests.
- Utilities: Added
Debouncerfor high-frequency event management.
Changed #
- BREAKING: Completely removed legacy naming ("EcoloteNetwork") in favor of
VoltNet. - BREAKING: Refactored
CacheManager,SyncQueueManager, and Request classes to support constructor-based Dependency Injection. - Error Mapping:
ThrowHttpExceptionnow maps native exceptions (Socket, Timeout, Client) into typedVoltNetExceptionsubclasses. - Deterministic Cache: Replaced
.hashCodewith a collision-resistant string-based key strategy. - Standardization: All debug logs and messages are now in English for global compatibility.
- URL Building: Integrated
Uri.resolve()for more reliable absolute path construction.
Fixed #
- Handling of
nulland empty bodies inResultApi. - Persistence issues with multipart fields in the offline sync queue.
- Isolate parsing reliability for complex or deeply nested JSON structures.
- Compilation errors in
CacheManager.clearAll.