1.2.2

Back | Minified | Changelog
2012-02-07

The most noteworthy update for v1.2.2 is a major performance optimization for Object.merge. This method is also the hook for Object.clone so this will make cloning faster as well. Shallow merges, which were previously 10x slower than jQuery's $.extend are now nearly as fast, despite doing a number of checks that jQuery is leaving out, namely hasOwnProperty. Deep merges, which were about 5x slower before optimization are now almost twice as fast as jQuery.

Additionally deep cloning will now handle Date and RegExp objects as well, to prevent instance collisions (this is something that most other libs don't even deal with). Alongside the optimizations for Object.merge were some other overall internal performance optimizations as well.

Also fixed an issue with UTC date parsing.