4 ms·
Say you depend on foo@1.0.0, and some of your dependencies themselves depend on foo@1.0.1, foo@1.0.2, and foo@1.03. When you install you'd get 4 copies of nearl
by cjpearson 5y ago
Say you depend on foo@1.0.0, and some of your dependencies themselves depend on foo@1.0.1, foo@1.0.2, and foo@1.03. When you install you'd get 4 copies of nearly the exact same library. On the other hand, if everyone of those packages used a tilde or caret, they'd all depend on foo@1.0.3.
That's the benefit, but it's not worth it in my opinion. Pin your dependencies and use a package-lock.json for transitive dependencies.