All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- see 'Breaking' section above
0.3.0 - 2024-10-15
- variants added to public enum
ApiError
get_intensity_postcode()
/get_intensity_region()
removed, useget_intensity()
instead. This takes aTarget
(e.g. national/region/postcode)get_intensities_postcode()
/get_intensities_region()
removed, useget_intensities()
instead. This takes aTarget
(e.g. national/region/postcode)get_intensities()
signature changed, instead of taking just a URL now takes aTarget
(e.g. national/region/postcode) and the start/end date
- ability to retrieve national data (issue #9)
- added
Cargo.lock
to improve compilation reproducibility of the binary (PR #21) - added
rust-version
toCargo.toml
to make it explicit which version of Rust compiles the crate (commit) - run clippy in CI (PR #22)
- check for semver violations in CI (PR #28)
- more tests
- added a changelog
- make requests to Carbon Intensity API concurrently (issue #7)
- prevent start date to be before first data available (issue #15)
- Prevent CLI to panic when the pipe is broken (issue #5)
- see 'Breaking' section above
0.2.0 - 2023-12-04
- improvements to output legibility (issue #2)
- run tests in CI
- handle date ranges of more than 13 days (issue #3)
- accepts postcode's outward codes which are 4 characters long (issue #1)
0.1.0 - 2023-11-21
- Initial release