uuidv7
uuidv7 copied to clipboard
Bump ecto from 3.11.2 to 3.12.1
Bumps ecto from 3.11.2 to 3.12.1.
Changelog
Sourced from ecto's changelog.
v3.12.1 (2024-08-13)
Enhancements
- [Ecto.Type] Add
Ecto.Type.parameterized?/2
Bug fixes
- [Ecto.Enum] Fix dialyzer specification
- [Ecto.Query] Remove incorrect subquery parameter check
v3.12.0 (2024-08-12)
Enhancements
- [Ecto.Changeset] Allow
{message, opts}
to be given as message for several validation APIs- [Ecto.Query] Introduce
is_named_binding
guard- [Ecto.Query] Subqueries are now supported in
distinct
,group_by
,order_by
andwindow
expressions- [Ecto.Query] Allow
select_merge
to be used in moreinsert_all
and subquery operations by merging distinct fields- [Ecto.Query] Allow literal maps inside
dynamic/2
- [Ecto.Query] Support macro expansion at the root level of
order_by
- [Ecto.Query] Support preloading subquery sources in
from
andjoin
- [Ecto.Query] Allow map updates with dynamic values in
select
- [Ecto.Query] Allow any data structure that implements the Enumerable protocol on the right side of
in
- [Ecto.Repo] Support 2-arity preload functions that receive ids and the association metadata
- [Ecto.Repo] Allow Hot Updates on upsert queries in Postgres by removing duplicate fields during replace_all
- [Ecto.Repo]
insert_all
supports queries with only source- [Ecto.Repo]
insert_all
supports queries with the update syntax- [Ecto.Repo] Support
:allow_stale
on Repo struct/changeset operations- [Ecto.Schema] Allow schema fields to be read-only via
:writable
option- [Ecto.Schema] Add
:defaults_to_struct
option toembeds_one
- [Ecto.Schema] Support
:duration
type which maps to Elixir v1.17 duration- [Ecto.Type] Bubble up custom cast errors of the inner type for
{:map, type}
and{:array, type}
- [Ecto.Type] Add
Ecto.Type.cast!/2
Bug fixes
- [Ecto.Query] Ignore query prefix in CTE sources
- [Ecto.Query] Fix a bug of
preload
when a through association is used in a join and has a nested separate query preload. Now the association chain is no longer preloaded and we simply preload directly onto the loaded through association.- [Ecto.Query] Validate
:prefix
is a string/binary, warn otherwise- [Ecto.Query] Fix inspection when select has
map/struct
modifiers- [Ecto.Query] Disable query cache for
values
lists- [Ecto.Repo] Convert fields to their sources in
insert_all
- [Ecto.Repo] Raise if empty list is given to
{:replace, fields}
- [Ecto.Repo] Validate
:prefix
is a string/binary, warn otherwise- [Ecto.Repo] Remove compile dependency on
:preload_order
MFA inhas_many
Adapter changes
distinct
,group_by
,order_by
andwindow
expressions use the newEcto.Query.ByExpr
... (truncated)
Commits
e753d29
Release v3.12.1fc179e0
Revert "Allow literal struct ininsert_all
+ add recent changes to docs (#4...551b2eb
Add missing anchors in docs (#4491)d505995
Remove incorrect subquery parameter check (#4490)92f07d8
Allow literal struct ininsert_all
+ add recent changes to docs (#4489)68c67d6
AddEcto.Type.parameterized?/2
(#4488)df967cc
Fix Ecto.Enum.mappings/2 and Ecto.Enum.values/2 specs (#4487)5f1eefc
Update schema.ex (#4485)1dd86e6
Release v3.12.06f065b2
Update CHANGELOG- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)