From 584276791a1b5eb8b089905155d7dfc861342d92 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Tue, 22 Oct 2024 12:36:08 +0900 Subject: [PATCH] Re-export Semantic Versioning types and functions --- CHANGES.md | 6 ++++++ src/nodeinfo/mod.ts | 5 +++++ src/nodeinfo/types.ts | 1 + 3 files changed, 12 insertions(+) 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;