Sugar v1.3.1 Release Notes
-
API Changes
- Matching by value in arrays is now opt-in and must meet certain requirements, namely being of class [object Object], and having
hasOwnProperty
. This will notably now exclude functions and host objects such as DOM elements. This means that such excluded objects will be matched by reference only. - ๐ Fixed issue with Array.create not properly creating arrays #171
- Empty objects now match themselves in arrays #176
- Date#setWeekday now returns a timestamp for consistency with Date#setDay #181
- ๐ Date#toUTC deprecated in favor of Date#utc and utc flag in Date#create.
- ๐ Date#setUTC deprecated in favor of direct use of utc flag.
- ๐ Date#setUTCWeek deprecated in favor of direct use of utc flag.
- ๐ Date#getUTCWeek deprecated in favor of direct use of utc flag.
- ๐ Date#setUTCWeekday deprecated in favor of direct use of utc flag.
- ๐ฏ Date#clone now clones the utc flag of the date.
- ๐ Fixed issue with DateRange causing an infinite loop when DST traverses back 1 hour.
- ๐ Better date disambiguation for ambiguous dates ("Sunday", etc)
- ๐ Various date parsing fixes.
- Timers set by delays are now exposed #170
- Function#debounce debounced function is now canceled instead of original.
- ๐จ Internal refactoring of class check handling.
- Matching by value in arrays is now opt-in and must meet certain requirements, namely being of class [object Object], and having