ember-m3
Advanced tools
Changelog
v5.0.8 (2022-12-07)
for
and since
in deprecate() to be ember 4 compat (@serinyoon)Changelog
v5.0.7 (2022-06-28)
Changelog
v5.0.6 (2022-05-10)
Changelog
v5.0.5 (2022-05-10)
Changelog
v5.0.4 (2022-01-12)
Changelog
v5.0.0 (2021-09-02)
Array.isArray(value)
should not be used with M3 Arrays and will be returning true
in the future.With Ember Data versions 3.28.0
and above M3 Arrays can be used as native JS arrays other than in IE11 which doesn't support proxies. For example, instead of having to do m3Array.objectAt(0)
you can now do m3Array[0]
.
However, because M3 Arrays are now proxying JavaScript native arrays, the return value of Array.isArray(m3Array)
will change to now be true
,
so it is no longer safe to rely on Array.isArray
to distinguish between native and m3 arrays. If you need to detect an M3 Array we have now provided a utility method isM3Array
:
import isM3Array from 'ember-m3/utils/is-m3-array'
// To replicate old behavior of `Array.isArray(value)` you would need to do:
let isJSArray = Array.isArray(value) && !isM3Array(value)
isDirty
(@igorT)Changelog
v4.2.0 (2021-08-02)