Releases: canjs/canjs
v6.2.6
v6.2.5
fromAttribute fixed
https://github.com/canjs/can-observable-bindings/releases/tag/v1.3.2 - fixes property initialization to use converter.
6.2.3
canjs/canjs v6.2.3 Release Notes
can-connect-feathers
- can-connect-feathers v6.0.0-pre.0
- can-connect-feathers v6.0.0 - Upgrade to support Feathers 4
This is an upgrade to can-connect-feathers to make it compatible with Feathers 4. Now can-connect-feathers can be used with CanJS 4, CanJS 5 and Feathers 4 apps.
A future version will upgrade for CanJS 6 compatibility.
- can-connect-feathers v7.0.0 - Support for CanJS 6
This updates can-connect-feathers for support for CanJS 6.
can-observable-array
- can-observable-array v1.0.4 - Implement
can.getOwnEnumerableKeys
symbol
This patch release fixes #71
v6.2.2
Fix can-observable-array bugs
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
- can-observable-mixin v1.0.4 - Get update and updateDeep to work on list-like objects
This patch release fixes.update
andupdateDeep
behavior when called on list-like objects.
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
canjs/canjs v6.2.0 Release Notes
This is a minor release with several error message improvements.
can-attribute-observable
can-observable-array
- can-observable-array v1.0.2 - Run properties set by index through the Array.items converter
When setting an item by index, it should run through theArray.items
converter. This will do so now:
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.
- can-observable-bindings v1.3.0 - The ability to pass a object to fromAttribute
This makes possible to pass a conversion object tofromAttribute
, the object must haveparse
andstringify
methods:
person: { type: Object, bind: fromAttribute( JSON ) }
Or
person: { type: Object, bind: fromAttribute( 'attribute-name' , JSON ) }
can-observable-mixin
- can-observable-mixin v1.0.3 - Enhance type error message
This enhance type error message by adding the value type in the message:
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.
Bug fix for setting ObservableArray items by index
canjs/canjs v6.1.3 Release Notes
can-observable-array
- can-observable-array v1.0.2 - Run properties set by index through the Array.items converter
When setting an item by index, it should run through theArray.items
converter. This will do so now:
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
canjs/canjs v6.1.2 Release Notes
can-dom-mutate
- can-dom-mutate v2.0.6 - Fix running in SSR
This is a fix for SSR, in the case where done-ssr will remove the document. - can-dom-mutate v2.0.7 - Fixes document test to reset
This fixes a test that broke any tests that might run after the "no document" test.
can-type
- can-type v1.1.2 - Documentation improvements and type.Integer fixes
This fixes a couple of bugs in type.Integer
- 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 toNaN
but that is not a valid integer according toNumber.isInteger
so this has been changed to convert to0
instead.