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

Releases: proc7ts/context-values

Release 4.0.0

10 May 10:57
Compare
Choose a tag to compare

Changes

  • Change context value construction API:
    Use ContextValueSlot to insert constructed value instead of returning it from ContextKey.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

06 May 09:39
Compare
Choose a tag to compare

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 implements EventSupplyPeer.
    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

11 Apr 10:01
Compare
Choose a tag to compare

Improvements

  • Optimize simple seed evaluation

Release 3.0.0

11 Apr 06:21
Compare
Choose a tag to compare

Improvements

  • Simplify SingleContextKey and MultiContextKey implementations for better performance.

Changes

  • SimpleContextKey seed provides single value.
  • Add IterativeContextKey which seed is Iterable of its sources
    AIterable is no longer used.
  • MultiContextKey extends IterativeContextKey,

Release 2.4.0

15 Mar 06:37
Compare
Choose a tag to compare

Dependencies

  • Upgrade to fun-events v9

Release 2.3.1

05 Feb 06:14
Compare
Choose a tag to compare

Bug Fix

  • Use nextAfterEvent() instead of nextOnEvent() when working with event keepers.

Release 2.3.0

05 Feb 04:28
Compare
Choose a tag to compare

Bundling

  • Extract context-values/updatable sub-module.
    Contains ContextUpKey.
    Depends on fun-events.

Dependencies

  • Switch to call-thru v3.
  • fun-events is optional peer dependency now.

Release 2.2.2

24 Jan 04:44
Compare
Choose a tag to compare

Dependencies

  • fun-events v7.1

Release 2.2.1

18 Jan 10:34
Compare
Choose a tag to compare

Bug Fixes

  • Correctly handle undefined fallback value.

Release 2.2.0

18 Jan 10:33
Compare
Choose a tag to compare

New Features

  • Add ContextUpKey.upKey - a key of context value containing an updates keeper of this key's value.