Releases: ejpcmac/typed_struct
Releases · ejpcmac/typed_struct
0.3.0
Added
- [Plugin] Add the
field/4
callback with an additionalenv
argument. This is
the same asfield/3
but gives access to the environment of the field
definition.
Deprecated
- [Plugin] Deprecate the
field/3
callback in favour offield/4
. You should
migrate tofield/4
, simply by adding_env
as the last argument in your
implementation. Currently, if a plugin implementsfield/3
,field/4
is
derived from it and a compilation warning is emitted.field/3
will 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
0.2.1
Added
- Add the
module: ModuleName
top-level option to create the typed struct in a
submodule.
Changed
- Update the
@typedoc
example in the documentation to put it inside the
typedstruct
block and not above. While putting it above works in the
general case, it is mandatory to put it inside the block when defining a
submodule.
0.2.0
Added
- Add a plugin API.
Removed
- Remove reflection support through the
__keys__/0
,__defaults__/0
and
__types__/0
function which where defined by TypedStruct in the user
modules. If you rely on these functions, please use the
TypedStructLegacyReflection
plugin to enable them again, and consider creating a plugin for your needs.