Skip to content

Commit

Permalink
Released 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
machty committed May 5, 2016
1 parent 2159657 commit 7099409
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# Changelog
### 0.7.0
- within a task generator function, TaskCancelation "errors" are
longer "catchable" in the catch block of a try/catch. This means
you no longer have to check if the error thrown is a cancelation
in order to handle it differently than an exception.
- That said, since promises have no concept of cancelation, if
you perform a task within a promise (or you call
`someTask.perform().then(...).catch(...)`), then any promise
`catch` handlers _will_ be called with TaskCancelation "errors",
and if you need to distinguish between cancelation and exceptions
thrown, you can import and use the new `didCancel` utility function,
which returns true if the error passed to it is a TaskCancelation.
Previously, the only safe way to test this was to check
`err && err.name === 'TaskCancelation'`; now you can just
`import { didCancel } from 'ember-concurrency'` and
check `didCancel(err)`.

### 0.6.3
- bugfix: errors that bubble throw arbitrary depths of child tasks
will only call window/Ember.onerror once
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-concurrency",
"version": "0.6.3",
"version": "0.7.0",
"description": "Improved concurrency/async primitives for Ember.js",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit 7099409

Please sign in to comment.