NPM.ReleaseNotes (NPM v0.6.0)

Copy Markdown View Source

Extracts release notes from changelog content for specific version ranges.

Summary

Functions

Extracts notes between two versions (inclusive).

Extracts notes for a specific version.

Returns the latest version mentioned.

Extracts all version sections from changelog content.

Counts versions in the changelog.

Functions

between(content, from_version, to_version)

@spec between(String.t(), String.t(), String.t()) :: [String.t()]

Extracts notes between two versions (inclusive).

for_version(content, version)

@spec for_version(String.t(), String.t()) :: String.t() | nil

Extracts notes for a specific version.

latest_version(content)

@spec latest_version(String.t()) :: String.t() | nil

Returns the latest version mentioned.

sections(content)

@spec sections(String.t()) :: [{String.t(), String.t()}]

Extracts all version sections from changelog content.

version_count(content)

@spec version_count(String.t()) :: non_neg_integer()

Counts versions in the changelog.