Skip to content

Releases: canjs/canjs

v6.2.6

18 Nov 21:12
Compare
Choose a tag to compare

v6.2.5

fromAttribute fixed

03 Nov 21:52
Compare
Choose a tag to compare

6.2.3

31 Oct 10:53
Compare
Choose a tag to compare

canjs/canjs v6.2.3 Release Notes

can-connect-feathers

A future version will upgrade for CanJS 6 compatibility.

can-observable-array

v6.2.2

Fix can-observable-array bugs

23 Oct 20:05
Compare
Choose a tag to compare

canjs/canjs v6.2.1 Release Notes

can-observable-array

Make sure for...in works with can-observable-array instances

This patch release fixes an issue where ownKeys returned an array with duplicated keys causing the following code to throw an exception

import { ObservableArray } from "//unpkg.com/can@6/core.mjs";

class List extends ObservableArray {}

let list = new List();
for (var name in list) {
  console.log(name);
}

can-observable-mixin

The following code was throwing an exception due to both methods always calling canReflect.updateMap and canReflect.updateDeepMap under the hood even if the caller was an array.

class MyArray extends mixinMapProps(Array) {}

let arr = new MyArray();
arr.push(1, 2, 3, 4);
assert.equal(arr.length, 4);

arr.updateDeep([]); // throws an exception
assert.equal(arr.length, 0);

Enhanced error messages to ObservableObject, ObservableArray, and with Date inputs

22 Oct 20:13
Compare
Choose a tag to compare

canjs/canjs v6.2.0 Release Notes

This is a minor release with several error message improvements.

can-attribute-observable

can-observable-array

class MyArray {
  static items = type.convert(Number);
}

let arr = new MyArray();
arr[0] = "4";

console.log(arr[0]); // 4

can-observable-bindings

Add fromAttribute to can-namespace

This patch release adds fromAttribute to can-namespace so it is available on the global can object.

person: { type: Object, bind: fromAttribute( JSON ) }

Or

person: { type: Object, bind: fromAttribute( 'attribute-name' , JSON ) }

#15

can-observable-mixin

Before:

farah.age = '4'; // -> Uncaught Error: 4 is not of type Number. Property age is using "type: Number". Use "age: type.convert(Number)" to automatically convert values to Numbers when setting the "age" property.
`

Now:
farah.age = '4'; // -> Uncaught Error: "4" (string) is not of type Number. Property age is using "type: Number". Use "age: type.convert(Number)" to automatically convert values to Numbers when setting the "age" property.

#143

Bug fix for setting ObservableArray items by index

18 Oct 18:41
Compare
Choose a tag to compare

canjs/canjs v6.1.3 Release Notes

can-observable-array

class MyArray {
  static items = type.convert(Number);
}

let arr = new MyArray();
arr[0] = "4";

console.log(arr[0]); // 4

type.Integer improvements and minor can-type doc updates

17 Oct 20:17
Compare
Choose a tag to compare

canjs/canjs v6.1.2 Release Notes

can-dom-mutate

can-type

  • Fixes use with can-query-logic so you can do stuff like greater/less than comparing integers.
  • Fixes converting types like {} that don't have an obvious integer conversion. Used to convert to NaN but that is not a valid integer according to Number.isInteger so this has been changed to convert to 0 instead.

v6.1.1