ecto v3.1.0 Release Notes

Release Date: 2019-04-02 // almost 5 years ago
  • v3.1 requires Elixir v1.5+.

    โœจ Enhancements

    • [Ecto.Changeset] Add not_equal_to option for validate_number
    • [Ecto.Query] Improve error message for missing fragment arguments
    • [Ecto.Query] Improve error message on missing struct key for structs built in select
    • [Ecto.Query] Allow dynamic named bindings
    • [Ecto.Repo] Add dynamic repository support with Ecto.Repo.put_dynamic_repo/1 and Ecto.Repo.get_dynamic_repo/0 (experimental)
    • [Ecto.Type] Cast naive_datetime/utc_datetime strings without seconds

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Do not run unsafe_validate_unique query unless relevant fields were changed
    • [Ecto.Changeset] Raise if an unknown field is given on Ecto.Changeset.change/2
    • [Ecto.Changeset] Expose the type that was validated in errors generated by validate_length/3
    • [Ecto.Query] Add support for field/2 as first element of type/2 and alias as second element of type/2
    • [Ecto.Query] Do not attempt to assert types of named bindings that are not known at compile time
    • [Ecto.Query] Properly cast boolean expressions in select
    • [Mix.Ecto] Load applications during repo lookup so their app environment is available

    ๐Ÿ—„ Deprecations

    • [Ecto.LogEntry] Fully deprecate previously soft deprecated API