Skip to content

Releases: canjs/can-component

Removes use of nodeLists

04 Oct 17:14
Compare
Choose a tag to compare

This removes the use of can-view-nodelist from this package as nodeLists are no longer supported in CanJS. This is a breaking change, for compatibility with the other CanJS 6 libraries.

Include `new Component()` mutations with logStack

17 Sep 15:33
Compare
Choose a tag to compare

Now mutations are visible in queues.logStack when a component instantiated programmatically like the following:

var c = new Component({
  viewModel : {
    foo: value.bind(this,"bar")
  }
});

#360

QUNIT2 upgrade

28 May 17:58
Compare
Choose a tag to compare

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

#352

Fix test using code not compatible with IE11

07 May 18:01
Compare
Choose a tag to compare

initializeBindings: false and memory leak fixes

07 May 18:01
Compare
Choose a tag to compare

This release fixes memory leaks and provides a new option to use with SSR. When initializing a component that might never be added to the page, using {initializeBindings: false} will prevent bindings from being setup until it is.

let component = new MyComponent({
  initializeBindings: false
});

// Doesn't leak if not inserted!

Replaces can-dom-data-state with can-dom-data

06 May 13:12
Compare
Choose a tag to compare

Ensure memory is cleaned up when components are never inserted

06 May 12:06
Compare
Choose a tag to compare

Add deprecation notices in the docs

08 Apr 18:51
Compare
Choose a tag to compare

This adds deprecation notices about the following features:

#336

Fix viewModel function that returns a new type

29 Mar 15:24
Compare
Choose a tag to compare

This fixes the viewModel function that returns a new type like the following:

Component.extend({
   tag: "foo-bar",
   viewModel: function(attrs) {
        return CanMap.extend({
             foo: "bar"
        });
   }
});

#332

Fix highlighting in the docs

26 Mar 02:43
Compare
Choose a tag to compare

Fix highlight typo #331