Skip to content

Releases: canjs/can-list

QUNIT2 upgrade

28 May 18:31
Compare
Choose a tag to compare

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

#92

Dispatch patches when a can-list changes

24 May 05:05
Compare
Choose a tag to compare

With this release, changes to a can-list can be properly listened to with canReflect.onPatches().

The patches event is used in CanJS 4.x and later to communicate changes to an object's properties to a listener. This is also how list-like observables communicate push/pop/shift/unshift/splice updates. However, up until this release, patches were not being dispatched by can-list. This prevented live updates to never occur when a stache was reading specific indexes from a can-list. I.e. a stache tag like {{list[0]}} for some can-list would not change with the list.

4.2.0

31 Oct 16:18
Compare
Choose a tag to compare

Restore sort method to can-list:

  var myList = new List([
    "Marshall",
    "Austin",
    "Hyrum"
  ]);

  myList.sort();

// => ["Austin", "Hyrum", "Marshall"]

v4.1.0

05 Jul 22:03
Compare
Choose a tag to compare
  • Add "use strict" #74
  • Remove uses of can-util #75

supports correct patch events

03 May 16:45
Compare
Choose a tag to compare

Updated docs and added cycle detection

31 Oct 22:06
Compare
Choose a tag to compare
  • Add a cycle detection script to test process #60
  • Update docs with new @parent & @collection #63
  • Fix old docs and remove redundant docs #64

v3.2.1...v3.2.2

Remove pre-release package references

01 Sep 20:31
Compare
Choose a tag to compare

The post-can-reflect releases from CanJS 3.9 are all stable, so packages shouldn't be depending on pre-releases now.

Complete set of can-symbol registered symbols

01 Sep 20:31
Compare
Choose a tag to compare

With this release, can-list implements the symbols:

  • @@can.splice: pointing to the .splice() function
  • @@can.updateDeep and @@can.assignDeep: calls can-reflect.updateDeepList()
  • @@can.getOwnEnumerableKeys: returns all integer indexes and all keys pointing to data elements
  • @@can.unwrap: equivalent to calling .attr() with no arguments
  • @@can.serialize equivalent to .serialize()
  • @@can.onKeysAdded and @@can.onKeysRemoved: triggers the callback when new keys or indexes are added or removed, respectively.

can-reflect

23 Jun 02:49
Compare
Choose a tag to compare
v3.1.0

3.1.0

v3.0.5

03 May 21:44
Compare
Choose a tag to compare