|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +### 1.3.0 |
| 4 | + - Add `animationFrame` yieldable helper. Yielding `animationFrame()` will |
| 5 | + pause a task until after the next animation frame using the native |
| 6 | + `requestAnimationFrame()` browser API. |
| 7 | + |
| 8 | + **Note**: ember-concurrency tasks are scheduled on the runloop, so this will |
| 9 | + not cause the remainder of the task to instead run during the next animation |
| 10 | + frame, but the runloop after the next animation frame. |
| 11 | + - Add `hashSettled` helper for cancellation-aware implementation of RSVP's `hashSettled` (#353, thanks @kwliou!) |
| 12 | + - Add missing types for `linked()` and `unlinked()` (#373) |
| 13 | + - Deprecate direct usage of task with action helper and disable tests for it |
| 14 | + on 3.20+. |
| 15 | + |
| 16 | + This feature unfortunately depends on private APIs that will be removed in |
| 17 | + Ember 3.25. Unfortunately, the mechanism was already removed in Ember 3.20, |
| 18 | + making it impossible to support this for releases at least until recent |
| 19 | + canaries where it was re-introduced with a deprecation. However, the feature |
| 20 | + is rarely used, only documented in this changelog, and frequently breaks |
| 21 | + whenever the private constant it depends on moves modules internally |
| 22 | + throughout new versions of Ember. |
| 23 | + |
| 24 | + It will continue to remain available for Ember < 3.20, but will not be |
| 25 | + available in Ember-Concurrency 2.0, and will show a deprecation warning from |
| 26 | + 1.3.0 forward. |
| 27 | + |
| 28 | + Any existing uses can be converted to using `{{perform}}` directly or |
| 29 | + wrapping the task in `(perform)` before passing to `{{action}}` or `{{fn}}` |
| 30 | + |
| 31 | + Before: |
| 32 | + |
| 33 | + ```hbs |
| 34 | + <button onClick={{action someTask}}>My button</button> |
| 35 | + ``` |
| 36 | +
|
| 37 | + After: |
| 38 | +
|
| 39 | + ```hbs |
| 40 | + {{!-- Any of these --}} |
| 41 | + <button {{on "click" (perform someTask)}}>My button</button> |
| 42 | + <button onClick={{perform someTask}}>My button</button> |
| 43 | + <button onClick={{action (perform someTask)}}>My button</button> |
| 44 | + <button onClick={{fn (perform someTask)}}>My button</button> |
| 45 | + ``` |
| 46 | +
|
3 | 47 | ### 1.2.1
|
4 | 48 | - Correct types for encapsulated tasks to allow accessing encapsulated task state (#362, thanks @chancancode!)
|
5 | 49 | - Correct types to reflect that Task, TaskInstance, and TaskGroup extend EmberObject (#363, thanks @jamescdavis!)
|
|
0 commit comments