Get difference between two versions by the release type
diff('1.2.3', '1.2.3') // nulldiff('1.2.3', '1.2.4') // 'patch' Copy
diff('1.2.3', '1.2.3') // nulldiff('1.2.3', '1.2.4') // 'patch'
build identifier ([+BUILD]) is not taken into account
[+BUILD]
first version string
second version string
difference between two versions by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if the versions are the same.
Get difference between two versions by the release type
Example
Remarks
build identifier (
[+BUILD]
) is not taken into account