[wp-trac] [WordPress Trac] #34350: Update Backbone to 1.2.3 and Underscore to 1.8.3

WordPress Trac noreply at wordpress.org
Wed Feb 17 01:13:44 UTC 2016


#34350: Update Backbone to 1.2.3 and Underscore to 1.8.3
--------------------------------------------+------------------------------
 Reporter:  caseypatrickdriscoll            |       Owner:  adamsilverstein
     Type:  enhancement                     |      Status:  assigned
 Priority:  normal                          |   Milestone:  4.5
Component:  External Libraries              |     Version:  4.4
 Severity:  normal                          |  Resolution:
 Keywords:  needs-testing has-patch commit  |     Focuses:  javascript
--------------------------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:  needs-testing has-patch => needs-testing has-patch commit


Comment:

 Here is a summary of this upgrade which could be useful for a commit
 message and expanded to a make post.

 ----

 Update Backbone and Underscore to the latest versions. Backbone, from
 1.1.2 to 1.2.3. Underscore, from 1.6.0 to 1.8.3.

 The new versions of Backbone and Underscore offer numerous small bug fixes
 and some optimizations and other improvements. Check the
 [http://backbonejs.org/#changelog Backbone changelog ] and
 [http://underscorejs.org/#changelog Underscore changelog] for the full
 details.

 The new versions include some significant changes that may break existing
 code. Plugins or themes that rely on the bundled Backbone and/or
 Underscore libraries should carefully check funcitonlity with the latest
 versions and run any available run unit tests to ensure compatibility.

 Some changes of note that were addressed in core as part of this upgrade:

         * `_.flatten` no longer works with objects since Underscore.js
 1.7. `_.flatten()` working with objects was an unintended side-affect of
 the implementation, see
 [https://github.com/jashkenas/underscore/issues/1904#issuecomment-60241576
 underscore#1904]. Check any `_flatten` usage and only flatten arrays.
         * As of Backbone 1.2.0, you can no longer modify the `events` hash
 or your view's `el` property in `initialize`, so don't try to modify them
 there.
         * Since Underscore 1.7, Underscore templates no longer accept an
 initial data object. _.template always returns a function now so make sure
 you use it that way.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34350#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list