# cvdprevent

# Version 0.2.5 (2026-01-29)

## Added
- Additional defensive code in the vignette to better handle unexpected conditions and improve overall robustness.

## Changed
- The validation function `get_valid_time_period_ids()` was updated to ensure it retrieves *all* valid time periods from the API. Although this introduces a slight performance slowdown, it provides greater long-term stability against future API changes.

## Fixed
- Corrected an issue in the example `cvd_area_system_level()` where an incompatible `TimePeriodID` was being produced. The example has been updated to prevent recurrence and the underlying validation logic has been strengthened.

# Version 0.2.4 (2025-11-11)

## Added
- None in this release.

## Changed
- `cvd_clear_cache()` is exported for end-users to access, for example to clear stale values from the cache.

## Fixed
- Cache defaults to in-memory when the package is used non-interatively, which should resolve CRAN test issues on certain builds. When used interactively (most use-cases) will use persistent disc-based cache that is more convenient for users.

## Deprecated
- None in this release.

# Version 0.2.3 (2025-11-05)

## Added
- New function `cvd_external_resource()` to retrieve metadata for external resources linked to CVDPREVENT, including category, source, type, and tags.
- Support for inequality marker breakdowns via `cvd_indicator_person_timeseries()` with expanded documentation and return structure.
- `@return` documentation blocks added for all major functions to improve clarity and usability.

## Changed
- Improved documentation across all indicator-related functions, including clearer `@description`, `@details`, and `@seealso` sections.
- Enhanced validation logic for `metric_id`, `area_id`, and `time_period_id` parameters to ensure API compatibility.
- Refactored internal processing of nested API responses for better stability and readability.

## Fixed
- Corrected handling of empty or malformed API responses in `cvd_indicator_group()` and `cvd_indicator_pathway_group()`.
- Resolved issue where system-level comparison functions failed to relocate nested `ComparisonData` correctly.

## Deprecated
- None in this release.

# cvdprevent 0.2.2

# cvdprevent 0.1.0

* Initial CRAN submission.
