2.3.2
版本发布时间: 2022-08-25 02:12:25
machty/ember-concurrency最新发布版本:4.0.1(2024-03-09 12:14:30)
- 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 fn-
npx 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