ecto v3.7.1 Release Notes

Release Date: 2021-08-27 // about 2 months ago
  • ✨ Enhancements

    • [Ecto.Embedded] Make Ecto.Embedded public and describe struct fields

    🐛 Bug fixes

    • [Ecto.Repo] Make sure parent changeset is included in changes for insert/update/delete when there are errors processing the parent itself

Previous changes from v3.7.0

  • ✨ Enhancements

    • [Ecto.Changeset] Add Ecto.Changeset.traverse_validations/2
    • [Ecto.Enum] Add Ecto.Enum.mappings/2 and Ecto.Enum.dump_values/2
    • [Ecto.Query] Add support for dynamic as(^as) and parent_as(^as)
    • [Ecto.Repo] Add stale changeset to Ecto.StaleEntryError fields
    • [Ecto.Schema] Add support for @schema_context to set context metadata on schema definition

    🐛 Bug fixes

    • [Ecto.Changeset] Fix changeset inspection not redacting when embedded
    • [Ecto.Changeset] Use semantic comparison on validate_inclusion, validate_exclusion, and validate_subset
    • [Ecto.Enum] Raise on duplicate values in Ecto.Enum
    • [Ecto.Query] Make sure hints are included in the query cache
    • [Ecto.Repo] Support placeholders in insert_all without schemas
    • [Ecto.Repo] Wrap in a subquery when query given to Repo.aggregate has combination
    • [Ecto.Repo] Fix CTE subqueries not finding parent bindings
    • [Ecto.Repo] Return changeset with assocs if any of the assocs are invalid