hosteday_flutter 2.1.2
hosteday_flutter: ^2.1.2 copied to clipboard
A lightweight Flutter SDK for connecting apps with HosteDay APIs, including authentication, user requests, custom endpoints, and realtime support.
2.1.2 - 2026-07-17 #
Added #
- Added first-class resource URL parameters to
HosteDayClientso developers can pass values without manually writing backend query names. - Added optional
id,search,relationField, andrelationValuesupport to GET requests. - Added
id,relationField, andrelationValuesupport to PUT, PATCH, and DELETE requests. - Added automatic conversion of
relationFieldandrelationValuetorelation_fieldandrelation_valuein request URLs. - Added automatic resource ID appending, converting a path such as
/postswithid: 12to/posts/12.
Changed #
- Updated
HosteDay.auth.updateProfile()to accept a namednameparameter and currently support updating the authenticated user's name only, with room for additional profile fields in future versions. - Made
HosteDayClientthe public facade for HTTP requests, authentication, and realtime services. - Made
HosteDayHttpClientan internal implementation detail instead of requiring applications to use it directly. - Updated custom API requests to default to
withAuth: false; protected endpoints must explicitly usewithAuth: true. - Updated URL construction to omit null parameters and safely encode all path and query values.
- Clarified that the project API key and authenticated user bearer token are separate credentials.
Documentation #
- Updated CRUD examples for index, show, create, update, partial update, and delete operations.
- Documented passing
user_idinside POST, PUT, and PATCH request bodies. - Documented public and protected API request behavior and common
401 Unauthenticatedcauses. - Updated the example application structure to separate posts index, show, create, update, and delete responsibilities.