3 ms·
Snapshot versions are great. We wish npm would have them. Only use them for packages you are developing yourself, of course, and never use them outside of devel
by rowyourboat 9y ago
Snapshot versions are great. We wish npm would have them. Only use them for packages you are developing yourself, of course, and never use them outside of development.
- michaelmior 9y agonpm does have something close. You can tag versions with a name and a common convention is to use "next" as a tag. What is lacking is that I don't believe tags can be versioned so you can't have a snapshot per version as you can in Java.
- yuchi 9y agoThe “right way” to do that is to publish alpha versions of your code. Snapshotting the state of the tree into a mutable release is calling for problems. Semver also defines a (poorly supported) M.m.b-release+tstamp pattern, so you can release immutable snapshots and have a semver range do the rest. Maven-like snapshot are a requirement for an environment with poor support for transient semver-ranged dependencies, which maven is…