Skip to content

v0.11.0

Latest

Choose a tag to compare

@gottadiveintopython gottadiveintopython released this 02 Jun 09:12
v0.11.0

What's Changed

  • Modal: Stop exposing auto-dismiss cause in #226
  • Remove fade_transition as announced in #230
  • Remove free_to_await parameters in #232
  • Modal: Change the way auto-dismissal is checked in #234
  • Remove rest_of_touch_events and rename rest_of_touch_vents_cm to rest_of_touch_events in #233
  • Add visibility_aware_touch_events in #235

Migrating from 0.10.0

Modal submodule

from asynckivy import modal

# before
async with modal.open(...) as auto_dismiss_event:
    ...
if auto_dismiss_event.is_fired:
    ...

# after
async with modal.open(...) as auto_dismissed:
    ...
if auto_dismissed:
    ...

fade_transision

import asynckivy as ak
from asynckivy import transition

# before
async with ak.fade_transition(...):
    ...

# after
async with transition.fade(...):
    ...

free_to_await

# before
any_api(..., free_to_await=...)

# after
any_api(...)

rest_of_touch_events

import asynckivy as ak

# before
async for __ in ak.rest_of_touch_events(...):
    ...

# after
async with ak.rest_of_touch_events(...) as on_touch_move:
    while True:
        await on_touch_move()
        ...

Full Changelog: v0.10.0...v0.11.0