Skip to content

Releases: canjs/can-define

deleteKey

06 Jul 13:31
Compare
Choose a tag to compare

Adds a deleteKey that can only really delete expandos: #352

also fixes a problem where type converters were not being called with the right this #349

v2.4.0

04 Jul 03:38
Compare
Choose a tag to compare
  • Add compatibility with how webpack builds for production #346
  • Add "use strict" #347

v2.3.7

04 Jul 03:37
Compare
Choose a tag to compare

Revert "Remove documentation on deprecated set() calls" 852de76

Removes previously deprecated documentation on Map/List.prototype.set

02 Jul 18:28
Compare
Choose a tag to compare

fixes getOwnKeys on a basic DefineMap

14 Jun 13:42
Compare
Choose a tag to compare

Makes Type: Type work with enum types for can-query-logic

13 Jun 20:02
Compare
Choose a tag to compare

fix warning messages for default values

04 Jun 14:13
Compare
Choose a tag to compare

Bye can-util, hello can-data-types

18 May 01:51
Compare
Choose a tag to compare

This removes can-util by using can-diff and some other packages. It also uses can-data-type's MaybeString, MaybeNumber, etc types.

identity

14 May 21:32
Compare
Choose a tag to compare

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

fixes incorrect warning message

02 May 15:44
Compare
Choose a tag to compare