Releases: machty/ember-concurrency
Releases · machty/ember-concurrency
4.0.0-beta.1
Enhancements
- Convert to V2 Addon (#551)
Breaking Changes
- Ember Concurrency's Babel transform needs to be manually registered as a Babel plugin. See upgrade docs
3.1.1
3.1.0 - Now with 100% more 3.0.0
Note: Due to a tagging snaffu during the release of 3.0.0, it was functionally the same as 2.3.7. This release (3.1.0) also includes the changes intended for 3.0.0
3.1.0
- Support waitFor()-type modifiers in async arrow transform (#536)
- Drop now-unneeded dependency on polyfill for unsupported Ember versions
- [docs] Fix broken code block rendering for examples (#522, #524)
3.0.0
3.0.0
2.3.4
2.3.3
2.3.2 - even simpler task(async () => {}) API
- Simplified the async arrow fn task() API to allow omitting the
this
param, e.g.
myTask = task(async () => {})
(#477) - The codemods mentioned in the 2.3.0 release have been updated to prefer this simplified syntax:
- Convert
@task
decorator based APIs to the new async-arrow fnnpx machty-ember-concurrency-codemods async-arrow-task app/**/*.ts
npx machty-ember-concurrency-codemods async-arrow-task app/**/*.js
- If you've used
ember-concurrency-ts
, run the following codemod to removetaskFor()
npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.ts
npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.js
- Convert
2.3.1
2.3.0 - async arrow fn tasks
NOTE: v2.3.2 simplifies the new task() API even more further; you should upgrade to that (or higher!)
2.3.0
- Introduce async-arrow task() API as the new universal JS/TS API, e.g.
myTask = task(this, { drop: true }, async (arg: string) => {})
. This new API
sidesteps the vast majority of TypeScript issues that plagued past decorators- and generators-
based APIs. All prior APIs are still supported, but users are strongly recommended
to migrate to the new API. Recommended steps:- Finish migrating any classes with EC tasks to ES6 class syntax
- Once you've done that, use the following codemods
- Convert
@task
decorator based APIs to the new async-arrow fnnpx machty-ember-concurrency-codemods async-arrow-task app/**/*.ts app/**/*.js
- If you've used
ember-concurrency-ts
, run the following codemod to removetaskFor()
npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.ts app/**/*.js
- Convert
- The
ember-concurrency-ts
andember-concurrency-async
packages are no longer needed
and can be removed - Soft-deprecated (removed from documentation, likely to formally deprecate later)
a number of less commonly used features- Encapsulated Tasks
- Task Groups