Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Upgrade to lodash 4 #9684
Upgrades lodash from 3.10.0 to 4.13.1.
I carefully worked through the 4.0.0 upgrade guide, though by itself that wasn't sufficient to fix all of the apps tests; there were a few later changes that broke things too.
Affected by the upgrade
What's up with
The one-argument version of [`_.zipObject`](https://github.com/lodash/lodash/blob/3.10.1/doc/README.md#_zipobjectprops-values) has become [`_.fromPairs`](https://lodash.com/docs#fromPairs).
The boolean `immediate` option for `_.debounce` has been deprecated, so we should use the `leading` and `trailing` options explicitly.
The [`_.contains`](https://github.com/lodash/lodash/blob/3.10.1/doc/README.md#_includescollection-target-fromindex0) alias has been removed in favor of [`_.includes`](https://lodash.com/docs#includes).
Following the same pattern we did for global locale loading. That was working for netsim tests when you ran the whole suite, but if you used the --entry option some tests would never try to load the global locales, only netsim locales, and it would break again.
Lodash's _.debounce no longer executes callbacks immediately for debounce durations of zero. Updated tests to reflect this with delays of 0ms to yield and let the debounce fire. I tried everything I could to get lolex (time simulation library) to work, but lodash stubbornly closes around window.Date so there's not much I can do.