diff --git a/CHANGES.md b/CHANGES.md index 0e948a33..73811803 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,12 @@ Version 1.2.0 To be released. + - Re-exported Semantic Versioning-related types and functions: + + - Added `SemVer` type. + - Added `formatSemVer()` function. + - Added `parseSemVer()` function. + Version 1.1.0 ------------- diff --git a/src/nodeinfo/mod.ts b/src/nodeinfo/mod.ts index d196b66c..59a07bf6 100644 --- a/src/nodeinfo/mod.ts +++ b/src/nodeinfo/mod.ts @@ -5,4 +5,9 @@ * @module * @since 0.2.0 */ +export { + format as formatSemVer, + parse as parseSemVer, + type SemVer, +} from "@std/semver"; export * from "./types.ts"; diff --git a/src/nodeinfo/types.ts b/src/nodeinfo/types.ts index f75a7a56..07853413 100644 --- a/src/nodeinfo/types.ts +++ b/src/nodeinfo/types.ts @@ -60,6 +60,7 @@ export interface Software { /** * The version of this server software. + * @see {@link parseSemVer} */ version: SemVer;