volt_net 2.0.0
volt_net: ^2.0.0 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.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.