Changelog History
Page 3
-
v6.0.0-pre.5
August 07, 2019 -
v5.33.3 Changes
May 07, 2020β¬οΈ Upgrade
can-ajax
andcan-make-map
with versions that fix package/main to work better with tools like webpack, babel and jest. -
v5.33.0 Changes
September 05, 2019π can-connect
- π can-connect v3.2.3 - Remove can-util
- π can-connect v3.2.4 - Bump the semver range for can-type
π can-control
π can-fixture-socket
π can-map-define
- π can-map-define v4.4.0 - Add
resolver
behavior
This adds thevalue
behavior from DefineMap tocan-map-define
. Sincecan-map-define
already has a behavior namedvalue
(to set a starting value to a property), this new behavior has been namedresolver
instead.
π can-ndjson-stream
π can-reflect
π can-simple-observable
π can-type
π can-vdom
π can-view-scope
π can-view-scope v4.13.5 - Improve the βunable to find keyβ warning
π Improves the missing key warning by logging of the property that can read for example:var context = { foo: true };var scope = new Scope(context);var scopeKeyData = scope.computeData("foo.length", { warnOnMissingKey: true});scopeKeyData.read(); // -> Unable to find key "foo.length". Found "foo" with value: true
π can-view-scope v4.13.6 - Handle undefined values on not found key warning
β This fixes the not found key warning when a property is not defined in the scope:var scope = new Scope({});var scopeKeyData = scope.computeData("foo.length", { warnOnMissingKey: true});scopeKeyData.read(); // -> Unable to find key "foo.length".
-
v5.32.0 Changes
August 20, 2019π New features
- π can-bind v1.5.0 - Bind in domQueue
- π can-define v2.8.0 - Add support for value and oldValue in events
- π can-diff v1.5.0 - Include new patch-sort function
- π can-dom-mutate v1.3.10
- π can-observable-array v0.6.0
- π can-observable-array v0.7.0
- π can-observable-array v0.8.0
- π can-observation v4.2.0 - Making it possible to order observation updates by their depth automatically
- π can-queues v1.3.0 - Adding dom-queue
- π can-simple-dom v1.7.0 - Add Compare document position
- π can-type v0.2.0 - 0.2.0
π Bug fixes
- π can-attribute-observable v1.2.7 - Use getAttributeNS() for SVG properties
- π can-bind v1.5.1 - Adding missing can-log dependency
- π can-connect v3.2.2 - Remove npm version dependency
- π can-dom-mutate v1.3.11 - Fix setting of SVG attributes
- π can-event-queue v1.1.7
- π can-map v4.3.9
- π can-map-define v4.3.9
- π can-observable-array v0.6.1 - Handle type definitions
- π can-observable-array v0.6.2 - Fix docs
- π can-observable-array v0.8.1 - updating docs to show first argument as an array and fixing examples
- π can-observable-mixin v0.4.1 - export normalizeTypeDefinition
- π can-observable-mixin v0.4.2 - Move export normalizeTypeDefinition
- π can-observable-mixin v0.4.3
- π can-observable-mixin v0.4.5 - Reverting change that made type conversion not work in production
- π can-queues v1.3.1
- π can-simple-observable v2.4.3 - Implementing setElement symbol on SetterObservable
- π can-stache v4.17.20 - Named Partials render string result in stringOnly state
- π can-type v0.2.1 - making type checking do type conversion in production
- π can-type v0.2.2
- π can-view-callbacks v4.4.1
- π can-view-scope v4.13.3 - Implement can.setElement symbol
- π can-view-scope v4.13.4 - Add links to scope.root deprecation warning
- π can-view-scope v4.13.5 - Improve the βunable to find keyβ warning
-
v5.32.0-pre.0
August 19, 2019 -
v5.31.0 Changes
August 14, 2019π canjs/canjs v5.31.0 Release Notes
π This release highlights an updated can-query-logic with support for new
$all
,$and
, and$not
comparisons.π can-define
- π can-define v2.7.21
π can-define v2.8.0 - Add support for value and oldValue in events
Dispatched events now have avalue
that represents the new value, and anoldValue
for the old value.defineMap.listenTo("prop", (ev) => { console.log("New value", ev.value, "Old value", ev.oldValue); });
π can-query-logic
- π can-query-logic v1.2.0 - $all, $not, and $and
π This adds support for 3 new comparison operators taken from Mongo's operators.
$all
The
$all
comparison matches collections which contain all of the provided values. For example given the dataset:[{ "id": "Canada", "colors": [ "red", "white"] }, { "id": "Mexico", "colors": ["red", "white", "green"] }, { "id": "USA", "colors": ["red", "white", "blue"] } ]
The query
{ colors: { $all: ["red", "white"] } }
would match all 3 entries. The query{ colors: { $all: ["blue"] } }
would match only USA.$not
The
$not
comparison can be used to negate any other comparison. For example given the dataset:[{ "name": "Joe", "age": 45 }, { "name": "Zoey", "age": 22 }]
The query
{ age: { $not: { $lt: 40 } } }
matches Joe. It is exactly equivalent to{ age: { $gte: 40 } }
.$and
The
$and
comparison combines multiple other comparisons into a single grouping. It can be used in combination with the two above comparisons like so. Given the dataset:[{ "id": "Canada", "colors": [ "red", "white"] }, { "id": "Mexico", "colors": ["red", "white", "green"] }, { "id": "USA", "colors": ["red", "white", "blue"] } ]
The query
{ $and: [{ colors: { $all: ["red, "white"] } }, { colors: { $not: { $all: ["blue"] } } } ] }
matches Canada and Mexico.- π can-query-logic v1.2.1 - Document $all, $and, and $not
π This adds docs for the new comparison operators.
-
v5.30.2
August 05, 2019 -
v5.30.1 Changes
July 17, 2019π Docs
-
v5.30.0 Changes
July 17, 2019π New Ecosystem Packages
StacheElement, ObservableObject, ObservableArray
π These are renamed versions of
StacheDefineElement
,DefineObject
, andDefineArray
that support asstatic props
instead ofstatic define
(static define
is also still aliased for apps that were using this).class Pet extends ObservableObject { static props = { name: { type: String, required: true } }; }class Pets extends ObservableArray { static items = Pet; }class PetsApp extends StacheElement { static view = ` {{#for(pet of pets)}} \<p\>{{pet.name}}\</p\> {{/for}}`; static props = { pets: { type: type.convert(Pets), get default() { return [{ name: "shadow" }, { name: "marshmallow" }]; } } }; }customElements.define("pets-app", PetsApp);
can-construct-super
π¦ This package already existed, but the
constructSuper
named export was added to the ecosystem module.β Removed Ecosystem Packages
- π
can-stache-deifne-element
- this was removed but theStacheDefineElement
named export still exists (it is an alias forStacheElement
) - π
can-define-object
- this was removed but theDefineObject
named export still exists (it is an alias forObservableObject
) - π
can-define-array
- this was removed but theDefineArray
named export still exists (it is an alias forObservableArray
)
- π
-
v5.29.7 Changes
July 17, 2019π Bug fixes
- π can-define v2.7.20 - Fix warning code
- π can-define-array v0.4.15
- π can-define-mixin v0.3.12
- π can-define-mixin v0.3.13
- π can-define-mixin v0.3.14
- π can-define-object v0.1.6
- π can-define-object v0.1.7
- π can-dom-data v1.0.3
- π can-dom-data-state v1.1.2
- π can-stache-bindings v4.10.9 - preventing events like on:click from creating viewmodels on normal elements
- π can-stache-define-element v0.7.5
- π can-stache-define-element v0.7.6
- π can-type v0.1.11 - type.maybeConvert(Boolean) returns incorrect Schema
- π can-type v0.1.12
- π can-type v0.1.13