smv
v1.0.0
Published
Typed semantic versioner & diff module
Downloads
249
Maintainers
Readme
SMV
Typed semantic versioner & diff module
Main features
- tiny & easy to use: 1 powerful merge method, rest is plain old semver
- returns descriptive merge conflict details
- 1 dependency (for dist)
- Typescript types included
- exposes esm/cjs modules
- always 100% test coverage
Guide
Installation
or
or
Basic usage
Doing it semver-style
SMV is a typed replacement for semver package as it proxies all semver-like methods to the semver. Full list of supported methods can be found on the semver github page.
Dependency merge
With SMV you can resolve dependencies from multiple sources.
Imagine how you would programmatically merge devDependencies from few package.json files?
Un-conflicting dependencies are easy - you can deal with them using basic JS techniques.
How about conflicting dependencies?
Advanced usage
Forced dependency merge
There are situations when you don't want to waste time resolving conflicts. SMV allows you to enforce recommended versions (from resolved digest) as a final result.
Documentation
Full API documentation for this package can be found here