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

Changelog History
Page 3

  • v3.5.2 Changes

    October 12, 2020

    โœจ Enhancements

    • [Ecto.Repo] Add Repo.reload/2 and Repo.reload!/2

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Fix "schema/1 is undefined or private" error while inspecting a schemaless changeset
    • [Ecto.Repo] Invoke c:Ecto.Repo.default_options/1 per entry-point operation
  • v3.5.1 Changes

    October 08, 2020

    โœจ Enhancements

    • [Ecto.Changeset] Warn if there are duplicate IDs in the parent schema for cast_assoc/3/cast_embed/3
    • [Ecto.Schema] Allow belongs_to to accept options for parameterized types

    ๐Ÿ› Bug fixes

    • [Ecto.Query] Keep field types when using a subquery with source
  • v3.5.0 Changes

    October 03, 2020

    v3.5 requires Elixir v1.8+.

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Ensure :empty_values in cast/4 does not automatically propagate to following cast calls. If you want a given set of :empty_values to apply to all cast/4 calls, change the value stored in changeset.empty_values instead
    • [Ecto.Changeset] Potentially breaking change: Do not force repository updates to happen when using optimistic_lock. The lock field will only be incremented if the record has other changes. If no changes, nothing happens.
    • [Ecto.Changeset] Do not automatically share empty values across cast/3 calls
    • [Ecto.Query] Consider query prefix in cte/combination query cache
    • [Ecto.Query] Allow the entry to be marked as nil when using left join with subqueries
    • [Ecto.Query] Support subqueries inside dynamic expressions
    • [Ecto.Repo] Fix preloading when using dynamic repos and the sandbox in automatic mode
    • [Ecto.Repo] Do not duplicate collections when associations are preloaded for repeated elements

    โœจ Enhancements

    • [Ecto.Enum] Add Ecto.Enum as a custom parameterized type
    • [Ecto.Query] Allow :prefix in from to be set to nil
    • [Ecto.Query] Do not restrict subqueries in where to map/struct types
    • [Ecto.Query] Allow atoms in query without interpolation in order to support Ecto.Enum
    • [Ecto.Schema] Do not validate uniqueness if there is a prior error on the field
    • [Ecto.Schema] Allow redact: true in field
    • [Ecto.Schema] Support parameterized types via Ecto.ParameterizedType
    • [Ecto.Schema] Rewrite embeds and assocs as parameterized types. This means __schema__(:type, assoc_or_embed) now returns a parameterized type. To check if something is an association, use __schema__(:assocs) or __schema__(:embeds) instead
  • v3.5.0-rc.1 Changes

    September 19, 2020

    โœจ Enhancements

    • [Ecto.Enum] Add Ecto.Enum.values/2 helper
    • [Ecto.Query] Allow :prefix in from to be set to nil
    • [Ecto.Query] Allow atoms in query without interpolation in order to support Ecto.Enum

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Do not automatically share empty values across cast/3 calls
    • [Ecto.ParameterizedType] Add autogenerate/1 as optional callback
    • [Ecto.Query] Consider query prefix in cte/combination query cache
    • [Ecto.Repo] Fix preloading when using dynamic repos and the sandbox in automatic mode
    • [Ecto.Schema] Also redact virtual fields
  • v3.5.0-rc.0 Changes

    August 31, 2020

    v3.5 requires Elixir v1.8+.

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Ensure :empty_values in cast/4 does not automatically propagate to following cast calls. If you want a given set of :empty_values to apply to all cast/4 calls, change the value stored in changeset.empty_values instead
    • [Ecto.Changeset] Do not force repository updates to happen when using optimistic_lock

    โœจ Enhancements

    • [Ecto.Enum] Add Ecto.Enum as a custom parameterized type
    • [Ecto.Query] Do not restrict subqueries in where to map/struct types
    • [Ecto.Schema] Do not validate uniqueness if there is a prior error on the field
    • [Ecto.Schema] Allow redact: true in field
    • [Ecto.Schema] Support parameterized types via Ecto.ParameterizedType
  • v3.4.6 Changes

    August 07, 2020

    โœจ Enhancements

    • [Ecto.Query] Allow count/0 on type/2
    • [Ecto.Multi] Support anonymous functions in multiple functions

    ๐Ÿ› Bug fixes

    • [Ecto.Query] Consider booleans as literals in unions, subqueries, ctes, etc
    • [Ecto.Schema] Generate IDs for nested embeds
  • v3.4.5 Changes

    June 14, 2020

    โœจ Enhancements

    • [Ecto.Changeset] Allow custom error key in unsafe_validate_unique
    • [Ecto.Changeset] Improve performance when casting large params maps

    ๐Ÿ› Bug fixes

    • [Ecto.Changeset] Improve error message for invalid cast_assoc
    • [Ecto.Query] Fix inspecting query with fragment CTE
    • [Ecto.Query] Fix inspecting dynamics with aliased bindings
    • [Ecto.Query] Improve error message when selecting a single atom
    • [Ecto.Repo] Reduce data-copying when preloading multiple associations
    • [Ecto.Schema] Do not define a compile-time dependency for schema in :join_through
  • v3.4.4 Changes

    May 11, 2020

    โœจ Enhancements

    • [Ecto.Schema] Add join_where support to many_to_many
  • v3.4.3 Changes

    April 27, 2020

    โœจ Enhancements

    • [Ecto.Query] Support as/1 and parent_as/1 for lazy named bindings and to allow parent references from subqueries
    • [Ecto.Query] Support x in subquery(query)

    ๐Ÿ› Bug fixes

    • [Ecto.Query] Do not raise for missing assocs if :force is given to preload
    • [Ecto.Repo] Return error from Repo.delete on invalid changeset from prepare_changeset
  • v3.4.3-dev Changes

    April 19, 2020

    โœจ Enhancements

    • [Ecto.Query] Support as/1 and parent_as/1 for lazy named bindings and to allow parent references from subqueries

    ๐Ÿ› Bug fixes

    • [Ecto.Query] Do not raise for missing assocs if :force is given to preload
    • [Ecto.Repo] Return error from Repo.delete on invalid changeset from prepare_changeset