socks icon indicating copy to clipboard operation
socks copied to clipboard

Why does the 2.7.3 tagged package-lock file show this as v3.0.0 now?

Open MartinFalatic opened this issue 1 year ago • 5 comments

I notice that there's a discrepancy between package.json and package-lock.json:

In https://github.com/JoshGlazebrook/socks/blob/2.7.3/package.json we see "version": "2.7.3"

But in https://github.com/JoshGlazebrook/socks/blob/2.7.3/package-lock.json we see "version": "3.0.0"

https://github.com/JoshGlazebrook/socks/compare/2.7.1...2.7.3

I've had a devil of a time trying to get this to upgrade as part of [email protected] (it refuses for no obvious reason to go past socks 2.7.1 despite its specifying the dependency as ^2.7.1):

https://github.com/TooTallNate/proxy-agents/issues/293#issuecomment-1960652215

Originally posted by @MartinFalatic in https://github.com/JoshGlazebrook/socks/issues/95#issuecomment-1960664658

MartinFalatic avatar Feb 23 '24 03:02 MartinFalatic

Ugh I think this happened when I was working on publishing the fix for the ip package. Let me publish 2.7.4, and also publish 2.8.0.

JoshGlazebrook avatar Feb 23 '24 04:02 JoshGlazebrook

Okay I've published [email protected] and I also published [email protected] both with correct package-lock.json

JoshGlazebrook avatar Feb 23 '24 04:02 JoshGlazebrook

The package-lock is ignored on published modules. It only comes into use when interacting with the package directly, not as a dependency.

wraithgar avatar Feb 23 '24 15:02 wraithgar

I verified my cache, but ended up deleting it today. Installing socks installs 2.8.1.

I'm curious why 2.7.4 is "beta" but as long as 2.8.1 is the proper one I'm fine with that.

npm dist-tag ls socks
beta: 2.7.2
latest: 2.8.1

MartinFalatic avatar Feb 23 '24 18:02 MartinFalatic

npm dist-tag ls socks
latest: 2.8.1

JoshGlazebrook avatar Feb 23 '24 19:02 JoshGlazebrook