Skip to content

v0.6.0#28

Merged
basemosama merged 6 commits into
mainfrom
qa
Nov 17, 2025
Merged

v0.6.0#28
basemosama merged 6 commits into
mainfrom
qa

Conversation

@basemosama

@basemosama basemosama commented Nov 17, 2025

Copy link
Copy Markdown
Member

0.6.0

  • Updated dependencies to their latest versions.
  • PATCH Request Support: Added new methods (patch and patchList) to easily perform PATCH API requests.
  • Per-Request Error Mapping: You can now pass a custom ErrorMapper to individual API calls for more specific error handling.
  • Granular Logging Control: Added new settings to control exactly what gets printed in the logs (e.g., toggle response data, request headers, etc.).
  • Added dio_smart_retry package to support retrying failed requests with exponential backoff.

This adds new options to `PlayxNetworkClientSettings.copyWith` to allow more granular control over logging.

Specifically, it introduces toggles for:
- `printResponseData`
- `printRequestData`
- `printRequestHeaders`
- `printResponseHeaders`
Adds a `patch` method to `DioClient` to enable making PATCH requests.

Also, introduces `patch` and `patchList` methods in `PlayxNetworkClient` to handle PATCH requests for single objects and lists of objects, respectively, including response and error handling.
This introduces the ability to provide a specific `ErrorMapper` for each individual network request.

If no `ErrorMapper` is provided for a request, the client will fall back to using the globally configured `ErrorMapper`. This allows for more flexible and granular error handling by enabling custom error parsing on a per-API-call basis.
@basemosama basemosama merged commit 9548eb9 into main Nov 17, 2025
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