Releases: rossnomann/ape
Releases · rossnomann/ape
0.6.0
Fixed multiple values support.
You may need to overwrite your tags if you have called the Tag::add_item method with the same key multiple times,
since the spec states that
"Every Tag Item Key can only occures (at most) once".
- Updated byteorder to 1.5.
- Added
TryFrom<&Item>trait implementation forVec<&str>and&str. - Added
TryFrom<Item>trait implementation forVec<String>andString. - Removed
ItemValueenum andItem.valuefield; useTryFrominstead. - Added
ItemType { Binary, Locator, Text }enum. - Added
Item::new(key, type, value)method. - Removed
Item::from_binary,Item::from_locatorandItem::from_textmethods; useItem::newmethod instead. - Added
Item.add_valuemethod. - Removed
Tag::add_itemmethod; useItem.add_valueinstead. - Added
Item::with_typemethod. - Added
Item::with_valuemethod. - Added
Item.get_typemethod. - Changed
Errorenum:- Removed:
FromUtf8,ParseInt - Added:
ParseItemKey,ParseItemBinary,ParseItemValue,ParseLyrics3V2SizeStr,ParseLyrics3V2SizeInt. - Changed:
BadItemType->InvalidItemType(u32).BadTagSize->InvalidTagSize.
- Removed:
0.5.0
- Add support for multiple values under same key
- Add
Tag::items()method. - Add
Tag::add_item()method. - Replace
Tag::remove_item()byTag::remove_items()method.
Tag::item()method returns a first found item.
Tag::set_item()removes all items under the given key and adds a new one.
- Add
- Derive
CloneforItemandItemValuestructs.
0.4.0
- Switched to 2021 edition.
- Updated byteorder to 1.4
- Support reading/writing/removing tags from opened files.
- Case insensitive key comparison.
- Support writing an empty tag.
0.3.0
- Switched to 2018 edition.
- Updated byteorder to 1.3
- Fixed type parameters in
Item::from_locatorandItem::from_text. - Removed use of deprecated
Error::description. - Lowercase error description.
Item::to_vecmethod is private now.- Removed
itemsfield from theTagstruct. - Added
Tag::iter()method. - Added
IntoIteratorimplementation forTagstruct. Tag::writemethod replaced bywritefunction.