View Source Changelog
v0-3-1
v0.3.1
Enhancements
- Added support for inheritance of
@derive
. Now you don't have to duplicate declarations for things likeJason.Encoder
- Added support for inheritance of
Bug fix
- Fixed value of
__meta__
after runningdiverged_changeset/2
- Fixed value of
v0-3-0
v0.3.0
- Breaking changes
- Renamed
EctoDiscriminator.DiscriminatorSchema
toEctoDiscriminator.DiscriminatorChangeset
since it focuses on adding extra functionality to the changesets rather than schemas
- Renamed
v0-2-9
v0.2.9
- Bug fix
- Fixed usage of macros inside
schema
definition
- Fixed usage of macros inside
v0-2-8
v0.2.8
- Enhancements
- Discriminator can now be a
virtual
field. This is useful when table is referenced by other table(s)
- Discriminator can now be a
v0-2-7
v0.2.7
- Enhancements
- Discriminator field name inside
diverged_changeset/2
can be now determined from struct/changeset field - Overriden fields with matching types will have their options merged
- Discriminator field name inside
v0-2-6
v0.2.6
- Bug fix
- Changed way how
DiscriminatorChangeset
is used. It should be more flexible now. Previously sometimes the changes weren't properly reflected
- Changed way how
v0-2-5
v0.2.5
- Bug fix
- Fixed
diverged_changeset/2
default implementation. Previous logic wasn't creating proper diverged struct.
- Fixed
v0-2-4
v0.2.4
- Enhancements
- Added documentation for the project
cast_base/3
now won't return changes for overriden fields due to possible type differences.
v0-2-3
v0.2.3
- Enhancements
- Major refactor of
EctoDiscriminator.Schema
- Major refactor of