Repository navigation
Releases
Releases · Robin-w151/resolver
v0.5.2
Immutable
release. Only release title and notes can be modified.
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 thetasksobject returned byresolve()and of the dependency results handed to dependent
tasks instead of being stored as an own property. Its result was missing fromtasks, and the
objects inherited from the task's result. Both objects are now built withObject.fromEntries(),
so every task id becomes an own property.
v0.5.1
Immutable
release. Only release title and notes can be modified.
0.5.1
Patch Changes
- 62ed798: Document how a task's result is derived from what its function returns. For an
Observablethe
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. TheTasktype,
register()and the README now describe this, including how to uselast()ortoArray()when a
different value is needed, and that both only emit once the source completes.
v0.5.0
Immutable
release. Only release title and notes can be modified.
0.5.0
Minor Changes
-
fb3d682: Require the constructor's global arguments whenever
TGlobalArgscannot beundefined. Task
functions and the resolve result declare the global arguments asTGlobalArgs, but the constructor
accepted no value at all, sonew Resolver<{ apiKey: string }>()type checked while every task was
handedundefined.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
throughsetGlobalArgs()orresolve({ globalArgs }), includeundefinedin the type, for example
new Resolver<{ apiKey: string } | undefined>().
v0.4.1
Immutable
release. Only release title and notes can be modified.
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 anEmptyTaskErrorinstead of leaving the whole task graph pending. - 6cfa059: Fix tasks not being cancelled when a resolution using
withLoadingStateis unsubscribed while the
loading state is emitted. Consuming only the loading state (for example viatake(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
Immutable
release. Only release title and notes can be modified.
v0.4.0-next.3
Immutable
release. Only release title and notes can be modified.
v0.4.0-next.2
Immutable
release. Only release title and notes can be modified.
v0.4.0-next.1
Immutable
release. Only release title and notes can be modified.
v0.4.0-next.0
Immutable
release. Only release title and notes can be modified.