0.15.0 #161
Closed
woylie
announced in
Announcements
0.15.0
#161
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Added
Flop.reset_filters/1
andFlop.reset_order/1
.Flop.current_order/2
to retrieve the order of a given field.Flop.to_next_page/2
andFlop.to_previous_page/1
.Flop.set_cursor/2
,Flop.to_next_cursor/1
andFlop.to_previous_cursor/1
.Flop.set_offset/2
,Flop.to_previous_offset/1
,Flop.to_next_offset_2
and
Flop.reset_cursors/2
.Flop.nest_filters/3
for converting filters between a key/value map anda list of
Flop.Filter
parameters.default_pagination_type
option, which forces a certainset of parameters when defaults are applied and the pagination type cannot
be determined from the given parameters.
default
argument toget_option
.pagination
option. If set totrue
, pagination parameters are not cast.Changed
Flop.map_to_filter_params/2
returns maps with string keys if the originalmap has string keys now.
has_previous_page?
value of theFlop.Meta
struct is now alwaystrue
if
first
is used withafter
.has_next_page?
is alwaystrue
whenlast
is used withbefore
.push_order/2
resets the:after
and:before
parameters now, since thecursors depend on the order.
validate_and_run/3
andvalidate_and_run!/3
pass all given options tothe validate functions now, allowing you to override defaults set in the
schema.
pagination_types
option is used, parameters for other paginationtypes will not be cast now instead of casting them and returning validation
errors.
Removed
Flop.Cursor.get_cursor_from_map/2
. UseFlop.Cursor.get_cursor_from_node/2
instead.This discussion was created from the release 0.15.0.
Beta Was this translation helpful? Give feedback.
All reactions