View Source Expublish.Semver (expublish v2.7.5)

Functions for manipulating %Version{}.

Summary

Functions

Bump alpha pre-release and patch version.

Bump beta pre-release and patch version.

Bump major version.

Bump minor version.

Bump patch version.

Bump release-candidate pre-release and patch version.

Remove current pre-release suffix and declare current version stable.

Types

@type level() :: :major | :minor | :patch | :rc | :beta | :alpha | :stable

Functions

Link to this function

alpha(version, options \\ %Options{})

View Source
@spec alpha(Version.t(), Expublish.Options.t()) :: Version.t()

Bump alpha pre-release and patch version.

Link to this function

beta(version, options \\ %Options{})

View Source
@spec beta(Version.t(), Expublish.Options.t()) :: Version.t()

Bump beta pre-release and patch version.

Link to this function

increase!(version, level, options \\ %Options{})

View Source
@spec increase!(Version.t(), level(), Expublish.Options.t()) :: Version.t()

Interfaces Expublish.Semver version increase functions.

@spec major(Version.t()) :: Version.t()

Bump major version.

@spec minor(Version.t()) :: Version.t()

Bump minor version.

@spec patch(Version.t()) :: Version.t()

Bump patch version.

Link to this function

rc(version, options \\ %Options{})

View Source

Bump release-candidate pre-release and patch version.

@spec stable(Version.t()) :: Version.t()

Remove current pre-release suffix and declare current version stable.