Skip to content

v1.0.0#29

Merged
basemosama merged 6 commits into
mainfrom
qa
Apr 2, 2026
Merged

v1.0.0#29
basemosama merged 6 commits into
mainfrom
qa

Conversation

@basemosama

Copy link
Copy Markdown
Member
  • Nested JSON Key Extraction: Added dataKey parameter to all network requests to extract nested JSON values before parsing.
  • Item-Level Nested Key Extraction: Added itemDataKey to all list-returning requests (getList, postList, etc.) to unwrap each list item (e.g., itemDataKey: 'attributes') before passing it to the mapper.
  • Smart Request Cancellation Manager: Added cancelTag parameter to manage and cancel multiple requests at once with automatic cancelOld support.
  • Mapping Cancellation: Better support for canceling requests during JSON mapping in isolates. Now, when a request is canceled, the mapping process is also canceled to save resources and improve performance.

- **Nested JSON Key Extraction**: Added `dataKey` parameter to all network requests (`get`, `getList`, `post`, `postList`, etc.) to extract nested JSON values before parsing directly via dot-notation (e.g. `dataKey: 'data.users'`).
- Introduces `PlayxCancelTokenManager` to manage and cancel requests using tags.
- Adds `cancelTag` and `cancelOld` parameters to all network request methods in `PlayxNetworkClient`.
- Implements mapping cancellation in `ApiHandler` to terminate JSON parsing in isolates if a request is canceled.
- Updates documentation and examples in `README.md` to reflect new features.
Introduces more granular control and customization for network logging in `PlayxNetworkLoggerSettings`.

Key changes:
- Added `enableColors` and `displayTimestamp` options to logger settings.
- Added support for providing a custom `Talker` instance for logging.
- Updated `buildTalkerDioLogger` to use `developer.log` by default, avoiding the 'flutter:' prefix in logs.
- Added `talker` as a dependency in `pubspec.yaml`.
- Refactored `PlayxNetworkClient` for better readability of `CancelToken` resolution.
@basemosama basemosama merged commit af33919 into main Apr 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant