1.3.0
New Features
-
Add
animationFrame
yieldable helper. YieldinganimationFrame()
will
pause a task until after the next animation frame using the native
requestAnimationFrame()
browser API.Note: ember-concurrency tasks are scheduled on the runloop, so this will
not cause the remainder of the task to instead run during the next animation
frame, but the runloop after the next animation frame. (#365, thanks @Turbo87!) -
Add
hashSettled
helper for cancellation-aware implementation of RSVP'shashSettled
(#353, thanks @kwliou!)
Bugfixes
- Add missing types for
linked()
andunlinked()
(Fixes #373)
Deprecations
-
Deprecate direct usage of task with action helper and disable tests for it
on 3.20+.This feature unfortunately depends on private APIs that will be removed in
Ember 3.25. Unfortunately, the mechanism was already removed in Ember 3.20,
making it impossible to support this for releases at least until recent
canaries where it was re-introduced with a deprecation. However, the feature
is rarely used, only documented in this changelog, and frequently breaks
whenever the private constant it depends on moves modules internally
throughout new versions of Ember.It will continue to remain available for Ember < 3.20, but will not be
available in Ember-Concurrency 2.0, and will show a deprecation warning from
1.3.0 forward.Any existing uses can be converted to using
{{perform}}
directly or
wrapping the task in(perform)
before passing to{{action}}
or{{fn}}
Before:
After: