# Changelog

## 2.0.x

  * Support IDs

### Migration from 1.x to 2.x

  * Make sure that every existing polymorphic `embedded_schema` contains the setting `@primary_key false`

## 1.10.x

  * Add `polymorphic_embed_inputs_for/2` for displaying forms in LiveView
  * Add `polymorphic_embed_inputs_for/3` for displaying forms in Phoenix templates without
    needing to specify the type

## 1.9.x

  * Add `PolymorphicEmbed.types/2` function returning the possible types for a polymorphic field

## 1.8.x

  * Add `:nilify` and `:ignore` for `:on_type_not_found` option

## 1.7.x

  * Support the SQLite3 Ecto adapter `ecto_sqlite3`

## 1.6.x

  * Fix errors in form for `embeds_one` nested into `polymorphic_embed`
  * Refactor `PolymorphicEmbed.HTML.Form`

## 1.5.x

  * Add `traverse_errors/2`

## 1.4.x

  * Support custom changeset functions through `:with` option

## 1.3.x

  * Add `:required` option

## 1.2.x

  * Support custom type field

## 1.1.x

  * Support list of polymorphic embeds
  * Force `:on_replace` option to be explicitly set
