View Source Changelog
v0-4-4
v0.4.4
- Bug fix
- Fixed merging of more complex fields like
embeds_one
- Fixed merging of more complex fields like
v0-4-3
v0.4.3
- Bug fix
- Fixed
EctoDiscriminator.Schema.to_base/2
to properly pass nil values
- Fixed
v0-4-2
v0.4.2
- Bug fix
- Fixed
diverged_changeset/2
to properly calculate default values
- Fixed
v0-4-1
v0.4.1
- Bug fix
- Fixed definition of fields in diverged schema to allow more complex relationships definitions
v0-4-0
v0.4.0
Enhancements
- You can transform diverged schema to its base by calling
DivergedSchema.to_base(%DivergedSchema{})
- You can transform diverged schema to its base by calling
Bug fix
- Fixed
__meta__[:state]
for entities loaded from DB
- Fixed
v0-3-3
v0.3.3
- Bug fix
- Fixed situations where
diverged_changeset/2
was returning incorrect owners of relationships
- Fixed situations where
v0-3-2
v0.3.2
Enhancements
- You can get list of all diverged schemas by calling
BaseSchema.__schema__(:diverged)
- You can get list of all diverged schemas by calling
Bug fix
- Fixed situations where
diverged_changeset/2
may have been receiving different structs
- Fixed situations where
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