New
0.3.0
Added
- [Plugin] Add the
field/4callback with an additionalenvargument. This is the same asfield/3but gives access to the environment of the field definition.
Deprecated
- [Plugin] Deprecate the
field/3callback in favour offield/4. You should migrate tofield/4, simply by adding_envas the last argument in your implementation. Currently, if a plugin implementsfield/3,field/4is derived from it and a compilation warning is emitted.field/3will be removed in TypedStruct 1.0.0.
Removed
- Drop support for unsupported Elixir versions in the tests and CI. The library may still be compatible, but this is not tested.
Fixed
- Fix the lexical scope of the
typestructblock, so it covers it completely. Previously, anything defined inside thetypedstructblock, such as aliases, would not be available for the field definitions. See #22 and #21 for details. - Fix a typo in the documentation.