Skip to content

Commit

Permalink
Add a line_cardinality changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
zkxs committed Sep 16, 2024
1 parent 9e878ba commit 923d880
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions line_cardinality/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Changelog

This project follows [semantic versioning](https://semver.org/).

# 2.0.0 - 2024-09-15

## Added

- Iter implementations for `HashingLineCounter`
- borrowed: `HashingLineCounterIter`. Comes from `HashingLineCounter::iter()` or `(&HashingLineCounter)::into_iter()`
- owned: `HashingLineCounterIntoIter`. Comes from `HashingLineCounter::into_iter()`
- `HashingLineCounter::get()`, which lets you retrieve a count for a specified line.

## Changed

- Nightly Rust is no longer needed to compile line_cardinality.
- `HashingLineCounter::for_each_report_entry` now calls a `FnMut(&[u8], T)` instead of a `FnMut((&[u8], &T))`
- `Increment` must now be `Copy`

## Removed

- the underling map used is no longer a `std::collections::HashMap`, and converting into one would be quite expensive so
the following functions were removed. You should switch to using the new `get()` function or iter implementations
instead.
- `HashingLineCounter::as_map()`
- `HashingLineCounter::into_map()`

# 1.0.2 - 2024-08-11

No changes: only documentation improvements.

# 1.0.1 - 2024-08-11

## Fixed

- fix repository link on crates.io

# 1.0.0 - 2024-08-11

## Added

- Initial release.

0 comments on commit 923d880

Please sign in to comment.