Skip to content

Bump flop from 0.28.0 to 0.29.0 - #4800

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/flop-0.29.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/flop-0.29.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 19, 2026

Copy link
Copy Markdown
Contributor

Bumps flop from 0.28.0 to 0.29.0.

Release notes

Sourced from flop's releases.

0.29.0

Added

  • Add Flop.allowed_fields/2, which returns the fields that may be filtered or sorted for the given options.
  • Add Flop.Schema.flop_schema!/1, which returns the configuration of a schema module.
  • Add Flop.Cursor.get_cursor_from_node/3 and Flop.Cursor.get_cursor_from_edge/3, which take the query options and resolve a field against the schema given as :for.
  • Accept an arity-3 cursor_value_func, which also receives the options the query ran with.

Changed

  • Turn Flop.Schema from a protocol into a behaviour. Schemas are configured with use Flop.Schema and the @flop_options attribute now.
  • Take the schema module instead of a struct in Flop.Schema.field_info/2, Flop.Schema.get_field/3 and Flop.Schema.primary_key/1.
  • Default cursor_value_func to Flop.Cursor.get_cursor_from_node/3.

Removed

  • Remove default_limit/1, default_order/1, default_pagination_type/1, filterable/1, max_filters/1, max_limit/1, pagination_types/1, sortable/1 and tiebreaker/1 from Flop.Schema.

Fixed

  • Do not make a module named in an ecto_type a compile-time dependency of the schema.
  • Read a cursor value through the schema given as :for, so that a field's :path is applied when the query returns plain maps rather than structs.

How to upgrade

Change your code to use Flop.Schema and set the options as @flop_options instead of using @derive to derive the protocol.

 defmodule MyApp.Pet do
   use Ecto.Schema
+  use Flop.Schema

@​derive {
Flop.Schema,
filterable: [:name, :species],
sortable: [:name, :age]
}


@​flop_options [
</tr></table>

... (truncated)

Changelog

Sourced from flop's changelog.

[0.29.0] - 2026-09-03

Added

  • Add Flop.allowed_fields/2, which returns the fields that may be filtered or sorted for the given options.
  • Add Flop.Schema.flop_schema!/1, which returns the configuration of a schema module.
  • Add Flop.Cursor.get_cursor_from_node/3 and Flop.Cursor.get_cursor_from_edge/3, which take the query options and resolve a field against the schema given as :for.
  • Accept an arity-3 cursor_value_func, which also receives the options the query ran with.

Changed

  • Turn Flop.Schema from a protocol into a behaviour. Schemas are configured with use Flop.Schema and the @flop_options attribute now.
  • Take the schema module instead of a struct in Flop.Schema.field_info/2, Flop.Schema.get_field/3 and Flop.Schema.primary_key/1.
  • Default cursor_value_func to Flop.Cursor.get_cursor_from_node/3.

Removed

  • Remove default_limit/1, default_order/1, default_pagination_type/1, filterable/1, max_filters/1, max_limit/1, pagination_types/1, sortable/1 and tiebreaker/1 from Flop.Schema.

Fixed

  • Do not make a module named in an ecto_type a compile-time dependency of the schema.
  • Read a cursor value through the schema given as :for, so that a field's :path is applied when the query returns plain maps rather than structs.

How to upgrade

Change your code to use Flop.Schema and set the options as @flop_options instead of using @derive to derive the protocol.

 defmodule MyApp.Pet do
   use Ecto.Schema
+  use Flop.Schema

@​derive {
Flop.Schema,
filterable: [:name, :species],
sortable: [:name, :age]
}
</tr></table>

... (truncated)

Commits
  • 10df870 Merge pull request #724 from woylie/release-0.29.0
  • 17bd0b4 bump version
  • 8f27cfa Merge pull request #723 from woylie/allow-schema-without-struct
  • 66a4d7a allow schemas that don't define a struct
  • 1519ea1 Merge pull request #722 from woylie/schema-behaviour
  • ffd5d67 turn Flop.Schema into behaviour
  • 7e9bd80 Merge pull request #720 from woylie/baseline/update
  • ee3db9e update generated files from elixir_baseline
  • 9e9aaa6 update generated files from elixir_baseline
  • 4914c9d Merge pull request #719 from woylie/baseline/credo
  • Additional commits viewable 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 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)

Bumps [flop](https://github.com/woylie/flop) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/woylie/flop/releases)
- [Changelog](https://github.com/woylie/flop/blob/main/CHANGELOG.md)
- [Commits](woylie/flop@0.28.0...0.29.0)

---
updated-dependencies:
- dependency-name: flop
  dependency-version: 0.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code labels Sep 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code

Development

Successfully merging this pull request may close these issues.

0 participants