woylie / flop_phoenix

Components for pagination, sortable tables and filter forms using Phoenix, Ecto and Flop
MIT License
406 stars 44 forks source link

Bump flop from 0.26.0 to 0.26.1 #365

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

Bumps flop from 0.26.0 to 0.26.1.

Release notes

Sourced from flop's releases.

0.26.1

Fixed

  • Fixed allowed operators for Ecto.Enum fields in Ecto 3.12.
  • Fixed type expansion when passing values with shortened syntax to Flop.Filter.expand_type/1.
  • Updated documentation example for setting ecto_type to parameterized types.

Upgrade Guide

If you pass a parameterized type as ecto_type option, ensure that you use Ecto.ParameterizedType.init/2 instead of using the tuple representation as suggested in the documentation before. The tuple representation is an internal representation of Ecto and was changed in Ecto 3.12.

[
-  ecto_type: {:parameterized, Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}
+  ecto_type: Ecto.ParameterizedType.init(Ecto.Enum, values: [:one, :two])
]

For Ecto.Enum specifically, you can also use the short syntax {:ecto_enum, [:one, :two]}.

Changelog

Sourced from flop's changelog.

[0.26.1] - 2024-08-19

Fixed

  • Fixed allowed operators for Ecto.Enum fields in Ecto 3.12.
  • Fixed type expansion when passing values with shortened syntax to Flop.Filter.expand_type/1.
  • Updated documentation example for setting ecto_type to parameterized types.

Upgrade Guide

If you pass a parameterized type as ecto_type option, ensure that you use Ecto.ParameterizedType.init/2 instead of using the tuple representation as suggested in the documentation before. The tuple representation is an internal representation of Ecto and was changed in Ecto 3.12.

[
-  ecto_type: {:parameterized, Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}
+  ecto_type: Ecto.ParameterizedType.init(Ecto.Enum, values: [:one, :two])
]

For Ecto.Enum specifically, you can also use the short syntax {:ecto_enum, [:one, :two]}.

Commits
  • dacfe88 update doc
  • aaec135 bump version
  • 05c0ffc Merge pull request #490 from martosaur/am/parameterized_type
  • d2e2a58 add test for ecto enum operators
  • 1c1ef1e fix type expansion in allowed_operators/1
  • ef211b7 fix coveralls stop comments
  • 6280423 Change docs and tests to use new style parameterized types
  • See full diff in compare view


Dependabot compatibility score

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 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)
coveralls commented 3 months ago

Coverage Status

coverage: 98.617%. remained the same when pulling b76dbd9ff303da8c84ab64ef1841105a36302bbf on dependabot/hex/flop-0.26.1 into 6d7c4d719f4da017b909c354bb257544e4fc0904 on main.