Commit Graph

69 Commits

Author SHA1 Message Date
Yoshiya Hinosawa
0ce9c2bf7e
experiment 2024-01-31 18:10:15 +09:00
Tim Reichen
d23718945e
feat(tools,log,http,semver): check mod exports, export items consistently from mod.ts (#4229) 2024-01-25 18:36:46 +09:00
Tim Reichen
0a32c8f5e8
deprecation(semver): rename eq(), neq(), lt(), lte(), gt() and gte() (#4083)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-23 13:04:12 +09:00
Tim Reichen
690d659fc4
refactor(semver): replace parseComparator() with comparator objects (#4204)
* initial commit

* update

* add uniform return types
2024-01-16 09:24:05 +11:00
Tim Reichen
aa3f026e93
deprecation(semver): deprecate SemVerRange, introduce Range (#4161)
* initial commit

* Update semver/is_range.ts

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

* bump deprecation notice

* add test cases

* fmt

* Update types.ts

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

* Update types.ts

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

* Update is_semver_range.ts

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-14 21:19:00 +00:00
Tim Reichen
05ffa5fbff
deprecation(semver): deprecate outside() (#4185)
* initial commit

* Update outside.ts

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

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-15 08:03:03 +11:00
Asher Gomez
b0a52a3903
BREAKING(semver): remove FormatStyle (#4182) 2024-01-14 20:16:56 +09:00
Asher Gomez
5f9b85f5ab
BREAKING(semver): remove compareBuild() (#4181) 2024-01-14 20:16:27 +09:00
Asher Gomez
33d7d001a4
BREAKING(semver): remove rsort() (#4180) 2024-01-14 19:56:19 +09:00
Asher Gomez
c9a1aaa874
BREAKING(semver): remove parse(semver: string) overload (#4172) 2024-01-12 15:44:39 +11:00
Asher Gomez
8cd9c412b6
BREAKING(semver): remove cmp() (#4171) 2024-01-12 15:43:25 +11:00
Tim Reichen
a1877c8dec
refactor(semver): remove cmp() dependency from testComparator() (#4162)
initial commit
2024-01-11 12:16:34 +11:00
Tim Reichen
4df9f27f13
deprecation(semver): deprecate Comparator functions (#4131)
* initial commit

* Update semver/comparator_format.ts

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>

* bump deprecation note

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-09 16:20:05 +11:00
Tim Reichen
8c55d22b2d
refactor(semver): make outside() more readable (#4095)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-09 10:59:41 +09:00
Tim Reichen
ead45038e6
refactor(semver): remove ltr() and gtr() outside() dependency (#4096) 2024-01-09 10:57:00 +09:00
Tim Reichen
3d74dbd2ca
deprecation(semver): rename rangeFormat() to formatRange() (#4090)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-08 11:55:23 +09:00
Asher Gomez
5351ef3a57
BREAKING(semver): remove SemVerComparator (#4109) 2024-01-05 02:17:15 +00:00
Asher Gomez
98766d145e
BREAKING(semver): remove canParse() non-string overload (#4108) 2024-01-05 13:08:09 +11:00
Asher Gomez
122e36224b
BREAKING(semver): remove isSemVerComparator() (#4107) 2024-01-05 13:07:52 +11:00
Asher Gomez
6fa5b47191
BREAKING(semver): remove rcompare() (#4106) 2024-01-05 13:07:37 +11:00
Tim Reichen
dba0e31a17
deprecation(semver): deprecate sort() (#4098) 2024-01-05 11:03:04 +09:00
Tim Reichen
032e57c7bc
refactor(semver): reduce minSatisfying() and maxSatisfying() overhead (#4097)
* initial commit

* update
2024-01-05 10:01:26 +11:00
Tim Reichen
7b82fac94d
refactor(semver): make rangeMin() and rangeMax() more readable (#4094)
* initial commit

* update

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-04 22:26:14 +00:00
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