Version
This class describes a semantic version and related operations.
Constructors
Types
Functions
Link copied to clipboard
Component function that returns the MAJOR number of the version upon destructuring.
Link copied to clipboard
Component function that returns the MINOR number of the version upon destructuring.
Link copied to clipboard
Component function that returns the PATCH number of the version upon destructuring.
Link copied to clipboard
Component function that returns the PRE-RELEASE part of the version upon destructuring.
Link copied to clipboard
Component function that returns the BUILD-METADATA part of the version upon destructuring.
Properties
Extensions
Link copied to clipboard
fun Version.copy(major: Int = this.major, minor: Int = this.minor, patch: Int = this.patch, preRelease: String? = this.preRelease, buildMetadata: String? = this.buildMetadata): Version
Content copied to clipboard
Constructs a copy of the Version. The copied object's properties can be altered with the optional parameters.
Link copied to clipboard
Increments the version by its PRE-RELEASE part. Returns a new version while the original remains unchanged.