replaced by can-namespace
- when looping on objects replaced by
can-reflect.eachKey
- when looping on lists/arrays replaced by
can-reflect.each
can-reflect.eachKey
has better performance
replaced by can-reflect.isPromise
replaced by can-reflect.toArray
replaced by can-reflect.size
which can be used like the following:
import canReflect from 'can-reflect';
const isEmptyObject = (val) => canReflect.size(val) === 0;
replaced by can-reflect-isPlainObject
replaced by can-relfect.assignDeep
replaced by can-cid/map/map
replaced bycan-cid/set/set
replaced by can-dom-events.dispatch
it was used domDispatch.call(input, "input");
now we use can-dom-events.dispatch
in simpler way:
import domEvents from "can-dom-events";
domEvents.dispatch(input, "input");
input
is the target object (event dispatcher) and "input"
is the event type
replaced by can-assign
replaced by can-key/get/get
replaced by can-diff
:
can-diff/map/map
: for objects (maps).can-diff/list/list
: for list of objects (list of maps).- the
can-util
diff object contains objects withproperty
key this was changed withcan-diff
,property
key is replaced withkey
replaced by can-string
- However the function
string.sub
is repalcedcan-key/sub/sub
replaced by can-string-to-any
replaced by can-single-reference
replaced by can-log/dev/dev
replaced by can-globals/global/global
replaced by can-child-nodes
replaced by can-import-module
replaced by can-fragment
replaced by can-fragment
import frag from "can-fragment"