question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

David tells dependency is insecure. Is this a bug, or am I wrong?

See original GitHub issue

I have an issue with one of my repos. The badge shows insecure dependencies and this belongs to jQuery, as the detail page of david told me (and as this is the only dependency too).

https://david-dm.org/eisbehr-/jquery.lazy

The plugin depends on any version greater or equal than 1.7.2. This is simply to keep the range as wide as possible, even for very old projects, like some IE stuff some companies has still live.

My question is simply, why is my dependency unsecure? On a new install, the most common version 3.2.1 would be picked, what is secure. In my eyes this is a wrong message / badge here. I don’t depend on 1.7.2 directly, I depend on everything above too. On a normal install the latest version would be picked.

Can someone tell me the problem?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
blgmcommented, Apr 17, 2018

If jQuery were a peer dependency of your module, then users would have to install it independently (it would not be automatically installed when your module is installed). Because David-dm does not check that peer dependencies are up to date, your badge would go green.

I realise this is a tradeoff because it changes the contract with your users. But perhaps a peer dependency is a better description of the relationship with jQuery?

1reaction
blgmcommented, Apr 16, 2018

Would a peer dependency be an option?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · alanshaw/david-www · GitHub
eyeglasses: David helps keep your Node.js project dependencies up to date. ... David tells dependency is insecure. Is this a bug, or am...
Read more >
How to solve npm install throwing fsevents warning on non ...
The library site states that this audit error isn't a bug of the library, it's a bug of NPM. Why? Assuming that we...
Read more >
When not to use package-lock.json - DEV Community ‍ ‍
In practise, I have found it extremely rare that dependencies or transitive dependencies break or introduce bugs within semver changes that ...
Read more >
Does self dependency bring insecurities? Is that even scientific?
Dependency FIRST creates the feeling of being SECURE. But that is an illusion. We were born FREE SPIRITS and dependency then is fast...
Read more >
Log4j Is One Big 'I Told You So' for Open Source Communities
As Steven J. Vaughan-Nichols wrote of the bug in the open source Java logging library Apache Log4j earlier this week, we are in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found