Skip to content

Releases: ProtixIT/dataclass-binder

v0.3.4

18 Aug 01:06
Compare
Choose a tag to compare
  • Support pathlib.Path as a field annotation (#40)

v0.3.3

31 Jul 13:46
Compare
Choose a tag to compare
  • Add Binder.format_toml() method to generate more compact TOML that excludes unused optional parts (#38)

v0.3.2

27 Jul 01:33
Compare
Choose a tag to compare
  • Document fields with a default_factory as optional in template (#35)
  • Omit values that are formatted equally to the default (#36)
  • Require optional fields to have None as their default (#37)

v0.3.1

17 Jul 14:18
Compare
Choose a tag to compare
  • Generate template in depth-first order (#28)
  • Fix binder creation and formatting for recursive dataclasses (#28)

v0.3.0

13 Jul 00:30
Compare
Choose a tag to compare
  • Replace format_template() function by Binder.format_toml_template() method (#23)
  • Format nested dataclasses as TOML tables (#25)
  • Format untyped mappings and sequences as TOML tables (#27)
  • Fix formatting of init=False field in nested dataclasses (#22)
  • Fix annotation evaluation on inherited dataclasses (#21)

v0.2.0

26 Jun 06:27
Compare
Choose a tag to compare
  • Instantiate Binder instead of specializing it (#14)
    This is an API change, but the old syntax is still supported. The details can be found in the README.
  • Support typing.Any as a field annotation (#10)
  • Fix crash in format_template() on optional fields with non-string annotations (#16)

v0.1.3

05 Mar 09:05
36c2fa2
Compare
Choose a tag to compare
  • Ignore dataclass fields with init=False (#2)

v0.1.2

03 Mar 15:44
f54dceb
Compare
Choose a tag to compare
  • Fix get() and [] on object bound to read-only mapping (#6)

v0.1.1

22 Feb 17:06
71adf6a
Compare
Choose a tag to compare

What's Changed

  • Relax Binder.bind() argument type to Mapping by @mthuurne in #4

Full Changelog: v0.1.0...v0.1.1

v0.1.0

21 Feb 20:37
Compare
Choose a tag to compare

First open source release