Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Releases: proc7ts/context-values

Release 2.1.1

26 Dec 10:18
Compare
Choose a tag to compare

Bundling

  • Preserve /*#__PURE__*/ annotations.

Release 2.1.0

06 Nov 09:23
Compare
Choose a tag to compare

Dependencies

  • Upgrade to fun-events v7
  • Upgrade to TypeScript 3.7

Release 2.0.4

28 Sep 04:27
Compare
Choose a tag to compare

Dependencies

  • a-terable, call-thru, and fun-events are peer dependencies now.

Release 2.0.4

08 Sep 03:31
Compare
Choose a tag to compare

Dependencies

  • Upgrade to TypeScript 3.6

Releasee 2.0.3

07 Sep 08:12
Compare
Choose a tag to compare

Improvements

  • Accept ContextKeyDefault as byDefault option of FnContextKey

Release 2.0.1

27 Aug 14:02
Compare
Choose a tag to compare

New Features

  • Use ContextKeyDefault as a default value provider in context keys.

Release 2.0.0

22 Aug 06:23
Compare
Choose a tag to compare

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

13 Aug 06:15
Compare
Choose a tag to compare

Bundling

  • Remove esm5 bundle

Release 1.3.1

02 Aug 09:03
Compare
Choose a tag to compare

Documentation

  • Publish API documentation

Release 1.3.0

30 Mar 06:20
Compare
Choose a tag to compare

Dependencies

  • Upgrade to TypeScript 3.4