Skip to content

0.9.0

Compare
Choose a tag to compare
@woylie woylie released this 16 Oct 11:33
· 1006 commits to main since this release
dfa7048

Added

  • Add like, like_and, like_or, ilike, ilike_and and ilike_or filter
    operators.
  • Add option to disable pagination types globally, for a schema or locally.
  • Add options to disable ordering or filtering.
  • Allow global configuration of get_cursor_value_func, max_limit and
    default_limit.
  • Add Flop.option type, improve documentation of available options.
  • Add Flop.Cursor.decode!/1.

Changed

  • Refactored the parameter validation. Default limits are now applied to all
    pagination types. Added validation for the after / before cursor values.
  • Flop.Cursor.decode/1 returns :ok tuple or :error now instead of raising
    an error if the cursor is invalid.
  • Flop.Cursor.decode/1 returns an error if the decoded cursor value is not a
    map with atom keys.
  • Improved documentation.