canjs icon indicating copy to clipboard operation
canjs copied to clipboard

[email protected] - version mismatch of can-observable-array with sub-dependency in can-connect

Open rjgotten opened this issue 4 years ago • 4 comments

The [email protected] package takes locked version dependencies on [email protected] and [email protected]. [email protected] in turn takes an open-ended dependency ^0.7.0 for can-observable-array.

But because it is a zero major version, the eligible range is effectively locked to [0.7.0 ... 0.8.0). NPM cannot consolidate these two versions for deduping and thus gives can-connect its own local copy of [email protected]

rjgotten avatar Jan 29 '20 15:01 rjgotten

@rjgotten is there an issue with can-connect having its own version?

phillipskevin avatar Mar 03 '20 19:03 phillipskevin

Browser-bloat, mostly. Which can become larger if dependencies-of-dependencies start coming into play.

rjgotten avatar Mar 04 '20 15:03 rjgotten

@rjgotten to have less bloat i always use the ecosystem.mjs this reduces the dependency package hell. let all your code depend on the mjs build that also reduces install time simply wget it from unpkg.com i would not use the npm packages.

frank-dspeed avatar Mar 10 '20 07:03 frank-dspeed

@frank-dspeed You know; that is actually not a bad idea. Will have to bring that up with my colleagues and see if we can give that a shot. Thanks :+1:

rjgotten avatar Mar 10 '20 09:03 rjgotten