Skip to content

v2.0.0

Choose a tag to compare

@artemeff artemeff released this 08 Nov 12:36
f2a023c

Enhancements

  • Functions as default values
  • Structs created from Kernel.struct/1,2 and make/1,2 are now equal
  • Structs with required fields return error when creating from Kernel.struct/1,2
  • __construct__(:types) returns types with defined options %{name => {type, opts}}
  • Improve decimals and datetimes handling
  • Performance of Construct.Cast is increased by almost 1.5x times

Bug fixes

  • Fix define structure via using

Hard-deprecations

  • Remove __structure__/1 and __structure__/2, use __construct__(:types) instead