Skip to content

Releases: canjs/can-map-define

Add `resolver` behavior

21 Aug 18:13
Compare
Choose a tag to compare

This adds the value behavior from DefineMap to can-map-define. Since can-map-define already has a behavior named value (to set a starting value to a property), this new behavior has been named resolver instead.

QUNIT2 upgrade

28 May 18:35
Compare
Choose a tag to compare

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

#104

Incorrect documentation

08 May 02:51
Compare
Choose a tag to compare

Update to use Symbol instead of `__inSetup` property

26 Apr 20:15
Compare
Choose a tag to compare

Installed latest can-map and using Symbol to replace __inSetup property check.

Ref - canjs/canjs#4705

v4.3.4

29 Aug 14:45
Compare
Choose a tag to compare

getOwnEnumerableKeys accounts for default behavior values

This patch release fixes an issue with getOwnEnumerableKeys ignoring the default behavior values:

var VM = CanMap.extend({
  define: {
    "*": {
      serialize: false
    },
    notEnumerable: {
      value: "no"
    },
    enumerableProp: {
      serialize: true,
      value: "yes"
    },
    notEnumerable2: {
      serialize: false,
      value: "maybe"
    }
  }
});

That meant, calling canReflect.getOwnEnumerableKeys with instances of VM will return all keys but notEnumerable2. This release fixes that, so default behavior values are used first but any local property value can override the default.

Implement getOwnEnumerableKeys

31 Jul 04:06
Compare
Choose a tag to compare

v4.2.0

04 Jul 05:47
Compare
Choose a tag to compare
  • Add compatibility with how webpack builds for production #74
  • Add "use strict" #73
  • Remove uses of can-util #75

making hasKey work for functions

10 May 19:34
Compare
Choose a tag to compare

implementing can.hasKey Symbol

09 May 21:41
Compare
Choose a tag to compare

Updated docs, dependencies, and added cycle detection

31 Oct 22:37
Compare
Choose a tag to compare
  • Update testee to the latest version 🚀 #38
  • Update generator-donejs to the latest version 🚀 #39
  • Remove generated API docs from the README #42
  • Remove all prerelease package refs #44
  • Add a cycle detection script to test process #48
  • Update docs with new @parent & @collection #52
  • Remove redundant docs #53

v3.1.1...v3.1.2