63858958c8
feat: Semver.new
for construction
...
Includes a `Semver.new` method, which constructs a `SemverImpl` from a
`Version`, by setting its metatable.
2024-11-22 05:30:16 +00:00
f6220d6295
fix: return error on invalid ordinal with points
...
Previously, if the ordinal contained dots (like 1.2.3-beta.3.4.5),
although it was invalid, an error would not be returned, which was
problematic. This has now been fixed.
Test cases are also included to prevent future regressions.
2024-11-21 18:21:19 +00:00
61f80fbf83
feat: implement tostring for SemverImpl
...
* `SemverImpl:__tostring` - Allows for stringifying a parsed semver instance
* Add TODO comment for future erroring for bad ordinal format
2024-11-21 17:20:48 +00:00
ef2cf642d6
refactor: include missed space before function decl
2024-11-11 17:14:30 +05:30
622a990cf8
feat: freeze lex order constant table
2024-11-11 17:09:37 +05:30
97aefcc2b4
docs: fix SemverResult
generic type missing an equals
2024-11-11 16:09:12 +05:30
cdd68229f2
docs: include moonwave comments for library
2024-11-11 11:46:46 +05:30
f6090f9c98
feat: trim leading v
in versions
2024-11-10 20:46:01 +05:30
1fde6d2752
refactor: add leading |
to error type union
2024-11-10 20:37:57 +05:30
8fe1a4b842
feat: complete parser and cmp implementation with package
2024-11-04 12:15:50 +05:30