Repository navigation
refactor: replace lodash helpers with native alternatives - #45
Conversation
|
Thanks for taking a look at this. I'm in favour of removing lodash - it's a big dependency. I do like that fact that its functions are all null-safe though; it simplifies some of the code. I'll merge the simplify branch anyway, and you can take a look at your changes again. |
|
@nomiddlename I've pushed the update code. Please take a look. PS On a side note these two tests failed on my machine because of different timezone. |
|
Thanks for this. What timezone are you in, by the way? I'll see if I can make those tests a bit more reliable. |
|
I'm in Central European Summer Time (GMT+2). Did some experiments in REPL: Looks like the first offender is Once this is fixed you can replace timestamps in tests with |
See log4js-node#45 (comment) for the reasoning behind the change.
|
Published to NPM in v2.0.0 |
To reduce amount of non critical dependencies given that readability and expressiveness is comparable.
I just noticed that this PR conflicts a bit with https://github.com/log4js-node/streamroller/tree/simplify branch. I can rebase it once
simplifyis merged.It also looks like it will be rather easy to eliminate
asyncfrom production dependencies.What do you think about these changes?