On 30/08/2019 14:44, Ben Rosser wrote:
On Fri, Aug 30, 2019 at 3:59 AM Tom Hughes <tom(a)compton.nu>
wrote:
>
> On 29/08/2019 20:01, Ben Rosser wrote:
>
>> Hm, does it make sense then to have a compatibility package for lodash3?
>
> I think we may have to multiversion it yes. Been thinking that for
> a while.
>
> I'll try and have a look at doing a lodash4 version of the spec
> over the weekend...
Great, thanks for looking into it!
So I now have a working spec for v4 and having now refreshed
my memory of how it all works I think the issues may not be as
bad as I remembered.
Anything which uses nodejs-lodash and loads the whole thing, or
a whole group, so things like:
require("lodash")
require("lodash/array")
should be fine, obviously modulo any changes to how the lodash
methods work or removal of old methods.
So should anything which uses one of the split out single method
modules like nodejs-lodash-pad.
Both nodejs-lodash-compat and nodejs-lodash-node go away but there
is appears to be nothing actually using them.
The remaining issue is things using nodejs-lodash and loading an
individual method with something like:
require("lodash/array/chunk")
which would now need to change to:
require("lodash/chunk")
Given all this I'm kind of tempted to just go for it and do the
update and then fixup the dependants, which are far less than my
memory suggested, maybe because so many things have been retired
now.
Tom
--
Tom Hughes (tom(a)compton.nu)
http://compton.nu/