@phillipskevin phillipskevin released this Nov 20, 2018 · 132 commits to master since this release

Assets 2

New features

IE11 support

IE11 is now included in the CanJS test suite:

image

A lot went into making this possible:

can-bind v1.1.0 - Log what caused the mutation to change.

image

can-list v4.2.0 - Restore sort method to can-list

Restore sort method to can-list:

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

  myList.sort();

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

can-queues v1.2.0 - lastTask, runAsTask

.lastTask is used to get the last task to execute.

queues.lastTask() //-> {fn, args, context, meta}

.runAsTask(fn, makeReasonLog) is used to run a function such that it can be logged in logStack().

var task = queues.runAsTask(function myTask(){
    queues.logStack()
}, function(){
    return ["myTask called on", this, "with",arguments];
});

can-stache-bindings v4.6.0 - allow multiple one-directional updates

If a parent component renders a child like:

<child value:to="this.value">

And child updates parent's value to "A"

And child renders:

<grand-child value:to="this.value">

Which causes an update to <child> which causes another update to <parent>, there would be 2 updates an the 2nd update was being prevented because of "cycles". We now allow 100 of these changes.

Bug fixes