Releases: martinohmann/hcl-rs
Releases · martinohmann/hcl-rs
hcl-edit: v0.6.2
hcl-edit: v0.6.1
hcl-edit: v0.6.0
0.6.0 (2023-06-03)
⚠ BREAKING CHANGES
- structure: Various
Body
methods were changed to returnAttributeMut<'a>
/StructureMut<'a>
instead of&'a mut Attribute
/&'a mut Structure
to prevent mutable access to attribute keys. TheVisitMut
trait was updated to reflect these changes as well. - visit: remove
'ast
lifetime parameter fromVisit
andVisitMut
- structure: make
Structure::into_*
return aResult
Features
Bug Fixes
hcl-edit: v0.5.4
hcl-edit: v0.5.3
hcl-edit: v0.5.2
0.5.2 (2023-05-06)
Features
- structure: add
BlockBuilder
andBodyBuilder
(#227) (33462d0) - structure: add
remove_*
methods toBody
(#228) (7b37763) - structure: add getters for body structures (#226) (2d08db1)
- structure: add iterator methods for attributes and blocks to
Body
(#224) (c968d78)
Bug Fixes
- structure: use correct position in removal operations (44b096b)
hcl-edit: v0.5.1
hcl-edit: v0.5.0
0.5.0 (2023-05-04)
⚠ BREAKING CHANGES
- structure:
Block::new
now only accepts a singleident
argument. Set the block body, by updatingbody
field ofBlock
. - structure: The
BlockBody
andOnelineBody
types were removed.Block
now directly usesBody
. One-line blocks can still be constructed by callingbody.set_prefer_oneline(true)
.
Code Refactoring
hcl-rs: v0.14.2
hcl-primitives: v0.1.0
0.1.0 (2023-05-02)
⚠ BREAKING CHANGES
- ident:
Ident::new
now returnsIdent
instead ofResult<Ident, Error>
and will panic if an invalid identifier is encountered. UseIdent::try_new
instead to get the old behaviour.