-
Notifications
You must be signed in to change notification settings - Fork 448
Conversation
Hey there! Is there any chance this PR could be considered for review/release? Unfortunately, this is forcing us to temporarily fork this project with this PR merged at thelounge/thelounge#2021 so we can patch our project. We would love to depend on the official project instead! Thanks! |
@astorije Hey! Taking a look at this, I think it's a reasonable change, although I think it'd probably be better to do it without the Even with this change though, this library still uses |
@melloc the point of |
@melloc thelounge/thelounge#2021 merges this PR and also has a separate commit to throw away
I like how that issue was closed with this reason, which I think further proves my point.
|
Hey @melloc, thanks a lot for your response! 🙏
Indeed, and in our unfortunate fork, we have gotten rid of it: https://github.com/thelounge/node-ldapjs/commit/1aaf3e16118c14eda631f4eadf08ed61c2077de7 May I ask why it's unlikely to change? Unfortunately, until the dependency to
We are not going to be able to do that because, on top of @xPaw's comment, that would transfer the solution from the project owners (both our project and this one) to the user. Anyway, thanks again for your response and for picking up |
@melloc Is it possible to merge this PR to get rid of the dependency on Bunyan? It's linkage to dtrace-provider hurts ldapjs. In my case, I want to build an App that indirectly depends on ldapjs. All dependencies of the App is platform independent, except ldapjs. That means when I want to deploy my App to a customer's server by running |
Any update on the PR? New versions of Mojave do not play nicely with dTraceBindings and are the built-in logging utility is superfluous to our needs |
If anyone is still following this: I am merging it into the |
Please include a minimal reproducible example |
This PR removes the explicit dependency on Bunyan. It replaces the internal usage of Bunyan with a no operation logger,
abstract-logging
. This removes the overhead introduced by Bunyan when an external logger is not supplied. Bunyan is not a fast logger, and thus slows down theldapjs
library unnecessarily (see https://github.com/pinojs/pino#benchmarks).The documentation is also updated with some detail on what is required of a passed in logger and points out a couple compatible loggers.