Skip to content

Releases: martinohmann/hcl-rs

hcl-edit: v0.6.1

05 Jun 20:19
4da0192
Compare
Choose a tag to compare

0.6.1 (2023-06-05)

Features

  • structure: add Block::has_labels and Block::has_exact_labels (#237) (a2ed25f)

hcl-edit: v0.6.0

03 Jun 22:12
16d6c3d
Compare
Choose a tag to compare

0.6.0 (2023-06-03)

⚠ BREAKING CHANGES

  • structure: Various Body methods were changed to return AttributeMut<'a>/StructureMut<'a> instead of &'a mut Attribute/&'a mut Structure to prevent mutable access to attribute keys. The VisitMut trait was updated to reflect these changes as well.
  • visit: remove 'ast lifetime parameter from Visit and VisitMut
  • structure: make Structure::into_* return a Result

Features

  • structure: prevent duplicate attribute keys in Body (#236) (f11bc22)

Bug Fixes

  • structure: make Structure::into_* return a Result (f0792ef)
  • visit: remove 'ast lifetime parameter from Visit and VisitMut (8f3a83e)

hcl-edit: v0.5.4

15 May 18:13
ecebbf4
Compare
Choose a tag to compare

0.5.4 (2023-05-15)

Features

  • structure: add Attribute::has_key (930a511)
  • structure: add Block::has_ident (9799e4e)
  • structure: add Block::is_labeled (58f4cf6)
  • structure: add Body::has_{attribute,blocks} (8af4b19)

hcl-edit: v0.5.3

11 May 14:30
cd98e2d
Compare
Choose a tag to compare

0.5.3 (2023-05-11)

Bug Fixes

  • deps: unpin winnow version (ba4051a)

hcl-edit: v0.5.2

06 May 23:30
225b007
Compare
Choose a tag to compare

0.5.2 (2023-05-06)

Features

  • structure: add BlockBuilder and BodyBuilder (#227) (33462d0)
  • structure: add remove_* methods to Body (#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

06 May 11:26
3887c8d
Compare
Choose a tag to compare

0.5.1 (2023-05-06)

Bug Fixes

  • parser: error on duplicate attributes (#222) (b4e36af)

hcl-edit: v0.5.0

04 May 20:32
f635b78
Compare
Choose a tag to compare

0.5.0 (2023-05-04)

⚠ BREAKING CHANGES

  • structure: Block::new now only accepts a single ident argument. Set the block body, by updating body field of Block.
  • structure: The BlockBody and OnelineBody types were removed. Block now directly uses Body. One-line blocks can still be constructed by calling body.set_prefer_oneline(true).

Code Refactoring

  • structure: remove BlockBody and OnelineBody (#218) (1267054)
  • structure: remove body argument from Block::new (#220) (04c78f8)

hcl-rs: v0.14.2

03 May 06:12
e569d2e
Compare
Choose a tag to compare

0.14.2 (2023-05-02)

Features

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • hcl-primitives bumped from 0.0.3 to 0.1.0

hcl-primitives: v0.1.0

03 May 06:12
e569d2e
Compare
Choose a tag to compare

0.1.0 (2023-05-02)

⚠ BREAKING CHANGES

  • ident: Ident::new now returns Ident instead of Result<Ident, Error> and will panic if an invalid identifier is encountered. Use Ident::try_new instead to get the old behaviour.

Features

Bug Fixes

  • ident: make Ident::new panic on invalid identifier (#212) (bf8467a)

hcl-edit: v0.4.8

03 May 19:15
da7534a
Compare
Choose a tag to compare

0.4.8 (2023-05-03)

Features