Releases: proc7ts/context-values
Release 2.1.1
Bundling
- Preserve
/*#__PURE__*/
annotations.
Release 2.1.0
Dependencies
- Upgrade to
fun-events
v7 - Upgrade to TypeScript 3.7
Release 2.0.4
Dependencies
a-terable
,call-thru
, andfun-events
are peer dependencies now.
Release 2.0.4
Dependencies
- Upgrade to TypeScript 3.6
Releasee 2.0.3
Improvements
- Accept
ContextKeyDefault
asbyDefault
option ofFnContextKey
Release 2.0.1
New Features
- Use
ContextKeyDefault
as a default value provider in context keys.
Release 2.0.0
Changes
The primary change is an ability to update the provided context values. The existing context key implementations still construct values at most once and never update them.
The value updates could be achieved with the use of value seeds mechanism. The value source providers are collected by key-specific seeder (one per context registry). This seeder is used then to construct a value seed (one per context). This seed is used then to construct (grow) a context value associated with the key.
The value is still cached in context, but it may provide an interface for its updates notification. E.g. it can be an EventKeeper
from fun-events
, which is the case for SingleContextUpKey
and MultiContextUpKey
implementations. The latter are updated by their seeder when a new value provider is added or existing one removed.
Release 1.3.2
Bundling
- Remove esm5 bundle
Release 1.3.1
Documentation
- Publish API documentation
Release 1.3.0
Dependencies
- Upgrade to TypeScript 3.4