Skip to content

Releases: machty/ember-concurrency

4.0.0-beta.1

04 Feb 22:19
Compare
Choose a tag to compare
4.0.0-beta.1 Pre-release
Pre-release

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

25 Aug 01:06
Compare
Choose a tag to compare

Enhancements

Documentation

  • Insert link to release notes for taskFor() deprecation (#540, thanks @MichalBryxi!)

3.1.0 - Now with 100% more 3.0.0

01 Aug 03:35
Compare
Choose a tag to compare

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

  • Drop support for Node versions below version 16 (#520)
  • Add support and tests for Ember 4 (#515)
    • Minimum supported Ember version is now 3.28+ (but still likely to work for lower versions)
  • TypeScript: use the types published directly from Ember.js (#512)

3.0.0

04 Apr 18:38
Compare
Choose a tag to compare

3.0.0

  • Drop support for Node versions below version 16 (#520)
  • Add support and tests for Ember 4 (#515)
    • Minimum supported Ember version is now 3.28+ (but still likely to work for lower versions)
  • TypeScript: use the types published directly from Ember.js (#512)

2.3.4

02 Sep 14:49
Compare
Choose a tag to compare

2.3.4

  • Bugfix: observers stopped working in 2.3.0+ (#487)

2.3.3

02 Sep 12:52
Compare
Choose a tag to compare

2.3.3

  • Fix types for the async arrow API for dropTask, restartableTask, and others (#486)

2.3.2 - even simpler task(async () => {}) API

24 Aug 18:12
Compare
Choose a tag to compare
  • 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 remove taskFor()
      • npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.ts
      • npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.js

2.3.1

24 Aug 15:50
Compare
Choose a tag to compare
  • Add runtime assertion to detect transpilation failures with the new async arrow fn API

2.3.0 - async arrow fn tasks

24 Aug 01:13
Compare
Choose a tag to compare

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 fn
        • npx machty-ember-concurrency-codemods async-arrow-task app/**/*.ts app/**/*.js
      • If you've used ember-concurrency-ts, run the following codemod to remove taskFor()
        • npx machty-ember-concurrency-codemods rm-ember-concurrency-ts app/**/*.ts app/**/*.js
  • The ember-concurrency-ts and ember-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

2.2.1

09 Feb 04:33
Compare
Choose a tag to compare

Bugfixes

  • Added missing TypeScript types for onState task modifier and
    TaskFactory#setOnState (#449, fixed #447. Thanks @johanrd for the heads up!)