version
Members list
Packages
Type members
Classlikes
Provides factory methods, instances, and operations for MajorVersion.
Provides factory methods, instances, and operations for MajorVersion.
Attributes
- Source
- VersionComponent.scala
- Supertypes
-
trait VersionComponent[MajorVersion]trait OpaqueType[MajorVersion]class Objecttrait Matchableclass AnyShow all
- Self type
-
MajorVersion.type
Provides factory methods and operations for Metadata.
Provides factory methods and operations for Metadata.
Extends boilerplate.OpaqueType with build-metadata-specific validation and semantics.
Attributes
- See also
-
Metadata opaque type for representation details.
- Source
- Metadata.scala
- Supertypes
- Self type
-
Metadata.type
Provides factory methods, instances, and operations for MinorVersion.
Provides factory methods, instances, and operations for MinorVersion.
Attributes
- Source
- VersionComponent.scala
- Supertypes
-
trait VersionComponent[MinorVersion]trait OpaqueType[MinorVersion]class Objecttrait Matchableclass AnyShow all
- Self type
-
MinorVersion.type
Provides factory methods, instances, and operations for PatchNumber.
Provides factory methods, instances, and operations for PatchNumber.
Attributes
- Source
- VersionComponent.scala
- Supertypes
-
trait VersionComponent[PatchNumber]trait OpaqueType[PatchNumber]class Objecttrait Matchableclass AnyShow all
- Self type
-
PatchNumber.type
Represents structured pre-release version information.
Represents structured pre-release version information.
Instances are constructed via PreRelease companion factory methods.
Value parameters
- classifier
-
The type of pre-release.
- number
-
The version number associated with the classifier, if applicable.
Attributes
- Companion
- object
- Source
- VersionComponent.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Provides factory methods, instances, and operations for PreRelease.
Provides factory methods, instances, and operations for PreRelease.
Attributes
- See also
-
PreRelease case class for representation details.
- Companion
- class
- Source
- VersionComponent.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PreRelease.type
Represents the supported pre-release classifiers in order of precedence (lowest to highest).
Represents the supported pre-release classifiers in order of precedence (lowest to highest).
This enumeration defines the constrained hierarchy used within this library. Declaration order defines precedence.
Attributes
- See also
-
PreReleaseClassifier companion for behaviour.
- Companion
- object
- Source
- VersionComponent.scala
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Provides behaviour, instances, and utilities for PreReleaseClassifier.
Provides behaviour, instances, and utilities for PreReleaseClassifier.
Attributes
- See also
-
PreReleaseClassifier enum for case definitions.
- Companion
- enum
- Source
- VersionComponent.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PreReleaseClassifier.type
Provides factory methods, instances, and operations for PreReleaseNumber.
Provides factory methods, instances, and operations for PreReleaseNumber.
Attributes
- Source
- VersionComponent.scala
- Supertypes
-
trait VersionComponent[PreReleaseNumber]trait OpaqueType[PreReleaseNumber]class Objecttrait Matchableclass AnyShow all
- Self type
-
PreReleaseNumber.type
Extends VersionComponent for components that have a defined reset value (typically the minimum value).
Extends VersionComponent for components that have a defined reset value (typically the minimum value).
Attributes
- Source
- VersionComponent.scala
- Supertypes
- Known subtypes
Represents a version conforming to the Semantic Versioning 2.0.0 specification.
Represents a version conforming to the Semantic Versioning 2.0.0 specification.
Format: MAJOR.MINOR.PATCH[-PRERELEASE][+BUILDMETADATA].
Instances may be constructed via Version.
Attributes
- Companion
- object
- Source
- Version.scala
- Supertypes
Provides factory methods, utility functions, and type class instances for Version.
Provides factory methods, utility functions, and type class instances for Version.
Attributes
- Companion
- class
- Source
- Version.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Version.type
Capability trait for opaque version components backed by Int.
Capability trait for opaque version components backed by Int.
Extends boilerplate.OpaqueType with version-specific semantics:
- Minimum value validation
- Increment operation
- Standard ordering
Instances may be constructed via VersionComponent.
Type parameters
- T
-
The opaque type itself.
Attributes
- Source
- VersionComponent.scala
- Supertypes
-
trait OpaqueType[T]class Objecttrait Matchableclass Any
- Known subtypes
-
trait ResettableVersionComponent[T]object MajorVersionobject MinorVersionobject PatchNumberobject PreReleaseNumber
Types
Represents a major version number. Must be non-negative (>= 0).
Represents a major version number. Must be non-negative (>= 0).
Attributes
- Source
- VersionComponent.scala
Represents build metadata as defined by the Semantic Versioning 2.0.0 specification.
Represents build metadata as defined by the Semantic Versioning 2.0.0 specification.
Identifiers must comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-] and must not be empty. Build metadata does not affect version precedence.
Instances may be constructed via Metadata.
Attributes
- Source
- Metadata.scala
Represents a minor version number. Must be non-negative (>= 0).
Represents a minor version number. Must be non-negative (>= 0).
Attributes
- Source
- VersionComponent.scala
Represents a patch number. Must be non-negative (>= 0).
Represents a pre-release number. Must be positive (>= 1).
Givens
Givens
Default Version.Read instance for String.
Default Version.Read instance for String.
Available via import version.{given, *} or import version.given.
Parses SemVer strings using the contextual PreRelease.Resolver for mapping pre-release identifiers. Override by providing a custom given Version.Read[String] in scope.
Attributes
- Source
- instances.scala