v6.3.0
bmomberger-bitovi
released this
22 Jan 22:08
·
33 commits
to master
since this release
canjs/canjs v6.3.0 Release Notes
can-connect-ndjson
can-control
- can-control v5.0.1 - Fix a queued teardown crash with viewModel listeners
Running can-control teardowns from the dom queue (as can-view-live now does) causes control teardown and rebinding of action listeners to run out of order, which throws an error. This release prevents the error, and also delays teardown to the mutate queue if triggered from the dom queue.
See canjs/can-control#143 for more
can-define-realtime-rest-model
can-define-rest-model
can-dom-mutate
- can-dom-mutate v2.0.8 - Work around IE11 contains() that does not recognize text nodes
See canjs/can-dom-mutate#72 for more.
can-map
can-memory-store
can-observable-mixin
- can-observable-mixin v1.0.7 - Set default to null / undefined without type
This fixes setting property value tonull
orundefined
, for example:
class Foo extends ObservableObject() {
static get props() {
return {
nullProp: { default: null },
undefinedProp: { default: undefined }
};
}
}
var foo = new Foo();
foo.nullProp // -> null
foo.undefinedProp // -> undefined
and
class Foo extends ObservableObject() {
static get props() {
return {
nullProp: null ,
undefinedProp: undefined
};
}
}
var foo = new Foo();
foo.nullProp // -> null
foo.undefinedProp // -> undefined
canjs/can-observable-mixin#154
can-route
- can-route v5.0.2 - Prevent .register from reading route data
- Prevents
canRoute.register
from readingcanRoute.data
- Setting
data
before or afterregister
ing the routes.
- can-route v5.0.1 - Add a warning when .data is set after .register() is called
.register()
will read.data
when it’s called, so setting.data
later may have unintended consequences. The new warning lets you know when.data
is set after.register()
is called.
can-simple-dom
- can-simple-dom v1.7.1 - Allow a Node to report that it contains itself
Makesnode.contains(node)
returnstrue
can-stache
- can-stache v5.1.1 - for(number) docs fix
Documented{{scope.index}}
correctly. - can-stache v5.1.0 - for(integer)
PR: canjs/can-stache#709
This enables for loops to loop through numbers:
{{# for(this.count) }}
{{ scope.index }}
{{/ for }}
can-stache-bindings
- can-stache-bindings v5.0.4 - Clean up a variable defined twice
Removes a variable was defined twice in the code.
canjs/can-stache-bindings#556
can-stache-element
- can-stache-element v1.0.3 - Import
can
package in docs
Usecan
package in documentation instead ofcan/everything
:
import { StacheElement } from "can/everything";
-> import { StacheElement } from "can";
can-super-model
can-type
can-view-live
- can-view-live v5.0.3
- can-view-live v5.0.3-pre.0
- can-view-live v5.0.2 - Use the DOM queue for all DOM updates
Previously, some DOM updates happened on the notify queue, others on the dom queue, yet others (list removal) immediately. This caused bugs and made live updates harder to reason about.
With this PR, all updates in can-view-live are queued on the dom queue and therefore updated in DOM order, whether they are html, text, list, or attribute updates.
See #155 for more.
- can-view-live v5.0.2-0
- can-view-live v5.0.1 - Add docs in the main file
This puts back the package documentation to the main file.