2023_10_23
- Fixed an issue where FrontMatter file YAML parsing was too eager in
LocalProvider
2023_10_22
- Fixed an issue where sorting did not work when the data type was
usize
- Renamed
RecordSortOrder::Custom
toRecordSortOrder::CustomStr
forString
types - Added
RecordSortOrder::CustomNum
forusize
types
2023_10_22
Fixed an issue with multi-item YAML parsing from FrontMatter files that resulted in no data being returned.
2023_10_22
YAML data is now untagged, meaning no need to use YAML tags to specify data type, the parser will figure it out for you.
2023_10_21
Method name changes
The following methods have been renamed:
when_isnt
is nowwhen_is_not
when_hasnt
is nowwhen_has_not
YAML and FrontMatter data improvements
YAML parsing has much improved. When previously YAML parsing only supported HashMap<String, String>
, as in key: value, and nothing else, then now the YAML parser supports a variety of new data structures such as usize
, bool
, Vec
and HashMap
.
2023-10-15
No more set_store
method.
Store providers are no longer hardcoded, meaning that you can now use your own providers as long as they implement the StoreProvider
trait. This change also brings with it a breaking API change, meaning you now have to initiate Siena with siena(...provider)
instead of Siena::default().set_store()
that you had to do before.
Custom ordering with RecordSortOrder::Custom
There is an additional enum for RecordSortOrder
, which allows you to pass a closure that takes in a
and b
and returns a
custom Ordered
, so that you can do your own sorting.
Delete records with the delete
method
I can't believe I forgot to implement this previously, but the StoreProvider
trait now expects a delete
method implementation, and the LocalProvider
now also implements it, meaning that you can call delete()
on the queried items to delete them much in the same way as you'd call set()
to store/update them.
2022-09-19
- Added the ability to
sort
records using the system-levelid
.
2022-09-19
- Added Serde's
Serialize
andDeserialize
derives to theRecord
struct. - Added the ability to use
when_*
filtering on the system-levelid
value.
2022-09-18
- First release ready for mass consumption.