mobile_api 0.0.10+17
mobile_api: ^0.0.10+17 copied to clipboard
Typed REST and GraphQL API helpers for Flutter apps, with token refresh, secure cache storage, multipart uploads, and network checks.
0.0.10+17 #
- Added
CursorPage<T>for reusable GraphQL cursor pagination payloads. - Added
IGraphQl.queryCursorPagefor decoding page items withpageInfo.hasNextPageand nullablepageInfo.endCursor. - Added configurable
PageFieldKeys.endCursorKeywhile keeping existing list query behavior unchanged.
0.0.9+16 #
- Added generic refresh-token support for custom token models extending
IBOAuth2Token. - Added configurable refresh request body and refresh response parser hooks.
- Scoped refresh concurrency per client instance.
0.0.8+15 #
- Treated all REST
2xxHTTP status codes as successful responses. - Added
emptySuccessBuilderfor mapping204and other empty success responses. - Exposed REST success status codes through
Success.statusCode.
0.0.7+14 #
- Added unified
ApiConfig.headerssupport for REST and GraphQL clients. - Replaced separate marketplace, user-agent, default-language, and custom-header configuration fields with
headers.
0.0.6+13 #
- Added
InMemoryCacheRepo, a Map-backedICacheRepofor injecting tokens in tests withoutFlutterSecureStorage.
0.0.5+12 #
- Improved pub.dev scoring metadata and API documentation.
- Added a package example for REST, GraphQL, and cache setup.
- Updated dependency constraints for latest supported package versions.
- Removed an unnecessary direct
http_parserdependency.
0.0.4+11 #
- Removed hard-coded token fallbacks from REST and GraphQL clients.
- Made bad-certificate handling opt-in and scoped to the package HTTP clients.
- Added injectable HTTP and secure-storage clients for deterministic tests.
- Hardened HTTP URI handling and GraphQL error mapping.
- Replaced live endpoint tests with mocked client tests.
- Updated README usage examples.
0.0.1 #
- Initial package release.