Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Aug 19, 2024
1 parent 05c0ffc commit aaec135
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

## Unreleased

## [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.

```diff
[
- 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]}`.

## [0.26.0] - 2024-08-18

### Removed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ file:
```elixir
def deps do
[
{:flop, "~> 0.26.0"}
{:flop, "~> 0.26.1"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Flop.MixProject do
use Mix.Project

@source_url "https://github.com/woylie/flop"
@version "0.26.0"
@version "0.26.1"

def project do
[
Expand Down

0 comments on commit aaec135

Please sign in to comment.