-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade lodash dependency to 4.* #230
Comments
This is certainly something that would be nice to have, it's quite a large undertaking though. Wondering if anyone feels they have the time to carve out to do this? |
it may be easy-ish to do using ampersand-family-meeting . could be a good first run with it. need to finish the PR logic, which won't be hard. doesn't cover the package publishing, but could with a little elbow grease :) |
Would love to see this. I'm working on migrating a library to lodash 4 using babel-plugin-lodash and the library doubled in size because ampersand is pulling in lodash 3 |
@cdaringe Is it really so difficult to update all packages to use a new lodash? |
@dschissler, full time job, school, and life! you're welcome to start staging these PRs on your own if you want. we'd happily accept them :). the upgrade is not so seamless
so, in summary, (not to be curt), it is difficult and very time consuming. that's why i started working on ampersand-family-agenda--to help automate these upgrades and to ease the synchronization of our loosely-coupled framework! |
Hey @cdaringe Thanks for all the details. Why is |
hey @pgilad! how's it goin man? j dalton explained in a presentation that the by example: // get-set-dot-strategy.js
var set = require('lodash.set');
var get = require('lodash.get'); // get-set-slash-strategy.js
var set = require('lodash/set');
var get = require('lodash/get');
|
@cdaringe Once everything is upgraded when using NPM 3 it would be the same since it installs flat dependencies. Just sayin'. |
@cdaringe Would we bump the major version on every single post 1.0 module? Also I think that if someone committed to upgrading about 20 core packages that they should be allowed a commit freeze for a defined period of time to get it all done. It could become very annoying if tiny commits were sneaked into various packages during this conversion. |
I'm not sure how I would test it since I'm using only the following in my project:
|
@cdaringe thanks for the info man! I could get the upgrades in some of the packages if you want |
hey @dschissler, the dot strategy inlines the dependencies, so even if npm3 flattens deps, they will still be duplicated in each lodash module :)
@pgilad, if you'd like to! it's really about keepin' the users happy by this point, and churning to keep our deps up to date. maybe greenkeeper is something we should consider? i'm definitely not opposed to getting the ball rolling, i'm just swamped ATM |
Given our test coverage, and the fact that greenkeeper makes PRs from local branches (i.e. the saucelabs credentials would show up) I'd be all for enabling greenkeeper. |
@cdaringe Can you verify this is the proper direction? |
Looks good @pgilad and that's a good module to start in cause it's at the top of the dependency tree. |
lodash
is currently on version4.2.1
but all ofampersand-*
packages are using3
. I think that a complete ampersand project wide upgrade should occur with perhaps a major version bump for each ampersand package. lodash4.0.0
has been out since2016-01-12
.Maybe wait another month and then bump it?
The text was updated successfully, but these errors were encountered: