Just a salad
First minor version bump in the 1.X cycle.
The main feature in this version is the usage of Ember.isEqual
to compare options instead of a simple ===
operator.
Using this comparator function is unlikely to break anyone code, but I thought that it deserved a minor bump.
Among of the advantages of this are:
- Better results when comparing dates. While in JS,
new Date(2017, 5, 5) !== new Date(2017, 5, 5)
because objects are compared by reference, this is hardly ever the intended behaviour.Ember.isEqual(new Date(2017, 5, 5), new Date(2017, 5, 5))
will correctly return true. - Allows the user to define their own way of comparing equality. If an object defines an
isEqual(other) {}
method it will be used instead of a simple===
. This allows users to decide that two POJOs should be considered equal if theirid
property is the same.