- Default value for polymorphic list of embeds is
[]instead ofnil(followingembeds_many/3)
- Use
polymorphic_embeds_one/2andpolymorphic_embeds_many/2macros instead offield/3
- Support IDs
- Make sure that every existing polymorphic
embedded_schemacontains the setting@primary_key false
- Add
polymorphic_embed_inputs_for/2for displaying forms in LiveView - Add
polymorphic_embed_inputs_for/3for displaying forms in Phoenix templates without needing to specify the type
- Add
PolymorphicEmbed.types/2function returning the possible types for a polymorphic field
- Add
:nilifyand:ignorefor:on_type_not_foundoption
- Support the SQLite3 Ecto adapter
ecto_sqlite3
- Fix errors in form for
embeds_onenested intopolymorphic_embed - Refactor
PolymorphicEmbed.HTML.Form
- Add
traverse_errors/2
- Support custom changeset functions through
:withoption
- Add
:requiredoption
- Support custom type field
- Support list of polymorphic embeds
- Force
:on_replaceoption to be explicitly set