Releases: canjs/can-define
Releases · canjs/can-define
deleteKey
v2.4.0
v2.3.7
Removes previously deprecated documentation on Map/List.prototype.set
fixes getOwnKeys on a basic DefineMap
v2.3.5 2.3.5
Makes Type: Type work with enum types for can-query-logic
fix warning messages for default values
Bye can-util, hello can-data-types
This removes can-util by using can-diff
and some other packages. It also uses can-data-type
's MaybeString
, MaybeNumber
, etc types.
identity
Adds the identity
property definition:
import {DefineMap, Reflect} from "can";
const Todo = DefineMap.extend("Todo",{
id: {type: "number", identity: true},
name: "string",
complete: "boolean"
});
var todo = new Todo({id: 6, name: "mow lawn"});
Reflect.getIdentity(todo) //-> 6