canjs v6.3.0 Release Notes
Release Date: 2020-01-22 // over 4 years ago-
π 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-map v4.3.12
π 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 // -> nullfoo.undefinedProp // -> undefined
and
class Foo extends ObservableObject() { static get props() { return { nullProp:null , undefinedProp: undefined }; } }var foo = new Foo();foo.nullProp // -\> nullfoo.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.
- π can-control v5.0.1 - Fix a queued teardown crash with viewModel listeners