Skip to content

Releases: martinohmann/hcl-rs

v0.8.0

29 Sep 18:03
a3003b0
Compare
Choose a tag to compare

0.8.0 (2022-09-29)

⚠ BREAKING CHANGES

  • The Number type was changed from an enum to an opaque struct. Use Number::from to create a number from an integer. Furthermore, the From implementations for f32 and f64 were removed. Use the newly added Number::from_f64 instead.
  • The RawExpression and String variants of the ObjectKey enum were removed in favor of the newly added Expression variant. Furthermore the methods Object::raw_expression and ObjectKey::string were removed. Use ObjectKey::from instead.
  • The underlying map implementation for the Object<K, V> type changed from IndexMap<K, V> to VecMap<K, V>. For the most common operations this is a drop-in replacement, but VecMap lacks some of the more exotic APIs the IndexMap provides.
  • Heredocs and quoted strings containing template interpolations and/or template directives are not parsed as Expression::String anymore, but end up as Expression::TemplateExpr (which can be further parsed into the template elements via Template::from_expr) instead. Expressions of kind Expression::String are guaranteed to not include any templating anymore.

Features

Bug Fixes

  • allow - in identifiers (be06f53)
  • always do f64 division (5591e22)
  • correctly handle Expression::Null in serializer (ae74def)
  • correctly handle Expression variants in ExpressionSerializer (#71) (8d89437)
  • prevent creation of infinite and NaN Number (#74) (f751fc0)
  • use correct deserializer for index element access (#67) (f7bdd5c)

Miscellaneous

  • deps: bump vecmap-rs to 0.1.3 (5670415)

v0.7.0

06 Sep 20:35
0e21d25
Compare
Choose a tag to compare

0.7.0 (2022-09-01)

⚠ BREAKING CHANGES

  • this breaks some public APIs.

Bug Fixes

  • derive Eq where suggested by clippy (307cc2c)

refactor

  • move formatter into format module (#55) (ec98979)

Miscellaneous

  • deps: bump actions/cache from 3.0.5 to 3.0.7 (#53) (77e2c70)
  • deps: bump actions/cache from 3.0.7 to 3.0.8 (#59) (f78e16e)

v0.6.5

19 Aug 22:12
23ebd61
Compare
Choose a tag to compare

0.6.5 (2022-08-19)

Miscellaneous

  • deps: bump actions/cache from 3.0.4 to 3.0.5 (#48) (530fee4)
  • deps: bump pest from 2.1.3 to 2.2.1 (#52) (555b7e4)

v0.6.4

30 Jul 20:58
ebd6fe5
Compare
Choose a tag to compare

0.6.4 (2022-07-30)

Bug Fixes

  • parse negate operations on numbers as negative numbers (#46) (74eb690)

Miscellaneous

  • remove unused lifetimes (62e75f0)

v0.6.3

30 Jul 19:03
8795f15
Compare
Choose a tag to compare

0.6.3 (2022-07-30)

Bug Fixes

  • ! is not a logic operator (5012034)
  • correctly handle ExprTerm traversal (#42) (8dc0f88)
  • disable flaky specsuite test (cd19180)
  • implement deserialize_option for ValueDeserializer (#45) (2ddf40f)

v0.6.2

13 Jul 20:08
fe0f906
Compare
Choose a tag to compare

0.6.2 (2022-07-13)

Bug Fixes

  • handle escaped newlines in heredocs (#41) (82849f1)

Miscellaneous

  • deps: bump actions/cache from 3.0.3 to 3.0.4 (#39) (1ba1301)

v0.6.1

12 Jun 17:27
509d6ce
Compare
Choose a tag to compare

0.6.1 (2022-06-12)

Bug Fixes

  • macros: use structure! macro inside of body! macro (1d9a00c)

v0.6.0

10 Jun 10:53
05e56d8
Compare
Choose a tag to compare

0.6.0 (2022-06-10)

Features

v0.5.2

06 Jun 11:17
c839e60
Compare
Choose a tag to compare

0.5.2 (2022-06-06)

Bug Fixes

v0.5.1

05 Jun 08:26
91ada22
Compare
Choose a tag to compare

0.5.1 (2022-06-04)

Bug Fixes

  • serializer: do not emit newline if block body is empty (#32) (a36fa7d)