Skip to content

Commit 07af6a2

Browse files
committed
Add changelog for 1.3.0
1 parent 62c0890 commit 07af6a2

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

CHANGELOG.md

+44
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Changelog
22

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+
347
### 1.2.1
448
- Correct types for encapsulated tasks to allow accessing encapsulated task state (#362, thanks @chancancode!)
549
- Correct types to reflect that Task, TaskInstance, and TaskGroup extend EmberObject (#363, thanks @jamescdavis!)

0 commit comments

Comments
 (0)