Partas.Tools.SepochSemver 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Partas.Tools.SepochSemver --version 0.2.0
                    
NuGet\Install-Package Partas.Tools.SepochSemver -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Partas.Tools.SepochSemver" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Partas.Tools.SepochSemver" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Partas.Tools.SepochSemver" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Partas.Tools.SepochSemver --version 0.2.0
                    
#r "nuget: Partas.Tools.SepochSemver, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Partas.Tools.SepochSemver@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Partas.Tools.SepochSemver&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Partas.Tools.SepochSemver&version=0.2.0
                    
Install as a Cake Tool

SepochSemver

My own flavor of Semver with a proposed marketing value Epoch, with an added optional Scope for disambiguating tags for SemVer packages in a monorepo.

Spec

Semver

Semver spec follows the SemVer 2.0 spec and uses the [NuGet Semver package].

Sepoch - Scoped Epoch

A Sepoch is an optional identifier preceding a Semver delimited by < angle brackets >.

It SHOULD have a single whitespace delineating it from the Semver

[<SEPOCH>] SEMVER

A Sepoch cannot contain spaces, numbers, and other special characters such as . + - which are used elsewhere in Semver.

The exclusion of numbers simplifies visual identification and disentanglement of the Sepoch from the Semver.

It also simplifies tooling by providing an entire region that can be skipped - identifying the semver by the presence of the first numeric character.

( Parenthesis ) may only be used in Sepoch to delineate the Scope.

A Sepoch is made up of two optional identifiers in the following order:

  1. Epoch
    • Alphabetical identifier
    • SHOULD be in uppercase
  2. Scope
    • Alphabetical identifier bound by ( parenthesis )
    • SHOULD be capitalized
    • SHOULD NOT be in uppercase

Usage

open Partas.Tools.SepochSemver

let sepochSemver: SepochSemver = parseSepochSemver "<WILDLANDS(Core)> 1.4.0"
[<RequireQualifiedAccess; Struct>]
type Sepoch =
    | Scope of scope: string
    | EpochScope of epoch: string * scope: string
    | Epoch of epoch: string
    | None

[<Struct>]
type SepochSemver = {
    SemVer: SemVersion
    Sepoch: Sepoch
}

Dependencies


MIT License

Copyright (c) Shayan Habibi 2025

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Partas.Tools.SepochSemver:

Package Downloads
Partas.GitNet

Git that .Net F#

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 55 8/22/2025
0.4.2 51 8/22/2025
0.4.1 121 8/18/2025
0.4.0 124 8/17/2025
0.3.0 105 8/17/2025
0.2.0 97 7/31/2025
0.1.0 94 7/31/2025

Custom equality and comparison