Releases: canjs/canjs
Releases · canjs/canjs
v6.6.2
Couple of fixes:
v6.6.1
Couple of documentation fixes:
canjs/can-param#18
canjs/can-deparam#20
#5510
v6.6.0
New features:
- Remove can-connect-feathers and can-define-validate-validatejs (legacy packages) #5497
Documentation:
v6.5.0
New features:
- can-observable-array Observable class fields support
- can-observable-object Observable class fields support
- can-stache-element Observable class fields support
Bug fixes:
- can-ajax Fixing package/main to work better with webpack/babel
- can-observable-array Dispatch patches for item mutation with 0 value
- can-observable-array Fix patches dispatched after mutate methods
- can-observable-array Fix expando set
- can-observable-array propertyDefaults for observable class fields
- can-observable-array Add babel plugin-proposal-class-properties plugin
- can-observable-array Organize tests for CanJS production tests
- can-observable-object propertyDefaults for observable class fields
- can-observable-object Fix setKeyValue for class fields
- can-observable-object Organize tests for CanJS production tests
- can-observable-object _data and _computed can be read in production mode
- can-stache-element Test organization for CanJS production
Documentation:
v5.33.3
Upgrade can-ajax
and can-make-map
with versions that fix package/main to work better with tools like webpack, babel and jest.
v6.4.0
Fix can-view-live
package.json
path for documentation generation.
v6.3.1
canjs/canjs v6.3.0 Release Notes
Bug Fixes
can-queues
- Since the meta gets completely re-created when a task is re-enqueued into the dom queue, it's important to keep the logging data in the new meta as well.
Documentations
can-event-queue
- For documentation needs, fix the isntance wording to instance.
can-observable-array
- Fix listening to event documentation.
Enhancements
can-connect
- move can-observable-* packages to development dependencies (devDependencies)
v6.3.0
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.