Skip to content

Releases: canjs/can-value

1.1.2

30 Sep 14:48
Compare
Choose a tag to compare

Update documentation for CanJS 6

All examples work on CanJS 5 as well.

QUNIT2 upgrade

28 May 20:07
Compare
Choose a tag to compare

This updates the tests to use QUnit@2.x.x.

#29

returnedBy( getter(lastSet) )

31 Oct 00:28
Compare
Choose a tag to compare

This adds the ability to set observables returned by value.returnedBy if they are passed a getter() that takes an argument.

import {value} from "can";

var age = value.returnedBy(function(lastSet){
  return lastSet == null ? 0 : +lastSet;
});
age.value //-> 0
age.value = "5";
age.value //-> 5

IE 11 Compatibility

29 Oct 20:29
Compare
Choose a tag to compare

v1.0.1

26 Jul 14:17
Compare
Choose a tag to compare

General documentation fixes, PR #18

v1.0.0

06 Jul 03:08
Compare
Choose a tag to compare

can-value makes it possible to create new observables:

  • from any object or primitive value
  • with the return value of a function (that updates when the observables inside it change)
  • bound to a specific key in another observable

Find examples in the docs for can-value and each of its methods: bind, from, returnedBy, to, and with.