nexio 0.2.0
nexio: ^0.2.0 copied to clipboard
A production-grade Flutter networking runtime for Dio with environments, encryption, isolate parsing, retries, caching, offline queues, transfers, and observability.
0.2.0 #
Added #
- Added authenticated and anonymous request modes with a protected-request session gate and explicit session reset.
- Added app-defined reachability probes and optional active connectivity checks.
- Added full-response isolate parsers that can decode JSON and construct typed models away from the UI isolate.
- Added encryption wire-format adapters for platform-channel crypto and custom backend envelopes.
- Added per-request offline replay opt-in and a secure persisted-header allowlist.
Changed #
- Hardened in-flight deduplication by response type, parser, headers, encryption mode, auth mode, environment, and session generation.
- Offline replay now preserves environment, encryption, authentication, content type, and Chucker metadata while regenerating dynamic auth headers.
- Offline replay now runs on online cold starts and resumes after a new session is established.
- Multipart uploads no longer deduplicate by default.
Fixed #
- Fixed context-based loaders so they dismiss correctly without a global navigator key and remain safe across concurrent requests.
- Rejected unsupported offline payloads instead of silently converting them to ambiguous strings.
Documentation and Tests #
- Added connectivity, offline replay, platform encryption, session-gating, and complete isolate-parser examples.
- Added fintech/telecom adoption guidance and focused regression coverage for auth boundaries, typed deduplication, loaders, encryption adapters, and isolate execution.
0.1.0 #
Added #
- Added arbitrary named environments with runtime switching and per-request base URL overrides.
- Added Dio-powered GET, POST, PUT, PATCH, DELETE, multipart upload, and pause/resume/cancel download APIs.
- Added AES-CBC and AES-GCM request/response envelopes with pluggable ciphers.
- Added typed JSON, string, bytes, XML, and custom parsing with configurable background-isolate decoding.
- Added fixed and exponential retries, memory and disk caches, TTL policies, offline request replay, cancellation, request priority, and deduplication.
- Added conditional Chucker capture, lifecycle events, response metrics, and privacy-safe aggregate network health monitoring.
- Added backend-agnostic authentication hooks with dynamic headers, single-flight refresh coordination, and session-expiry callbacks.
Architecture #
- Added stable Dio pooling per environment and app-owned interceptor factories.
- Moved context headers and CBC/GCM transforms into built-in Dio interceptors.
- Added cache namespaces for API versions, tenants, countries, locales, and accounts.
- Split request execution, authentication coordination, and Dio-pool runtime responsibilities into focused implementation files.
Documentation #
- Added a runnable Android/iOS example, a complete feature tour, a fintech/telecom blueprint, focused adoption guides, and a mobile integration test.
Verification #
- Added unit, widget, documentation-consistency, and integration test targets.
- Added Android, iOS, API-documentation, pub archive, and pub-point preflight commands for release maintainers.