(Not really an enhancement, but) users are encouraged to directly use a task's bound .perform method (and curry with fn helper if needed) rather than to use the classic perform helper, which doesn't really add much value anymore
That said, all 3 of Ember's helpers, including perform are now directly importable within .gts/.gjs files.
Breaking Changes
Ember Concurrency's Babel transform needs to be manually registered as a Babel plugin. See upgrade docs
The guides have been updated to reflect modern/best practices:
Instead of using the (perform) helper, it is now recommended that the bound .perform() method on each Task be directly invoked in the template, e.g. {{on "click" this.myTask.perform}}, or, when arguments are present, {{on "click" (fn this.myTask.perform 123 'foo')}}
Glint template registry has been provided for EC's 3 helpers.
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps ember-concurrency from 3.1.1 to 4.0.2.
Release notes
Sourced from ember-concurrency's releases.
Changelog
Sourced from ember-concurrency's changelog.
Commits
4d6bee3
Release 4.0.25d1759c
4.0.2 changelog719b275
Make glint template an optional peer dependency (#572)400f72b
Release 4.0.1d903873
4.0.1 changelog9504e55
Update task-public-api.js to include note about required Babel transform for ...9bab039
add migration section for ember-engines (#568)aed2ae1
Simplify ts snippets by using the same import statements for `import Componen...2583190
Update basic-example.ts to use public import location (#566)8e0c037
Added required config to readme (#563)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show