CoerceOptions

external interface CoerceOptions : Options(source)

Properties

Link copied to clipboard
abstract var includePrerelease: Boolean?

If the options.includePrerelease flag is set, then the coerce result will contain prerelease and build parts of a version. For example, 1.2.3.4-rc.1+rev.2 will preserve prerelease rc.1 and build rev.2 in the result.

Link copied to clipboard
abstract var loose: Boolean?
Link copied to clipboard
abstract var rtl: Boolean?

If the options.rtl flag is set, then coerce will return the right-most coercible tuple that does not share an ending index with a longer coercible tuple. For example, 1.2.3.4 will return 2.3.4 in rtl mode, not 4.0.0. 1.2.3/4 will return 4.0.0, because the 4 is not a part of any other overlapping SemVer tuple.