Skip to content

Latest commit

 

History

History
141 lines (83 loc) · 7.8 KB

CHANGELOG.md

File metadata and controls

141 lines (83 loc) · 7.8 KB

Change Log

2.0.0

Major Changes

  • #3283 a279803d - [Breaking] Task will no longer reset its value or error 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]
    );

Minor Changes

1.1.3

Patch Changes

  • #3131 ec87d529 - Update Task typings to work better with inference and casting args to as 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.

1.1.2

Patch Changes

  • #2582 24cb1568 - Fix example code syntax in lit-labs/task README

1.1.1

Patch Changes

  • #2410 b9a6962b - Correct the link path of CONTRIBUTING.md in README.md files

1.1.0

Minor Changes

  • #2336 48394303 - Tasks with no arguments now run by default. When a task runs can be customized by passing a canRun function.
  • #2336 48394303 - Tasks now run whenever their arguments change. Disable this by setting autoRun to false, either on the task config or on the task itself. Tasks can be explicitly run by calling run and optionally passing custom args.

Patch Changes

1.0.0

Patch Changes

  • #1942 c8fe1d4 - For minified class fields on classes in lit libraries, added prefix to stable properties to avoid collisions with user properties.
  • #2113 5b2f3642 - Dependency upgrades including TypeScript 4.4.2

1.0.0-rc.4

Patch Changes

  • #2113 5b2f3642 - Dependency upgrades including TypeScript 4.4.2

1.0.0-rc.3

Patch Changes

  • #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.


Unreleased

Fixed

  • Included development folder in release #1912.

1.0.0-rc.2 - 2021-05-07

Fixed

  • Added task.js to the package exports (#1824).

1.0.0-rc.1 - 2021-04-20

Changed

  • Updated dependencies

1.0.0-pre.2 - 2021-03-31

Changed

  • Added result and dependency type arguments to Task

Added

  • Added an initialState sentinal value that task functions can return to reset the task state to INITIAL.

[1.0.0-pre.1] - 2021-02-11

Added

  • 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).