All Versions
62
Latest Version
Avg Release Cycle
34 days
Latest Release
716 days ago

Changelog History
Page 1

  • v3.9.2 Changes

    November 18, 2022

    โœจ Enhancements

    • [Ecto.Query] Allow selected_as inside CTE
    • [Ecto.Query] Allow selected_as to be used in subquery

    ๐Ÿ› Bug fixes

    • [Ecto.Repo] Fix preloading through associations on nil
    • [Ecto.Query] Fix select merging a selected_as field into a source
  • v3.9.1 Changes

    October 06, 2022

    โœจ Enhancements

    • [Ecto.Query] Allow selected_as at the root of dynamic/2
    • [Ecto.Query] Allow selected_as to be used with type/2
    • [Ecto.Query] Allow selected_as to be used with select_merge

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Reenable support for embedded schemas in unsafe_validate_unique/4
    • [Ecto.Query] Ensure join_where conditions preload correctly in many_to_many or with queries with one or many joins
  • v3.9.0 Changes

    September 27, 2022

    โœจ Enhancements

    • [Ecto.Changeset] Add :force_changes option to cast/4
    • [Ecto.Enum] Allow enum fields to be embed either as their values or their dumped versions
    • [Ecto.Query] Support ^%{field: dynamic(...)} in select and select_merge
    • [Ecto.Query] Support %{field: subquery(...)} in select and select_merge
    • [Ecto.Query] Support select aliases through selected_as/1 and selected_as/2
    • [Ecto.Query] Allow parent_as/1 in type/2
    • [Ecto.Query] Add with_named_binding/3
    • [Ecto.Query] Allow fragment sources in keyword queries
    • [Ecto.Repo] Support idle_interval query parameter in connection URL
    • [Ecto.Repo] Log human-readable UUIDs by using pre-dumped query parameters
    • [Ecto.Schema] Support preloading associations in embedded schemas

    ๐Ÿ› Bug fix

    • [Ecto.Changeset] Raise when schemaless changeset or embedded schema is used in unsafe_validate_unique/4
    • [Ecto.Query] Respect virtual field type in subqueries
    • [Ecto.Query] Don't select struct fields overridden with nil
    • [Ecto.Query] Fix select_merge not tracking load_in_query: false field
    • [Ecto.Query] Fix field source when used in json_extract_path
    • [Ecto.Query] Properly build CTEs at compile time
    • [Ecto.Query] Properly order subqueries in dynamic
    • [Ecto.Repo] Fix insert_all query parameter count when using value queries alongside placeholder
    • [Ecto.Repo] Raise if combination query is used in a many preload
    • [Ecto.Schema] Ignore associations that aren't loaded on insert
  • v3.8.4 Changes

    June 04, 2022

    โœจ Enhancements

    • [Ecto.Multi] Add one/2 and all/2 functions
    • [Ecto.Query] Support literal(...) in fragment

    ๐Ÿ› Bug fix

    • [Ecto.Schema] Make sure fields are inspected in the correct order in Elixir v1.14+
  • v3.8.3 Changes

    May 11, 2022

    ๐Ÿ› Bug fix

    • [Ecto.Query] Allow source aliases to be used in type/2
    • [Ecto.Schema] Avoid "undefined behaviour/struct" warnings and errors during compilation
  • v3.8.2 Changes

    May 05, 2022

    ๐Ÿ› Bug fix

    • [Ecto.Adapter] Do not require adapter metadata to be raw maps
    • [Ecto.Association] Respect join_where in many to many on_replace deletes
    • [Ecto.Changeset] Check if list is in empty_values before nested validations
  • v3.8.1 Changes

    April 27, 2022

    ๐Ÿ› Bug fix

    • [Ecto.Query] Fix regression where a join's on parameter on update_all was out of order
  • v3.8.0 Changes

    April 26, 2022

    Ecto v3.8 requires Elixir v1.10+.

    โœจ Enhancements

    • [Ecto] Add new Embedded chapter to Introductory guides
    • [Ecto.Changeset] Allow custom :error_key in unique_constraint
    • [Ecto.Changeset] Add :match option to all constraint functions
    • [Ecto.Query] Support dynamic aliases
    • [Ecto.Query] Allow using type/2 with virtual fields
    • [Ecto.Query] Suggest alternatives to inexistent fields in queries
    • [Ecto.Query] Support passing queries using subqueries to insert_all
    • [Ecto.Repo] Allow stacktrace: true so stacktraces are included in telemetry events and logs
    • [Ecto.Schema] Validate options given to schema fields

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Address regression on validate_subset no longer working with custom array types
    • [Ecto.Changeset] Potentially breaking change: Detect empty_values inside lists when casting. This may cause issues if you were relying on the casting of empty values (by default, only "").
    • [Ecto.Query] Handle atom list sigils in select
    • [Ecto.Query] Improve tracking of select_merge inside subqueries
    • [Ecto.Repo] Properly handle literals in queries given to insert_all
    • [Ecto.Repo] Don't surface persisted data as changes on embed updates
    • [Ecto.Repo] Potentially breaking change: Raise if an association doesn't have a primary key and is preloaded in a join query. Previously, this would silently produce the wrong the result in certain circumstances.
    • [Ecto.Schema] Preserve parent prefix on join tables
  • v3.7.2 Changes

    March 13, 2022

    โœจ Enhancements

    • [Ecto.Schema] Add option to skip validations for default values
    • [Ecto.Query] Allow coalesce in type/2
    • [Ecto.Query] Support parameterized types in type/2
    • [Ecto.Query] Allow arbitrary parentheses in query expressions
  • v3.7.1 Changes

    August 27, 2021

    โœจ 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