Implement decorators from ember-concurrency-decorators (#386). The "nice" decorators
from ember-concurrency-decorators are now built-in to ember-concurrency, without
requiring an additional addon or seperate import. All decorators are available for
import directly from the top-level ember-concurrency package.
Many thanks to @buschtoens for years of stewardship of that addon, and important contributions from @chancancode for TypeScript support, and others in the community to get it to a place where it's seen wide adoption in the world of Ember Octane, TypeScript, and native ES classes.
Addon maintainers: Please see notes in UPGRADING-2.x.md if you're using
decorators currently, and wish to support both ember-concurrency 1.x and 2.x at
runtime.
Documentation
Rewrite documentation to use native classes and decorators, and update tutorial
to show rewriting of async function code, rather than Promise code, as is more common
today (#387, #389)
2.0.0-beta.2
Enhancements
Migrate task lifetimes to @ember/destroyable underneath, rather than
patching willDestroy (#377).
Potentially breaking: this drops support for Node 8 and Ember < 3.8 LTS
Bugfixes
Ensure encapsulated task state can be accessed on the TaskInstance (#381, #383)
Note: this uses Proxy and WeakMap, which may need to be polyfilled/unavailable on
older browsers.
Make sure task/group-level state field is tracked (#382)
Removals
Drop unused broccoli-file-creator and ember-maybe-import-regenerator
dependencies.
Implement decorators from ember-concurrency-decorators. The "nice" decorators
from ember-concurrency-decorators are now built-in to ember-concurrency, without
requiring an additional addon or seperate import. All decorators are available for
import directly from the top-level ember-concurrency package.
Addon maintainers: Please see notes in UPGRADING-2.x.md if you're using
decorators currently, and wish to support both ember-concurrency 1.x and 2.x at
runtime.
[docs] Rewrite documentation to use native classes and decorators, and update tutorial
to show rewriting of async function code, rather than Promise code, as is more common
today.
2.0.0-beta.2
Migrate task lifetimes to @ember/destroyable underneath, rather than
patching willDestroy (#377).
Potentially breaking: this drops support for Node 8 and Ember < 3.8 LTS
Ensure encapsulated task state can be accessed on the TaskInstance (#381, #383)
Note: this uses Proxy and WeakMap, which may need to be polyfilled on
IE 11.
Make sure task/group-level state field is tracked (#382)
Drop unused broccoli-file-creator and ember-maybe-import-regenerator
dependencies.
Note on ember-maybe-import-regenerator: This was originally added back when
generator support in browsers was far lower and Babel 5 and 6 were used. The
addon does nothing for Babel 7, which is used for ember-concurrency these
days. Tweaking config/targets.js or adding the regenerator Babel plugin to
your babel config can be done instead if the regenerator runtime is needed
to transpile generators for older browsers.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps ember-concurrency from 1.1.3 to 2.0.0.
Release notes
Sourced from ember-concurrency's releases.
... (truncated)
Changelog
Sourced from ember-concurrency's changelog.
... (truncated)
Commits
5be155e
Release 2.0.02de9cef
Merge pull request #398 from machty/mf-v2_release_finalizatione359528
Add note about cancelAll w/ resetState option19f9e9d
Add section to upgrade guide on Ember version supportb92c60d
Test against ember-concurrency-async 1.0.03e744c5
Target CI against new v1 branch too45fdd89
Modernize jsdoc examples, and fix some missing yieldables in jsdoca872d54
Test against ember-concurrency-ts ^0.2.24761f38
Had some troubleshooting stuff to the FAQ77745a6
Remove in-development banner from readmeDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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) - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in the `.dependabot/config.yml` file in this repo: - Update frequency - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)