skylines
skylines copied to clipboard
Update dependency ember-concurrency to v2
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
ember-concurrency | 1.3.0 -> 2.3.7 |
Release Notes
machty/ember-concurrency
v2.3.7
- Mention native class requirement in un-transpiled task() error (#494)
v2.3.6
- Additional fix for Babel transpiler conflict with ember-cli-code-coverage / istanbul (#492)
v2.3.5
- Fix Babel transpiler conflict with ember-cli-code-coverage (#490)
v2.3.4
- Bugfix: observers stopped working in 2.3.0+ (#487)
v2.3.3
- Fix types for the async arrow API for
dropTask
,restartableTask
, and others (#486)
v2.3.2
- Simplify the async arrow fn task() API to allow omitting the
this
param, e.g.myTask = task(async () => {})
(#477)
v2.3.1
- Add runtime assertion to detect transpilation failures with the new async arrow fn API
v2.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 on any
app/
oraddon/
folders that are using Ember Concurrency tasks- 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 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
v2.2.1
- Added missing TypeScript types for
onState
task modifier andTaskFactory#setOnState
(#449, fixed #447. Thanks @johanrd for the heads up!)
v2.2.0
- Implemented a public API for Task Modifiers,
providing a way for users to define additional modifiers and behavior in
application code. (#441) Please consider the
TaskProperty
prototype extension method of implementing task modifiers to be deprecated in favor of theregisterModifier
API.
v2.1.2
- Same as 2.1.1, but with the changes actually published.
v2.1.1
- Expose
TaskInstance
state inside encapsulated tasks (#434)- [dev] use prettier to format code (#415, thanks @alexlafroscia!)
- [dev] test against embroider scenarios (#430, thanks @alexlafroscia!)
v2.1.0
- Implemented a public API for Yieldables, a new way to instrument TaskInstances by providing a safe mechanism to implement custom waiters, hooks, introspection, and other operations from application code. (#413)
v2.0.3
- Remove runloop binding for
perform
andcancel-all
helpers, preventing proper instrumentation. (#414, fixes #409)- Fix incorrect import for deprecated private
task-instance
module alias (#411, thanks @mydea!) - [dev] Upgrade qunit to v5 (#410, thanks @alexlafroscia)
- [docs] Fix missing jsdoc documentation (#407)
- Fix incorrect import for deprecated private
v2.0.2
- Ensure
lastRunning
resets one-by-one as tasks are completed, successfully or not. (Fixes #403)- Expose
lastValue
decorator in TS definitions (Fixes #406)
- Expose
v2.0.1
- Prevent synchronous errors in cancelable promise helpers from being
rethrown asynchronously later (#402, fixes #400. thanks @Turbo87 for flagging!)
- Restore access to host context from encapsulated tasks (#401)
v2.0.0
- No substantive changes from 2.0.0-rc.2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.