Back | Minified | Changelog | Cautionlog

The first thing to note is that as of this version I've added a new file to the repo called "CAUTION". This file a filtered changelog with the biggest and most user-facing changes spelled out with their level of severity. If something breaks when updating check here first!. A couple of major API changes are happening with this release, so I figured now would be a good time to add this.

Alphanumeric Sorting

The first major change may be a bit subtle as it has no API associated with it, in fact 3 methods have now been deprecated: String#compare, Number#compare, and Date#compare. These methods have been junked in favor of a much more robust internal sort mechanism when sorting on strings.

First a note about compare. As it turned out, only strings had a special requirement for this in the first place, both other methods were basically doing a simple `a "1 hour ago"

(24 60 60 1000).duration(); > "1 day ago" (8 24 60 60 * 1000).duration(); > "2 weeks ago"

This hooks into the dates locale system which is why it is added to the dates package despite being an extension of the Number class.

Other Changes

Object.merge now has more sensible defaults, with the deep merge flag as the 3rd parameter and the resolve parameter as the 4th. If you're reading this note the change and be sure to update your code if there is any!

A number of other bugfixes also went into this release.