Skip to content

Releases: canjs/can-reflect

Making it possible to serialize observable built-ins

27 Aug 20:35
Compare
Choose a tag to compare

This is necessary so you can use StacheElement as route.data as described in canjs/can-stache-element#56.

#168

QUNIT2 upgrade

28 May 19:39
Compare
Choose a tag to compare

This updates the tests to use [email protected].

#160

Treat Date objects as primitive in schema.cloneKeySort()

24 May 04:49
Compare
Choose a tag to compare

cloneKeySort() creates a clone of an object with all keys and subkeys added in alphabetical order. This ensures that regardless of platform and JS engine, two objects with the same keys and values can stringify to the same string, regardless of the order in which keys were added.

However, Dates were being treated as any other object by cloneKeySort(), and the output would replace date objects with empty plain objects. The value of a Date isn't based on enumerable properties, but rather as internal state that is reflected in string representations. By treating Dates as primitives, more information is preserved when making the clone.

not using relative module path with steal-clone

20 Dec 20:49
Compare
Choose a tag to compare

Using canSymbol polyfill instead of another polyfill

20 Dec 19:59
Compare
Choose a tag to compare

Allows hasOwnKey to work on null derived objects

13 Nov 19:38
Compare
Choose a tag to compare

This fixes this case:

var obj = Object.create(null);
obj.foo = "bar";

reflect.hasOwnKey(obj, "foo");

IE 11 Compatibility

16 Oct 19:59
Compare
Choose a tag to compare

Fixes missing function.name in IE 11

assignDeep assigns deep

27 Aug 20:14
Compare
Choose a tag to compare

For #144, assignDeep on a list was doing an update on the items directly within the list.

Fixes documentation on update and updateDeep

14 Aug 20:53
Compare
Choose a tag to compare

This fixes the documentation and code examples for update and updateDeep.

Bugs

v1.17.1

20 Jul 12:28
Compare
Choose a tag to compare
  • Fixed syntax highlighting bug in documentation #111