@fedify/fedify 1.0.0-dev.410 → 1.0.0-dev.411
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +12 -0
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/_validate_binary_like.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64.js +3 -5
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64url.js +3 -5
- package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/hex.js +7 -9
- package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/encoding.js +3 -1
- package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/language.js +2 -2
- package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/media_type.js +7 -7
- package/esm/deps/jsr.io/@std/semver/1.0.3/_constants.js +38 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_shared.js +3 -2
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/can_parse.js +4 -7
- package/esm/deps/jsr.io/@std/semver/1.0.3/compare.js +35 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/difference.js +41 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/equals.js +27 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/format.js +32 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format_range.js +5 -3
- package/esm/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.js +26 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/greater_than.js +28 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/greater_than_range.js +14 -13
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/increment.js +13 -14
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_range.js +4 -4
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_semver.js +3 -5
- package/esm/deps/jsr.io/@std/semver/1.0.3/less_or_equal.js +26 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/less_than.js +26 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/less_than_range.js +14 -13
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/max_satisfying.js +2 -2
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/min_satisfying.js +2 -2
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/mod.js +25 -33
- package/esm/deps/jsr.io/@std/semver/1.0.3/not_equals.js +25 -0
- package/esm/deps/jsr.io/@std/semver/1.0.3/parse.js +44 -0
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse_range.js +18 -13
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/range_intersects.js +29 -28
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/satisfies.js +3 -3
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse.js +5 -8
- package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse_range.js +3 -3
- package/esm/federation/collection.js +1 -1
- package/esm/federation/handler.js +1 -1
- package/esm/nodeinfo/types.js +1 -1
- package/esm/runtime/key.js +3 -3
- package/esm/sig/http.js +1 -1
- package/esm/sig/ld.js +2 -2
- package/package.json +4 -4
- package/types/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64.d.ts +2 -2
- package/types/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64url.d.ts +2 -2
- package/types/deps/jsr.io/@std/encoding/1.0.5/base64url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/hex.d.ts +2 -2
- package/types/deps/jsr.io/@std/encoding/1.0.5/hex.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/common.d.ts +2 -2
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/encoding.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/language.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/media_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/negotiation.d.ts +13 -18
- package/types/deps/jsr.io/@std/http/1.0.6/negotiation.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_constants.d.ts +16 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_shared.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/_test_comparator_set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/can_parse.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/can_parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/compare.d.ts +28 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/compare.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/difference.d.ts +27 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/difference.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/equals.d.ts +24 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/equals.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format.d.ts +3 -7
- package/types/deps/jsr.io/@std/semver/1.0.3/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format_range.d.ts +3 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/format_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_than.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_than.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/greater_than_range.d.ts +8 -7
- package/types/deps/jsr.io/@std/semver/1.0.3/greater_than_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/increment.d.ts +11 -5
- package/types/deps/jsr.io/@std/semver/1.0.3/increment.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_range.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/is_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_semver.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/is_semver.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_or_equal.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_or_equal.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_than.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/less_than.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/less_than_range.d.ts +8 -7
- package/types/deps/jsr.io/@std/semver/1.0.3/less_than_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/max_satisfying.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/max_satisfying.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/min_satisfying.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/min_satisfying.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/mod.d.ts +25 -33
- package/types/deps/jsr.io/@std/semver/1.0.3/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/not_equals.d.ts +24 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/not_equals.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse.d.ts +5 -5
- package/types/deps/jsr.io/@std/semver/1.0.3/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse_range.d.ts +6 -5
- package/types/deps/jsr.io/@std/semver/1.0.3/parse_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/range_intersects.d.ts +25 -0
- package/types/deps/jsr.io/@std/semver/1.0.3/range_intersects.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/satisfies.d.ts +3 -3
- package/types/deps/jsr.io/@std/semver/1.0.3/satisfies.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse.d.ts +4 -4
- package/types/deps/jsr.io/@std/semver/1.0.3/try_parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse_range.d.ts +2 -2
- package/types/deps/jsr.io/@std/semver/1.0.3/try_parse_range.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/types.d.ts +23 -4
- package/types/deps/jsr.io/@std/semver/1.0.3/types.d.ts.map +1 -0
- package/types/nodeinfo/types.d.ts +1 -1
- package/types/nodeinfo/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/semver/0.224.3/_constants.js +0 -10
- package/esm/deps/jsr.io/@std/semver/0.224.3/compare.js +0 -35
- package/esm/deps/jsr.io/@std/semver/0.224.3/constants.js +0 -71
- package/esm/deps/jsr.io/@std/semver/0.224.3/difference.js +0 -37
- package/esm/deps/jsr.io/@std/semver/0.224.3/equals.js +0 -27
- package/esm/deps/jsr.io/@std/semver/0.224.3/format.js +0 -48
- package/esm/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.js +0 -25
- package/esm/deps/jsr.io/@std/semver/0.224.3/greater_than.js +0 -27
- package/esm/deps/jsr.io/@std/semver/0.224.3/less_or_equal.js +0 -25
- package/esm/deps/jsr.io/@std/semver/0.224.3/less_than.js +0 -25
- package/esm/deps/jsr.io/@std/semver/0.224.3/not_equals.js +0 -24
- package/esm/deps/jsr.io/@std/semver/0.224.3/parse.js +0 -50
- package/esm/deps/jsr.io/@std/semver/0.224.3/range_max.js +0 -77
- package/esm/deps/jsr.io/@std/semver/0.224.3/range_min.js +0 -68
- package/esm/deps/jsr.io/@std/semver/0.224.3/test_range.js +0 -28
- package/types/deps/jsr.io/@std/encoding/0.224.3/_validate_binary_like.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/0.224.3/hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/encoding.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/language.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/media_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/0.224.5/negotiation.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts +0 -2
- package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/_shared.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/_test_comparator_set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/can_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/compare.d.ts +0 -28
- package/types/deps/jsr.io/@std/semver/0.224.3/compare.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/constants.d.ts +0 -43
- package/types/deps/jsr.io/@std/semver/0.224.3/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/difference.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/0.224.3/difference.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/format_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_than.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/greater_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/increment.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/is_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/is_semver.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/less_or_equal.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/less_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/less_than.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/less_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/less_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/max_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/min_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/not_equals.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/0.224.3/not_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/range_intersects.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/0.224.3/range_intersects.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/range_max.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/0.224.3/range_max.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/range_min.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/0.224.3/range_min.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/satisfies.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/test_range.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/0.224.3/test_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/try_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/try_parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/0.224.3/types.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/common.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/negotiation.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_test_comparator_set.js +0 -0
- /package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/types.js +0 -0
- /package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/_validate_binary_like.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/encoding.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/language.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/media_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_shared.d.ts +0 -0
- /package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_test_comparator_set.d.ts +0 -0
@@ -5,18 +5,19 @@ import type { Range, SemVer } from "./types.js";
|
|
5
5
|
* @example Usage
|
6
6
|
* ```ts
|
7
7
|
* import { parse, parseRange, greaterThanRange } from "@std/semver";
|
8
|
-
* import { assert
|
8
|
+
* import { assert } from "@std/assert";
|
9
9
|
*
|
10
|
-
* const
|
11
|
-
* const
|
10
|
+
* const version1 = parse("1.2.3");
|
11
|
+
* const version2 = parse("1.2.4");
|
12
12
|
* const range = parseRange(">=1.2.3 <1.2.4");
|
13
|
-
*
|
14
|
-
* assert(greaterThanRange(
|
13
|
+
*
|
14
|
+
* assert(!greaterThanRange(version1, range));
|
15
|
+
* assert(greaterThanRange(version2, range));
|
15
16
|
* ```
|
16
17
|
*
|
17
|
-
* @param
|
18
|
+
* @param version The version to check.
|
18
19
|
* @param range The range to check against.
|
19
20
|
* @returns `true` if the semver is greater than the range, `false` otherwise.
|
20
21
|
*/
|
21
|
-
export declare function greaterThanRange(
|
22
|
+
export declare function greaterThanRange(version: SemVer, range: Range): boolean;
|
22
23
|
//# sourceMappingURL=greater_than_range.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"greater_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/greater_than_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAK5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAIvE"}
|
@@ -1,6 +1,13 @@
|
|
1
1
|
import type { ReleaseType, SemVer } from "./types.js";
|
2
|
+
/** Options for {@linkcode increment}. */
|
3
|
+
export interface IncrementOptions {
|
4
|
+
/** The pre-release metadata of the new version. */
|
5
|
+
prerelease?: string;
|
6
|
+
/** The build metadata of the new version. */
|
7
|
+
build?: string;
|
8
|
+
}
|
2
9
|
/**
|
3
|
-
* Returns the new
|
10
|
+
* Returns the new SemVer resulting from an increment by release type.
|
4
11
|
*
|
5
12
|
* `premajor`, `preminor` and `prepatch` will bump the version up to the next version,
|
6
13
|
* based on the type, and will also add prerelease metadata.
|
@@ -23,7 +30,7 @@ import type { ReleaseType, SemVer } from "./types.js";
|
|
23
30
|
* @example Usage
|
24
31
|
* ```ts
|
25
32
|
* import { increment, parse } from "@std/semver";
|
26
|
-
* import { assertEquals } from "@std/assert
|
33
|
+
* import { assertEquals } from "@std/assert";
|
27
34
|
*
|
28
35
|
* const version = parse("1.2.3");
|
29
36
|
* assertEquals(increment(version, "major"), parse("2.0.0"));
|
@@ -37,9 +44,8 @@ import type { ReleaseType, SemVer } from "./types.js";
|
|
37
44
|
*
|
38
45
|
* @param version The version to increment
|
39
46
|
* @param release The type of increment to perform
|
40
|
-
* @param
|
41
|
-
* @param buildmetadata The build metadata of the new version
|
47
|
+
* @param options Additional options
|
42
48
|
* @returns The new version
|
43
49
|
*/
|
44
|
-
export declare function increment(version: SemVer, release: ReleaseType,
|
50
|
+
export declare function increment(version: SemVer, release: ReleaseType, options?: IncrementOptions): SemVer;
|
45
51
|
//# sourceMappingURL=increment.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"increment.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/increment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAkCtD,yCAAyC;AACzC,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,gBAAqB,GAC7B,MAAM,CA2GR"}
|
@@ -10,11 +10,11 @@ import type { Range } from "./types.js";
|
|
10
10
|
* @example Usage
|
11
11
|
* ```ts
|
12
12
|
* import { isRange } from "@std/semver/is-range";
|
13
|
-
* import { assert
|
13
|
+
* import { assert } from "@std/assert";
|
14
14
|
*
|
15
15
|
* const range = [[{ major: 1, minor: 2, patch: 3 }]];
|
16
16
|
* assert(isRange(range));
|
17
|
-
*
|
17
|
+
* assert(!isRange({}));
|
18
18
|
* ```
|
19
19
|
* @param value The value to check if its a valid Range
|
20
20
|
* @returns True if its a valid Range otherwise false.
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"is_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/is_range.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AAmBpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAGtD"}
|
@@ -15,7 +15,7 @@ import type { SemVer } from "./types.js";
|
|
15
15
|
* @example Usage
|
16
16
|
* ```ts
|
17
17
|
* import { isSemVer } from "@std/semver/is-semver";
|
18
|
-
* import { assert
|
18
|
+
* import { assert } from "@std/assert";
|
19
19
|
*
|
20
20
|
* const value = {
|
21
21
|
* major: 1,
|
@@ -24,7 +24,7 @@ import type { SemVer } from "./types.js";
|
|
24
24
|
* };
|
25
25
|
*
|
26
26
|
* assert(isSemVer(value));
|
27
|
-
*
|
27
|
+
* assert(!isSemVer({ major: 1, minor: 2 }));
|
28
28
|
* ```
|
29
29
|
*
|
30
30
|
* @param value The value to check to see if its a valid SemVer object
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"is_semver.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/is_semver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAsBxD"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Less than or equal to comparison for two SemVers.
|
4
|
+
*
|
5
|
+
* This is equal to `compare(version1, version2) <= 0`.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts
|
9
|
+
* import { parse, lessOrEqual } from "@std/semver";
|
10
|
+
* import { assert } from "@std/assert";
|
11
|
+
*
|
12
|
+
* const version1 = parse("1.2.3");
|
13
|
+
* const version2 = parse("1.2.4");
|
14
|
+
*
|
15
|
+
* assert(lessOrEqual(version1, version2));
|
16
|
+
* assert(!lessOrEqual(version2, version1));
|
17
|
+
* assert(lessOrEqual(version1, version1));
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @param version1 the first version to compare
|
21
|
+
* @param version2 the second version to compare
|
22
|
+
* @returns `true` if `version1` is less than or equal to `version2`, `false` otherwise
|
23
|
+
*/
|
24
|
+
export declare function lessOrEqual(version1: SemVer, version2: SemVer): boolean;
|
25
|
+
//# sourceMappingURL=less_or_equal.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/less_or_equal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvE"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Less than comparison for two SemVers.
|
4
|
+
*
|
5
|
+
* This is equal to `compare(version1, version2) < 0`.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts
|
9
|
+
* import { parse, lessThan } from "@std/semver";
|
10
|
+
* import { assert } from "@std/assert";
|
11
|
+
*
|
12
|
+
* const version1 = parse("1.2.3");
|
13
|
+
* const version2 = parse("1.2.4");
|
14
|
+
*
|
15
|
+
* assert(lessThan(version1, version2));
|
16
|
+
* assert(!lessThan(version2, version1));
|
17
|
+
* assert(!lessThan(version1, version1));
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @param version1 the first version to compare
|
21
|
+
* @param version2 the second version to compare
|
22
|
+
* @returns `true` if `version1` is less than `version2`, `false` otherwise
|
23
|
+
*/
|
24
|
+
export declare function lessThan(version1: SemVer, version2: SemVer): boolean;
|
25
|
+
//# sourceMappingURL=less_than.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"less_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/less_than.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpE"}
|
@@ -5,18 +5,19 @@ import type { Range, SemVer } from "./types.js";
|
|
5
5
|
* @example Usage
|
6
6
|
* ```ts
|
7
7
|
* import { parse, parseRange, lessThanRange } from "@std/semver";
|
8
|
-
* import { assert
|
8
|
+
* import { assert } from "@std/assert";
|
9
9
|
*
|
10
|
-
* const
|
11
|
-
* const
|
10
|
+
* const version1 = parse("1.2.3");
|
11
|
+
* const version2 = parse("1.0.0");
|
12
12
|
* const range = parseRange(">=1.2.3 <1.2.4");
|
13
|
-
*
|
14
|
-
* assert(lessThanRange(
|
13
|
+
*
|
14
|
+
* assert(!lessThanRange(version1, range));
|
15
|
+
* assert(lessThanRange(version2, range));
|
15
16
|
* ```
|
16
17
|
*
|
17
|
-
* @param
|
18
|
+
* @param version The version to check.
|
18
19
|
* @param range The range to check against.
|
19
20
|
* @returns `true` if the SemVer is less than the range, `false` otherwise.
|
20
21
|
*/
|
21
|
-
export declare function lessThanRange(
|
22
|
+
export declare function lessThanRange(version: SemVer, range: Range): boolean;
|
22
23
|
//# sourceMappingURL=less_than_range.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"less_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/less_than_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAK5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAIpE"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { Range, SemVer } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Returns the highest
|
3
|
+
* Returns the highest SemVer in the list that satisfies the range, or `undefined`
|
4
4
|
* if none of them do.
|
5
5
|
*
|
6
6
|
* @example Usage
|
7
7
|
* ```ts
|
8
8
|
* import { parse, parseRange, maxSatisfying } from "@std/semver";
|
9
|
-
* import { assertEquals } from "@std/assert
|
9
|
+
* import { assertEquals } from "@std/assert";
|
10
10
|
*
|
11
11
|
* const versions = ["1.2.3", "1.2.4", "1.3.0", "2.0.0", "2.1.0"].map(parse);
|
12
12
|
* const range = parseRange(">=1.0.0 <2.0.0");
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"max_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/max_satisfying.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAAE,EAClB,KAAK,EAAE,KAAK,GACX,MAAM,GAAG,SAAS,CAOpB"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { Range, SemVer } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Returns the lowest
|
3
|
+
* Returns the lowest SemVer in the list that satisfies the range, or `undefined` if
|
4
4
|
* none of them do.
|
5
5
|
*
|
6
6
|
* @example Usage
|
7
7
|
* ```ts
|
8
8
|
* import { parse, parseRange, minSatisfying } from "@std/semver";
|
9
|
-
* import { assertEquals } from "@std/assert
|
9
|
+
* import { assertEquals } from "@std/assert";
|
10
10
|
*
|
11
11
|
* const versions = ["0.2.0", "1.2.3", "1.3.0", "2.0.0", "2.1.0"].map(parse);
|
12
12
|
* const range = parseRange(">=1.0.0 <2.0.0");
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"min_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/min_satisfying.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAAE,EAClB,KAAK,EAAE,KAAK,GACX,MAAM,GAAG,SAAS,CAOpB"}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
* lessThan,
|
12
12
|
* format
|
13
13
|
* } from "@std/semver";
|
14
|
-
* import { assertEquals } from "@std/assert
|
14
|
+
* import { assertEquals } from "@std/assert";
|
15
15
|
*
|
16
16
|
* const semver = parse("1.2.3");
|
17
17
|
* assertEquals(semver, {
|
@@ -47,28 +47,28 @@
|
|
47
47
|
* formatting options.
|
48
48
|
*
|
49
49
|
* ```
|
50
|
-
*
|
51
|
-
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
55
|
-
*
|
56
|
-
*
|
57
|
-
*
|
58
|
-
*
|
59
|
-
*
|
60
|
-
*
|
61
|
-
*
|
62
|
-
*
|
50
|
+
* full
|
51
|
+
* ┌───┴───┐
|
52
|
+
* release │
|
53
|
+
* ┌───┴───┐ │
|
54
|
+
* primary │ │
|
55
|
+
* ┌─┴─┐ │ │
|
56
|
+
* 1.2.3-pre.1+b.1
|
57
|
+
* │ │ │ └─┬─┘ └┬┘
|
58
|
+
* │ │ │ │ └── build
|
59
|
+
* │ │ │ └─────── pre
|
60
|
+
* │ │ └─────────── patch
|
61
|
+
* │ └───────────── minor
|
62
|
+
* └─────────────── major
|
63
63
|
* ```
|
64
64
|
*
|
65
65
|
* ## Ranges
|
66
66
|
*
|
67
|
-
* A
|
68
|
-
* the range.
|
67
|
+
* A version {@linkcode Range} is a set of {@linkcode Comparator}s which specify
|
68
|
+
* versions that satisfy the range.
|
69
69
|
*
|
70
|
-
* A
|
71
|
-
* primitive `operators` is:
|
70
|
+
* A {@linkcode Comparator} is composed of an {@linkcode Operator} and a
|
71
|
+
* {@link SemVer}. The set of primitive `operators` is:
|
72
72
|
*
|
73
73
|
* - `<` Less than
|
74
74
|
* - `<=` Less than or equal to
|
@@ -119,12 +119,14 @@
|
|
119
119
|
*
|
120
120
|
* #### Prerelease Identifiers
|
121
121
|
*
|
122
|
-
* The method
|
123
|
-
* will append the value of the string as a prerelease identifier:
|
122
|
+
* The method {@linkcode increment} takes an additional `identifier` string
|
123
|
+
* argument that will append the value of the string as a prerelease identifier:
|
124
124
|
*
|
125
|
-
* ```
|
126
|
-
*
|
127
|
-
*
|
125
|
+
* ```ts
|
126
|
+
* import { increment, parse } from "@std/semver";
|
127
|
+
* import { assertEquals } from "@std/assert";
|
128
|
+
*
|
129
|
+
* assertEquals(increment(parse("1.2.3"), "prerelease", { prerelease: "alpha" }), parse("1.2.4-alpha.0"));
|
128
130
|
* ```
|
129
131
|
*
|
130
132
|
* ### Build Metadata
|
@@ -265,18 +267,12 @@
|
|
265
267
|
*
|
266
268
|
* If you want to know if a version satisfies or does not satisfy a range, use the
|
267
269
|
* {@linkcode satisfies} function.
|
268
|
-
*
|
269
|
-
*
|
270
|
-
*
|
271
|
-
|
272
270
|
*
|
273
271
|
* @module
|
274
272
|
*/
|
275
273
|
export * from "./compare.js";
|
276
|
-
export * from "./constants.js";
|
277
274
|
export * from "./difference.js";
|
278
275
|
export * from "./format.js";
|
279
|
-
export * from "./test_range.js";
|
280
276
|
export * from "./satisfies.js";
|
281
277
|
export * from "./increment.js";
|
282
278
|
export * from "./is_semver.js";
|
@@ -285,8 +281,6 @@ export * from "./min_satisfying.js";
|
|
285
281
|
export * from "./parse_range.js";
|
286
282
|
export * from "./parse.js";
|
287
283
|
export * from "./range_intersects.js";
|
288
|
-
export * from "./range_max.js";
|
289
|
-
export * from "./range_min.js";
|
290
284
|
export * from "./types.js";
|
291
285
|
export * from "./try_parse_range.js";
|
292
286
|
export * from "./is_range.js";
|
@@ -301,6 +295,4 @@ export * from "./greater_or_equal.js";
|
|
301
295
|
export * from "./less_than.js";
|
302
296
|
export * from "./less_than_range.js";
|
303
297
|
export * from "./less_or_equal.js";
|
304
|
-
/** The SemVer spec version */
|
305
|
-
export declare const SEMVER_SPEC_VERSION = "2.0.0";
|
306
298
|
//# sourceMappingURL=mod.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/mod.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+QG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { SemVer } from "./types.js";
|
2
|
+
/**
|
3
|
+
* Not equal comparison for two SemVers.
|
4
|
+
*
|
5
|
+
* This is equal to `compare(version1, version2) !== 0`.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts
|
9
|
+
* import { parse, notEquals } from "@std/semver";
|
10
|
+
* import { assert } from "@std/assert";
|
11
|
+
*
|
12
|
+
* const version1 = parse("1.2.3");
|
13
|
+
* const version2 = parse("1.2.4");
|
14
|
+
*
|
15
|
+
* assert(notEquals(version1, version2));
|
16
|
+
* assert(!notEquals(version1, version1));
|
17
|
+
* ```
|
18
|
+
*
|
19
|
+
* @param version1 The first version to compare
|
20
|
+
* @param version2 The second version to compare
|
21
|
+
* @returns `true` if `version1` is not equal to `version2`, `false` otherwise
|
22
|
+
*/
|
23
|
+
export declare function notEquals(version1: SemVer, version2: SemVer): boolean;
|
24
|
+
//# sourceMappingURL=not_equals.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/not_equals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErE"}
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import type { SemVer } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Attempt to parse a string as a semantic version, returning
|
4
|
-
* object or throws a TypeError.
|
3
|
+
* Attempt to parse a string as a semantic version, returning a SemVer object.
|
5
4
|
*
|
6
5
|
* @example Usage
|
7
6
|
* ```ts
|
8
7
|
* import { parse } from "@std/semver/parse";
|
9
|
-
* import { assertEquals } from "@std/assert
|
8
|
+
* import { assertEquals } from "@std/assert";
|
10
9
|
*
|
11
10
|
* const version = parse("1.2.3");
|
12
11
|
* assertEquals(version, {
|
@@ -18,8 +17,9 @@ import type { SemVer } from "./types.js";
|
|
18
17
|
* });
|
19
18
|
* ```
|
20
19
|
*
|
21
|
-
* @
|
20
|
+
* @throws {TypeError} If the input string is invalid.
|
21
|
+
* @param value The version string to parse
|
22
22
|
* @returns A valid SemVer
|
23
23
|
*/
|
24
|
-
export declare function parse(
|
24
|
+
export declare function parse(value: string): SemVer;
|
25
25
|
//# sourceMappingURL=parse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/parse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAqC3C"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import type { Range } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Parses a range string into a Range object
|
3
|
+
* Parses a range string into a {@linkcode Range} object.
|
4
4
|
*
|
5
5
|
* @example Usage
|
6
6
|
* ```ts
|
7
7
|
* import { parseRange } from "@std/semver/parse-range";
|
8
|
-
* import { assertEquals } from "@std/assert
|
8
|
+
* import { assertEquals } from "@std/assert";
|
9
9
|
*
|
10
10
|
* const range = parseRange(">=1.0.0 <2.0.0 || >=3.0.0");
|
11
11
|
* assertEquals(range, [
|
@@ -19,8 +19,9 @@ import type { Range } from "./types.js";
|
|
19
19
|
* ]);
|
20
20
|
* ```
|
21
21
|
*
|
22
|
-
* @
|
23
|
-
* @
|
22
|
+
* @throws {TypeError} If the input range is invalid.
|
23
|
+
* @param value The range set string
|
24
|
+
* @returns A valid SemVer range
|
24
25
|
*/
|
25
|
-
export declare function parseRange(
|
26
|
+
export declare function parseRange(value: string): Range;
|
26
27
|
//# sourceMappingURL=parse_range.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/parse_range.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAwB,KAAK,EAAE,MAAM,YAAY,CAAC;AAsX9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAY/C"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { Range } from "./types.js";
|
2
|
+
/**
|
3
|
+
* The ranges intersect every range of AND comparators intersects with a least
|
4
|
+
* one range of OR ranges.
|
5
|
+
*
|
6
|
+
* @example Usage
|
7
|
+
* ```ts
|
8
|
+
* import { parseRange, rangeIntersects } from "@std/semver";
|
9
|
+
* import { assert } from "@std/assert";
|
10
|
+
*
|
11
|
+
* const range1 = parseRange(">=1.0.0 <2.0.0");
|
12
|
+
* const range2 = parseRange(">=1.0.0 <1.2.3");
|
13
|
+
* const range3 = parseRange(">=1.2.3 <2.0.0");
|
14
|
+
*
|
15
|
+
* assert(rangeIntersects(range1, range2));
|
16
|
+
* assert(rangeIntersects(range1, range3));
|
17
|
+
* assert(!rangeIntersects(range2, range3));
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @param range1 range 0
|
21
|
+
* @param range2 range 1
|
22
|
+
* @returns returns true if the given ranges intersect, false otherwise
|
23
|
+
*/
|
24
|
+
export declare function rangeIntersects(range1: Range, range2: Range): boolean;
|
25
|
+
//# sourceMappingURL=range_intersects.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"range_intersects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/range_intersects.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AA8DpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAWrE"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import type { Range, SemVer } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Test to see if the
|
3
|
+
* Test to see if the SemVer satisfies the range.
|
4
4
|
*
|
5
5
|
* @example Usage
|
6
6
|
* ```ts
|
7
7
|
* import { parse, parseRange, satisfies } from "@std/semver";
|
8
|
-
* import { assert
|
8
|
+
* import { assert } from "@std/assert";
|
9
9
|
*
|
10
10
|
* const version = parse("1.2.3");
|
11
11
|
* const range0 = parseRange(">=1.0.0 <2.0.0");
|
@@ -14,7 +14,7 @@ import type { Range, SemVer } from "./types.js";
|
|
14
14
|
*
|
15
15
|
* assert(satisfies(version, range0));
|
16
16
|
* assert(satisfies(version, range1));
|
17
|
-
*
|
17
|
+
* assert(!satisfies(version, range2));
|
18
18
|
* ```
|
19
19
|
* @param version The version to test
|
20
20
|
* @param range The range to check
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"satisfies.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/satisfies.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGhD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAEhE"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import type { SemVer } from "./types.js";
|
2
2
|
/**
|
3
|
-
* Returns the parsed
|
3
|
+
* Returns the parsed SemVer, or `undefined` if it's not valid.
|
4
4
|
*
|
5
5
|
* @example Usage
|
6
6
|
* ```ts
|
7
7
|
* import { tryParse } from "@std/semver/try-parse";
|
8
|
-
* import { assertEquals } from "@std/assert
|
8
|
+
* import { assertEquals } from "@std/assert";
|
9
9
|
*
|
10
10
|
* assertEquals(tryParse("1.2.3"), { major: 1, minor: 2, patch: 3, prerelease: [], build: [] });
|
11
11
|
* assertEquals(tryParse("1.2.3-alpha"), { major: 1, minor: 2, patch: 3, prerelease: ["alpha"], build: [] });
|
@@ -14,8 +14,8 @@ import type { SemVer } from "./types.js";
|
|
14
14
|
* assertEquals(tryParse(" invalid "), undefined);
|
15
15
|
* ```
|
16
16
|
*
|
17
|
-
* @param
|
17
|
+
* @param value The version string to parse
|
18
18
|
* @returns A valid SemVer or `undefined`
|
19
19
|
*/
|
20
|
-
export declare function tryParse(
|
20
|
+
export declare function tryParse(value: string): SemVer | undefined;
|
21
21
|
//# sourceMappingURL=try_parse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"try_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/try_parse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM1D"}
|
@@ -16,8 +16,8 @@ import type { Range } from "./types.js";
|
|
16
16
|
* ]);
|
17
17
|
* ```
|
18
18
|
*
|
19
|
-
* @param
|
19
|
+
* @param value The range string
|
20
20
|
* @returns A Range object if valid otherwise `undefined`
|
21
21
|
*/
|
22
|
-
export declare function tryParseRange(
|
22
|
+
export declare function tryParseRange(value: string): Range | undefined;
|
23
23
|
//# sourceMappingURL=try_parse_range.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"try_parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/try_parse_range.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGxC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAQ9D"}
|
@@ -8,8 +8,19 @@ export type ReleaseType = "pre" | "major" | "premajor" | "minor" | "preminor" |
|
|
8
8
|
*/
|
9
9
|
export type Operator = undefined | "=" | "!=" | ">" | ">=" | "<" | "<=";
|
10
10
|
/**
|
11
|
-
* The shape of a valid
|
12
|
-
*
|
11
|
+
* The shape of a valid SemVer comparator.
|
12
|
+
*
|
13
|
+
* @example Usage
|
14
|
+
* ```ts
|
15
|
+
* import type { Comparator } from "@std/semver/types";
|
16
|
+
*
|
17
|
+
* const comparator: Comparator = {
|
18
|
+
* operator: ">",
|
19
|
+
* major: 1,
|
20
|
+
* minor: 2,
|
21
|
+
* patch: 3,
|
22
|
+
* }
|
23
|
+
* ```
|
13
24
|
*/
|
14
25
|
export interface Comparator extends SemVer {
|
15
26
|
/** The operator */
|
@@ -25,9 +36,17 @@ export interface SemVer {
|
|
25
36
|
minor: number;
|
26
37
|
/** The patch version */
|
27
38
|
patch: number;
|
28
|
-
/**
|
39
|
+
/**
|
40
|
+
* The prerelease version
|
41
|
+
*
|
42
|
+
* @default {[]}
|
43
|
+
*/
|
29
44
|
prerelease?: (string | number)[];
|
30
|
-
/**
|
45
|
+
/**
|
46
|
+
* The build metadata
|
47
|
+
*
|
48
|
+
* @default {[]}
|
49
|
+
*/
|
31
50
|
build?: string[];
|
32
51
|
}
|
33
52
|
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.3/types.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,YAAY,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,CAAC;AAET;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM;IACxC,mBAAmB;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,UAAU,EAAE,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/nodeinfo/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/nodeinfo/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,yCAAyC,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;CAAE,GACxC,SAAS,EAAE,GACX,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,CAAC;AAET;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;OAGG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAEhB,aAAa,GACb,YAAY,GACZ,MAAM,GACN,UAAU,GACV,WAAW,GACX,SAAS,GACT,QAAQ,GACR,MAAM,GACN,MAAM,GACN,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAEtB,SAAS,GACT,WAAW,GACX,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd;;;GAGG;AACH,MAAM,MAAM,eAAe,GAEvB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,WAAW,GACX,WAAW,GACX,QAAQ,GACR,eAAe,GACf,WAAW,GACX,UAAU,GACV,aAAa,GACb,aAAa,GACb,SAAS,GACT,WAAW,GACX,MAAM,GACN,WAAW,GACX,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,MAAM,GACN,MAAM,GACN,QAAQ,GACR,SAAS,GACT,WAAW,GACX,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,EAAE;QACL;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CA8D5D"}
|