Skip to content

Releases

v0.5.2

Choose a tag to compare

@Robin-w151 Robin-w151 released this 27 Oct 19:44
Immutable release. Only release title and notes can be modified.
v0.5.2
691a51f

0.5.2

Patch Changes

  • Keep the result of a task whose id is a reserved object key such as __proto__. Results were
    collected by assigning to a plain object, so a task with the id __proto__ replaced the prototype
    of the tasks object returned by resolve() and of the dependency results handed to dependent
    tasks instead of being stored as an own property. Its result was missing from tasks, and the
    objects inherited from the task's result. Both objects are now built with Object.fromEntries(),
    so every task id becomes an own property.

v0.5.1

Choose a tag to compare

@Robin-w151 Robin-w151 released this 07 Aug 15:46
Immutable release. Only release title and notes can be modified.
v0.5.1
1061107

0.5.1

Patch Changes

  • 62ed798: Document how a task's result is derived from what its function returns. For an Observable the
    first emitted value becomes the result and the subscription is closed afterwards, so later emissions
    are never observed and sources that honor unsubscription are cancelled. The Task type,
    register() and the README now describe this, including how to use last() or toArray() when a
    different value is needed, and that both only emit once the source completes.

v0.5.0

Choose a tag to compare

@Robin-w151 Robin-w151 released this 06 Aug 21:41
Immutable release. Only release title and notes can be modified.
v0.5.0
7001e38

0.5.0

Minor Changes

  • fb3d682: Require the constructor's global arguments whenever TGlobalArgs cannot be undefined. Task
    functions and the resolve result declare the global arguments as TGlobalArgs, but the constructor
    accepted no value at all, so new Resolver<{ apiKey: string }>() type checked while every task was
    handed undefined.

    This is a type level change only, the runtime behaviour is unchanged. new Resolver() and
    new Resolver(globalArgs) keep working as before. If the global arguments are only supplied later
    through setGlobalArgs() or resolve({ globalArgs }), include undefined in the type, for example
    new Resolver<{ apiKey: string } | undefined>().

v0.4.1

Choose a tag to compare

@Robin-w151 Robin-w151 released this 06 Aug 11:20
Immutable release. Only release title and notes can be modified.
v0.4.1
9f976eb

0.4.1

Patch Changes

  • c2958f2: Fix resolution hanging forever when a task's Observable completes without emitting a value. Such
    tasks now resolve with an EmptyTaskError instead of leaving the whole task graph pending.
  • 6cfa059: Fix tasks not being cancelled when a resolution using withLoadingState is unsubscribed while the
    loading state is emitted. Consuming only the loading state (for example via take(1) or
    firstValueFrom) left the running tasks without a teardown, so they kept executing, dependent tasks
    still started, and never completing tasks stayed subscribed indefinitely.

v0.4.0

Choose a tag to compare

@Robin-w151 Robin-w151 released this 06 Apr 14:02
Immutable release. Only release title and notes can be modified.
v0.4.0
454e138

0.4.0

Minor Changes

  • f9192d2: Migrate to typescript 6 and tsdown

Patch Changes

  • f9192d2: Update packages
  • f9192d2: update typescript to release version
  • f9192d2: update package export paths

v0.4.0-next.3

v0.4.0-next.3 Pre-release
Pre-release

Choose a tag to compare

@Robin-w151 Robin-w151 released this 06 Apr 13:29
Immutable release. Only release title and notes can be modified.
v0.4.0-next.3
c209bb1

0.4.0-next.3

Patch Changes

v0.4.0-next.2

v0.4.0-next.2 Pre-release
Pre-release

Choose a tag to compare

@Robin-w151 Robin-w151 released this 24 Mar 08:16
Immutable release. Only release title and notes can be modified.
v0.4.0-next.2
9e01a15

0.4.0-next.2

Patch Changes

  • 329d1bc: update typescript to release version

v0.4.0-next.1

v0.4.0-next.1 Pre-release
Pre-release

Choose a tag to compare

@Robin-w151 Robin-w151 released this 18 Feb 18:27
Immutable release. Only release title and notes can be modified.
v0.4.0-next.1
9709ba1

0.4.0-next.1

Patch Changes

  • 8dafdaf: update package export paths

v0.4.0-next.0

v0.4.0-next.0 Pre-release
Pre-release

Choose a tag to compare

@Robin-w151 Robin-w151 released this 18 Feb 17:16
Immutable release. Only release title and notes can be modified.
v0.4.0-next.0
5a30789

0.4.0-next.0

Minor Changes

  • 40d036e: Migrate to typescript 6 and tsdown

v0.3.1

Choose a tag to compare

@Robin-w151 Robin-w151 released this 07 Nov 08:18
Immutable release. Only release title and notes can be modified.
v0.3.1
f30dfe8

0.3.1

Patch Changes

  • 3818092: improve advanced usage example in the README