View Source Expublish.Semver (expublish v2.7.6)

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

level()

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

Functions

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

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

Bump alpha pre-release and patch version.

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

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

Bump beta pre-release and patch version.

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

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

Interfaces Expublish.Semver version increase functions.

major(version)

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

Bump major version.

minor(version)

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

Bump minor version.

patch(version)

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

Bump patch version.

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

Bump release-candidate pre-release and patch version.

stable(version)

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

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