Releases: knope-dev/changesets
0.4.0 (2025-03-08)
Breaking Changes
- Update edition to 2024 and MSRV to 1.85
Stop normalizing paths for existing files
If you already have a change file,
potentially created by another tool,
this library renormalizing the file name can cause unexpected errors (for example, when writing back to the file).
Internally, Change::from_file, Change::from_file_name_and_content,
and ChangeSet::from_directory all now use UniqueId::exact.
When creating a new change file (not opening an existing one),
you should construct a Change { ... } yourself and use UniqueId::normalize to get the previous behavior.
Removed From<AsRef<str>> for UniqueId
Instead, use either UniqueId::normalize or UniqueId::exact to specify if you'd like the value to be transformed.
0.3.0 (2024-06-19)
Breaking Changes
Rework ChangeSet and PackageChange interfaces
ChangeSet now uses a Vec internally instead of a HashMap to perform better for low/single-package repos.
Instead of accessing the internal releases field, you can use into::<Vec<_>>() or into_iter().
PackageChange now stores both unique_id and summary in Arcs, since in multi-package repos, these strings
were potentially being cloned a lot.
0.2.4 (2024-06-12)
Features
- Add
Change::from_file_name_and_contentfor when you don't want to load directly from the file system.