This repository was archived by the owner on Sep 17, 2023. It is now read-only.
Releases: proc7ts/context-values
Releases · proc7ts/context-values
Release 4.0.0
Changes
- Change context value construction API:
UseContextValueSlot
to insert constructed value instead of returning it fromContextKey.grow()
method. - Add support for context value setup.
The setup procedure is issued right after the context value is associated with the key.
Release 3.1.0
New Features
- Add
ContextSupply
support.
When available inside context, it is cut off once context is destroyed.
It is predefined to the supply of context if the latter implementsEventSupplyPeer
.
Updatable context key implementations cut off their values supply once context supply is cut off.
Changes
- Make a seed key of updatable keys updatable too.
Fixes
- Correct string representation of value spec in error message
Dependencies
@proc7ts/a-iterable
and@proc7ts/call-thru
are no longer peer dependencies.
Release 3.0.1
Improvements
- Optimize simple seed evaluation
Release 3.0.0
Improvements
- Simplify
SingleContextKey
andMultiContextKey
implementations for better performance.
Changes
SimpleContextKey
seed provides single value.- Add
IterativeContextKey
which seed isIterable
of its sources
AIterable
is no longer used. MultiContextKey
extendsIterativeContextKey
,
Release 2.4.0
Dependencies
- Upgrade to
fun-events
v9
Release 2.3.1
Bug Fix
- Use
nextAfterEvent()
instead ofnextOnEvent()
when working with event keepers.
Release 2.3.0
Bundling
- Extract
context-values/updatable
sub-module.
ContainsContextUpKey
.
Depends onfun-events
.
Dependencies
- Switch to
call-thru
v3. fun-events
is optional peer dependency now.
Release 2.2.2
Dependencies
fun-events
v7.1
Release 2.2.1
Bug Fixes
- Correctly handle
undefined
fallback value.
Release 2.2.0
New Features
- Add
ContextUpKey.upKey
- a key of context value containing an updates keeper of this key's value.