-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
lodash - move to npm, upgrade to lodash 4 #4578
Conversation
this moves all lodash to npm that means we no longer have lodash 3 available anywhere
we already had a bunch of comments re lodash4 compatibility, fixing those
instead of +-Infinity as in lodash3
and given the one used is _.isEqual, we don't really need `differenceBy`
except we have all the shims, so using JS-native includes
Checked commits https://github.com/himdel/manageiq-ui-classic/compare/7ac0a2a42f4d2376954370ce307ad6760729af0f~...30383e3da9b487cdebc57e1cd531c4b3bac87d47 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Also verified ui-components should no longer depend on lodash3 at all. |
@miq-bot remove_label wip |
var seriesIndex = _.contains(['Pie', 'Donut'], generate_args.miqChart) ? index : index - 1; | ||
var pointIndex = _.contains(['Pie', 'Donut'], generate_args.miqChart) ? index : data.index; | ||
var seriesIndex = ['Pie', 'Donut'].includes(generate_args.miqChart) ? index : index - 1; | ||
var pointIndex = ['Pie', 'Donut'].includes(generate_args.miqChart) ? index : data.index; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope we got a shim for this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
es6-shim :) EDIT: or array-includes
maybe :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This moves all lodash to npm - that means we no longer have lodash 3 available anywhere, and are always using lodash 4.
Following https://github.com/lodash/lodash/wiki/Changelog#compatibility-warnings to fix any incompatibilities.
Issue #3734