Commit Graph

146 Commits

Author SHA1 Message Date
Tim Reichen
bd5ddd1e66
deprecation(semver): deprecate compareBuild() (#4088)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-04 21:27:35 +09:00
Tim Reichen
023096b75c
fix(semver): remove undefined return type from rangeMax() (#4089)
initial commit
2024-01-04 22:22:42 +11:00
Tim Reichen
e6ec6a205e
refactor(semver): remove unnecessary code (#4076)
* initial commit

* update

* initial commit

* update

* update checks

* remove type check

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-04 09:01:51 +11:00
Tim Reichen
7af112a933
refactor(semver): make increment() more readable (#4057)
* initial commit

* update

* Apply suggestions from code review

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-03 01:27:08 +00:00
Tim Reichen
fa488b6f47
refactor(semver): make difference() more readable (#4054)
* initial commit

* remove eq

* revert parameter names
2024-01-03 07:50:29 +11:00
Tim Reichen
e71a8fd2eb
refactor(semver): rename OPERATOR_REGEXP to OPERATOR_XRANGE_REGEXP (#4056)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-02 21:38:16 +09:00
Tim Reichen
9b0f3ee4b1
deprecation(semver): deprecate format() style argument (#4050)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-02 20:54:56 +09:00
Tim Reichen
6bd9a953df
refactor(semver): update internal variables and comments (#4052)
* initial commit

* Update semver/_shared.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* fix typo

* rename to FULL_VERSION

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 13:58:16 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Tim Reichen
847585d68f
refactor(semver): cleanup parseRange() (#4001)
* initial commit

* remove global flag

* replace string operations with array

* extract switch cases to separate funvtions

* rename operator functions

* extract equal switch case to separate function

* Update semver/parse_range.ts

* update argument name

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-12-30 23:58:32 +00:00
Asher Gomez
c9f4020446
refactor(semver): remove isOperator() and cleanup isComparator() (#4038)
refactor: remove `semver.isOperator()`
2023-12-30 22:04:44 +00:00
Tim Reichen
27c3c0257d
refactor(semver): use capturing groups in parseComparator() (#4026) 2023-12-30 18:43:56 +09:00
Tim Reichen
7a0294a7f4
deprecation(semver): deprecate testComparator() (#4037)
* initial commit

* update deprecation version
2023-12-29 10:29:00 +11:00
Tim Reichen
81bcbc1ca1
feat(semver): optional SemVer build and prerelease properties (#4024)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-12-28 19:00:18 +09:00
Tim Reichen
8497153a9b
refactor(semver): add operators array (#4033) 2023-12-28 18:31:06 +09:00
Tim Reichen
17c5675360
deprecation(semver): deprecate cmp (#4025)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-28 13:47:37 +09:00
Tim Reichen
707c3140d6
deprecation(semver): rename rsort to reverseSort (#4032) 2023-12-28 13:45:30 +09:00
Tim Reichen
386df47969
deprecation(semver): comparator min and max properties (#3974)
* initial commit

* Update semver/types.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* revert breaking change

* remove non-related changes

* revert unintentional change

* Update semver/types.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* initial commit

* make optional properties required

* remove unintentional file

* revert SemVerComparator deprecation

* update

* refactor: remove `max` and `min` from new type

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-12-20 18:11:48 +11:00
Tim Reichen
1b56394a2b
refactor(semver): replace replace() with match() capturing groups (#3983)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-20 15:25:06 +09:00
David Sherret
b0803619af
refactor: add some missing explicit types (#3997)
* refactor: add some missing return types and mark some non-exported types as `@internal`

* Update expect/fn.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Remove @internals

* nits

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-19 00:26:13 +00:00
Tim Reichen
4e75a00956
deprecation(semver): rename isSemVerComparator() (#3957) 2023-12-19 05:10:52 +11:00
Tim Reichen
57c285cd66
refactor(semver): rename isX to isWildcard (#3981) 2023-12-18 21:46:47 +11:00
Tim Reichen
822eca7ff7
refactor(semver): use string literals (#3979)
* use string literals

* replace strings with string literals
2023-12-18 21:04:47 +11:00
Tim Reichen
275127f31d
refactor(semver): add regexp capturing groups (#3956)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-18 17:12:55 +09:00
Tim Reichen
45c8201a70
deprecation(semver): deprecate rcompare() (#3958)
* initial commit

* Update semver/rcompare.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-14 14:38:57 +11:00
Tim Reichen
fd3c6fb6a0
chore(semver): rename internal constants for better readability (#3955)
initial commit
2023-12-14 08:22:14 +11:00
Tim Reichen
5b897c8bbe
chore(semver): regex template strings (#3953)
* initial commit

* revert non-interpolated strings

* make STAR_REGEXP literal regexp
2023-12-14 07:48:40 +11:00
Tim Reichen
c81bb3f572
deprecation(semver): deprecate SemVer argument for parse() and canParse() (#3939)
* initial commit

* fix testdata type

* add export function canParse(version: string): boolean;

* move jsdoc above function overload

* Update semver/can_parse.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Update semver/parse.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Apply suggestions from code review

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-13 20:29:47 +00:00
Tim Reichen
24d63a2636
chore(semver): remove regexp array (#3946)
* initial commit

* rename STAR to STAR_REGEXP

* revert wasi/testdata
2023-12-14 07:08:35 +11:00
Lino Le Van
aeb64da6f6
feat(semver): canParse (#3709) 2023-10-24 13:39:55 +09:00
futsuuu
2884033389
fix(semver): add a necessary grouping, fix prerelease parsing (#3674) 2023-09-25 14:29:58 +09:00
Yoshiya Hinosawa
0d63e640fc
BREAKING(semver): remove deprecated APIs (#3591) 2023-08-31 19:44:22 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals (#3566)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Martin Fischer
a5b1d80736
chore: fix typos (#3458)
The typos were found with the typos[1] spell checker.  That spell
checker will be incorporated into the CI in a followup PR.

[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
Yoshiya Hinosawa
aea85151e8
BREAKING(semver): rewrite semver (#3385)
See
- https://github.com/denoland/deno_std/pull/3169
- https://github.com/denoland/deno_std/pull/3385

---------

Co-authored-by: justinmchase <justin.m.chase@gmail.com>
Co-authored-by: Jesse Jackson <jsejcksn@users.noreply.github.com>
Co-authored-by: Max Duval <hi@mxdvl.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Tim Reichen <timreichen@users.noreply.github.com>
2023-06-12 12:47:03 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
Justin Chase
4b1bb8be9c
fix(semver): allow unsetting build metadata (#3157) 2023-02-03 15:47:03 +09:00
Justin Chase
07f059ffab
feat(semver): add support for build metadata (#3126) 2023-01-26 16:39:37 +09:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Asher Gomez
bf046b7ffa
chore(semver): remove deprecated functions (#2941) 2022-11-27 16:06:15 -05:00
Leo Kettmeir
aba5017d43
docs: reorganize docs (#2658) 2022-11-25 12:40:23 +01:00
Tim Reichen
0ca0641842
chore(semver): rename inc and diff (#2826) 2022-11-07 12:09:54 -05:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
迷渡
e169864767
feat(semver): add "semver" module (#2434)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-07-18 13:17:42 +02:00