nativemind_api_client 0.2.0
nativemind_api_client: ^0.2.0 copied to clipboard
Pure-Dart API client of the NativeMind framework: operation table, HTTP transport with silent token refresh, error envelope, paging, offline action queue, SSE topic stream, OData filters.
0.2.0 - 2026-11-19 #
Dependency upgrade to the latest stable versions (checked with Flutter 3.50.0 / Dart 3.14).
- Breaking for the toolchain only: the SDK floor rises to Dart
^3.13.0(web1.1.2 needs Dart 3.13). Apps on an older Flutter keep resolving the previous release, so nothing changes for them; the public API and behaviour are unchanged unless listed below. - Dependencies raised to the latest stable:
web^1.1.2 (http^1.6.0 already latest); dev:lints^6.1.0,test^1.33.0.
0.1.0 #
First release (SDD widgets.nativemind.net flows/sdd-nativemind-widgets-liendeed). Carried from the LienDeed apps
(liendeed_api, the Pro app's local OData compiler), with every product name made an option:
NmApiOperation: operation table entries (fill,pathParams,usesBody).NmApiClient/NmHttpApiClientonpackage:http. It adds default headers and the bearer token, does one silent renewal and one retry after a 401, and maps timeouts toTIMEOUTand transport failures toNETWORK_ERROR. It decodes the{error}envelope intoNmApiException, sends query lists as repeated keys, and on web uses aBrowserClientwith credentials.send()serves clients without an operation table and can retry a GET once.NmApiEnvelope,NmAccessTokens,NmTableQuery/NmTablePage/table().NmActionQueue: an ordered offline queue with deduplication, batches, a retryable-or-dropped rule, and serialised store updates.NmSseParser,nmOpenSse(io / web), andNmTopicEventStream: one connection for many topics, withLast-Event-IDresume.nmODataFilter/nmODataOrderBy: the OData subset of@nativemind108/query, compiled to row predicates.