Skip to content

Commit

Permalink
Re-export Semantic Versioning types and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Oct 22, 2024
1 parent be49853 commit 5842767
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
5 changes: 5 additions & 0 deletions src/nodeinfo/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
1 change: 1 addition & 0 deletions src/nodeinfo/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface Software {

/**
* The version of this server software.
* @see {@link parseSemVer}
*/
version: SemVer;

Expand Down

0 comments on commit 5842767

Please sign in to comment.