diario 0.1.2
CRAN release: 2026-06-26
Bug fixes
Fixed a bug where query parameters were passed to
httr2::req_url_query()as a single list argument, which errored out (“All components of...must be named”). They are now spliced in correctly, sodiario_get_reports()’slimit/orderarguments work as documented.All argument validators now reject missing values (
NA). Previouslynzchar(NA)returnedTRUE, so anNAtoken could be passed straight tokeyring, andNAids could be pasted into request URLs.
Potentially breaking changes
-
diario_get_task_list()now returns the schedule items (one row per task, with_id,descricao, etc.) instead of the raw API envelope. Previously the summary counters were recycled across rows and the actual tasks were hidden inside a nestedcronogramacolumn.
Improvements
diario_perform_request()now sends the HTTP method in upper case, matching the validation, so lower-case input (e.g."get") no longer leaks through.The API base URL is now configurable via the
diario.base_urloption, making it possible to target staging environments or mock requests in tests.HTTP errors now surface the message returned by the Diario API (via
httr2::req_error()), and empty response bodies (e.g.204 No ContentfromDELETE) are handled gracefully instead of raising a content-type error.diario_get_reports()now validates thatorderis one of"asc"or"desc"up front.diario_retrieve_token()gained aquietargument;diario_perform_request()uses it to avoid emitting a duplicate “No valid token found” message.Added a
testthattest suite covering argument validation and the request layer (network mocked withhttr2::with_mocked_responses()).
diario 0.1.1
CRAN release: 2026-04-07
Improvements
Migrated all user-facing messages, warnings, and errors to use the
clipackage (cli::cli_abort(),cli::cli_warn(),cli::cli_inform(),cli::cli_alert_success(),cli::cli_alert_warning()), replacing base Rstop()andmessage()calls. This provides richer, more informative output with inline markup for arguments, values, functions, and packages.Fixed a bug in
diario_get_reports()where query parameters (limite,ordem) were constructed but never passed todiario_perform_request().Fixed incorrect example in
diario_get_projects()documentation that referenced aqueryparameter not accepted by the function.Wrapped
diario_store_token()anddiario_retrieve_token()examples in\dontrun{}to avoid CRAN check failures on systems without keyring support.Removed
LazyData: truefrom DESCRIPTION (nodata/directory exists).Added
BugReportsfield to DESCRIPTION.Updated authors list.
diario 0.1.0
CRAN release: 2025-01-15
- Initial CRAN release.
- Token management via
keyring(diario_store_token(),diario_retrieve_token()). - Authenticated API requests with
httr2(diario_perform_request()). - Convenience wrappers:
diario_get_company(),diario_get_entities(),diario_get_projects(),diario_get_project_details(),diario_get_task_list(),diario_get_task_details(),diario_get_reports(),diario_get_report_details().
