-
#3283
a279803d
- [Breaking] Task will no longer reset itsvalue
orerror
on pending. This allows us to start chaining tasks e.g.const a = new Task( this, async ([url]) => await fetch(url), () => [this.url] ); const b = new Task( this, async ([value]) => { /* This is not thrashed */ }, () => [a.value] );
-
#3131
ec87d529
- Update Task typings to work better with inference and casting args toas const
by making args a readonly array. -
#3132
2fe2053f
- Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module.
- #2336
48394303
- Tasks with no arguments now run by default. When a task runs can be customized by passing acanRun
function.
- #2336
48394303
- Tasks now run whenever their arguments change. Disable this by settingautoRun
tofalse
, either on the task config or on the task itself. Tasks can be explicitly run by callingrun
and optionally passing custom args.
- Updated dependencies [
08e7fc56
,eb5c5d2b
,49ecf623
,26e3fb7b
]:- @lit/[email protected]
- #1942
c8fe1d4
- For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
-
Updated dependencies [
ff0d1556
,15a8356d
,2b8dd1c7
,34280cb0
,5768cc60
,018f6520
,5fabe2b5
,0470d86a
,5fabe2b5
,52a47c7e
,5b2f3642
,5fabe2b5
,08f60328
,7adfbb0c
,5fabe2b5
,24feb430
,61fc9452
,5fabe2b5
,13d137e9
,5fabe2b5
,5fabe2b5
,724a9aab
,0312f3e5
,8b6e2415
,761375ac
,a791514b
,5fabe2b5
]:- @lit/[email protected]
- #1942
c8fe1d4
- For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
Changes below were based on the Keep a Changelog format. All changes above are generated automatically by Changesets.
- Included
development
folder in release #1912.
- Added
task.js
to the package exports (#1824).
- Updated dependencies
- Added result and dependency type arguments to Task
- Added an
initialState
sentinal value that task functions can return to reset the task state to INITIAL.
- Adds
Task
controller which can be used to perform tasks when a host element updates. When the task completes, an update is requested on the host element and the task value can be used as desired (#1489).