@fedify/fedify 1.6.0-dev.811 → 1.6.0-dev.813
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +2 -0
- package/esm/deno.js +2 -3
- package/esm/federation/collection.js +1 -1
- package/esm/federation/handler.js +3 -2
- package/esm/{deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.js → federation/negotiation.js} +14 -62
- package/esm/nodeinfo/client.js +2 -2
- package/esm/nodeinfo/mod.js +1 -1
- package/esm/nodeinfo/semver.js +150 -0
- package/esm/nodeinfo/types.js +2 -2
- package/esm/runtime/key.js +4 -4
- package/esm/sig/http.js +2 -2
- package/esm/sig/ld.js +2 -2
- package/esm/sig/proof.js +1 -1
- package/esm/vocab/vocab.js +176 -176
- package/package.json +3 -2
- package/types/deno.d.ts +1 -2
- package/types/federation/handler.d.ts.map +1 -1
- package/types/{deps/jsr.io/@std/http/1.0.16/_negotiation/common.d.ts → federation/negotiation.d.ts} +2 -3
- package/types/federation/negotiation.d.ts.map +1 -0
- package/types/nodeinfo/client.d.ts.map +1 -1
- package/types/nodeinfo/mod.d.ts +1 -1
- package/types/nodeinfo/mod.d.ts.map +1 -1
- package/types/nodeinfo/semver.d.ts +71 -0
- package/types/nodeinfo/semver.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/encoding/1.0.7/_types.js +0 -2
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +0 -26
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.js +0 -163
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.js +0 -81
- package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +0 -109
- package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/common.js +0 -40
- package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.js +0 -123
- package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/language.js +0 -113
- package/esm/deps/jsr.io/@std/http/1.0.16/negotiation.js +0 -37
- package/esm/deps/jsr.io/@std/semver/1.0.5/_constants.js +0 -28
- package/esm/deps/jsr.io/@std/semver/1.0.5/_shared.js +0 -162
- package/esm/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.js +0 -58
- package/esm/deps/jsr.io/@std/semver/1.0.5/can_parse.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/compare.js +0 -35
- package/esm/deps/jsr.io/@std/semver/1.0.5/difference.js +0 -41
- package/esm/deps/jsr.io/@std/semver/1.0.5/equals.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/format.js +0 -32
- package/esm/deps/jsr.io/@std/semver/1.0.5/format_range.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.js +0 -26
- package/esm/deps/jsr.io/@std/semver/1.0.5/greater_than.js +0 -28
- package/esm/deps/jsr.io/@std/semver/1.0.5/greater_than_range.js +0 -58
- package/esm/deps/jsr.io/@std/semver/1.0.5/increment.js +0 -176
- package/esm/deps/jsr.io/@std/semver/1.0.5/is_range.js +0 -38
- package/esm/deps/jsr.io/@std/semver/1.0.5/is_semver.js +0 -53
- package/esm/deps/jsr.io/@std/semver/1.0.5/less_or_equal.js +0 -26
- package/esm/deps/jsr.io/@std/semver/1.0.5/less_than.js +0 -26
- package/esm/deps/jsr.io/@std/semver/1.0.5/less_than_range.js +0 -58
- package/esm/deps/jsr.io/@std/semver/1.0.5/max_satisfying.js +0 -30
- package/esm/deps/jsr.io/@std/semver/1.0.5/min_satisfying.js +0 -30
- package/esm/deps/jsr.io/@std/semver/1.0.5/mod.js +0 -300
- package/esm/deps/jsr.io/@std/semver/1.0.5/not_equals.js +0 -25
- package/esm/deps/jsr.io/@std/semver/1.0.5/parse.js +0 -44
- package/esm/deps/jsr.io/@std/semver/1.0.5/parse_range.js +0 -358
- package/esm/deps/jsr.io/@std/semver/1.0.5/range_intersects.js +0 -89
- package/esm/deps/jsr.io/@std/semver/1.0.5/satisfies.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/try_parse.js +0 -27
- package/esm/deps/jsr.io/@std/semver/1.0.5/try_parse_range.js +0 -33
- package/esm/deps/jsr.io/@std/semver/1.0.5/types.js +0 -3
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +0 -9
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +0 -2
- package/types/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +0 -40
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +0 -40
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +0 -39
- package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.d.ts +0 -34
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/language.d.ts +0 -31
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/language.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.d.ts +0 -31
- package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/http/1.0.16/negotiation.d.ts +0 -148
- package/types/deps/jsr.io/@std/http/1.0.16/negotiation.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts +0 -12
- package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/_shared.d.ts +0 -44
- package/types/deps/jsr.io/@std/semver/1.0.5/_shared.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.d.ts +0 -3
- package/types/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/can_parse.d.ts +0 -17
- package/types/deps/jsr.io/@std/semver/1.0.5/can_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/compare.d.ts +0 -28
- package/types/deps/jsr.io/@std/semver/1.0.5/compare.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/difference.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/1.0.5/difference.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/1.0.5/equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/format.d.ts +0 -22
- package/types/deps/jsr.io/@std/semver/1.0.5/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/format_range.d.ts +0 -18
- package/types/deps/jsr.io/@std/semver/1.0.5/format_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/greater_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/increment.d.ts +0 -51
- package/types/deps/jsr.io/@std/semver/1.0.5/increment.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/is_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/is_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/is_semver.d.ts +0 -34
- package/types/deps/jsr.io/@std/semver/1.0.5/is_semver.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/less_or_equal.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/less_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/less_than_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/max_satisfying.d.ts +0 -22
- package/types/deps/jsr.io/@std/semver/1.0.5/max_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/min_satisfying.d.ts +0 -22
- package/types/deps/jsr.io/@std/semver/1.0.5/min_satisfying.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/mod.d.ts +0 -298
- package/types/deps/jsr.io/@std/semver/1.0.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/not_equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/1.0.5/not_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/parse.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/parse_range.d.ts +0 -27
- package/types/deps/jsr.io/@std/semver/1.0.5/parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/range_intersects.d.ts +0 -25
- package/types/deps/jsr.io/@std/semver/1.0.5/range_intersects.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts +0 -24
- package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse.d.ts +0 -21
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse_range.d.ts +0 -23
- package/types/deps/jsr.io/@std/semver/1.0.5/try_parse_range.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/semver/1.0.5/types.d.ts +0 -58
- package/types/deps/jsr.io/@std/semver/1.0.5/types.d.ts.map +0 -1
@@ -1,51 +0,0 @@
|
|
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
|
-
}
|
9
|
-
/**
|
10
|
-
* Returns the new SemVer resulting from an increment by release type.
|
11
|
-
*
|
12
|
-
* `premajor`, `preminor` and `prepatch` will bump the version up to the next version,
|
13
|
-
* based on the type, and will also add prerelease metadata.
|
14
|
-
*
|
15
|
-
* If called from a non-prerelease version, the `prerelease` will work the same as
|
16
|
-
* `prepatch`. The patch version is incremented and then is made into a prerelease. If
|
17
|
-
* the input version is already a prerelease it will simply increment the prerelease
|
18
|
-
* metadata.
|
19
|
-
*
|
20
|
-
* If a prerelease identifier is specified without a number then a number will be added.
|
21
|
-
* For example `pre` will result in `pre.0`. If the existing version already has a
|
22
|
-
* prerelease with a number and its the same prerelease identifier then the number
|
23
|
-
* will be incremented. If the identifier differs from the new identifier then the new
|
24
|
-
* identifier is applied and the number is reset to `0`.
|
25
|
-
*
|
26
|
-
* If the input version has build metadata it will be preserved on the resulting version
|
27
|
-
* unless a new build parameter is specified. Specifying `""` will unset existing build
|
28
|
-
* metadata.
|
29
|
-
*
|
30
|
-
* @example Usage
|
31
|
-
* ```ts
|
32
|
-
* import { increment, parse } from "@std/semver";
|
33
|
-
* import { assertEquals } from "@std/assert";
|
34
|
-
*
|
35
|
-
* const version = parse("1.2.3");
|
36
|
-
* assertEquals(increment(version, "major"), parse("2.0.0"));
|
37
|
-
* assertEquals(increment(version, "minor"), parse("1.3.0"));
|
38
|
-
* assertEquals(increment(version, "patch"), parse("1.2.4"));
|
39
|
-
* assertEquals(increment(version, "prerelease"), parse("1.2.4-0"));
|
40
|
-
*
|
41
|
-
* const prerelease = parse("1.2.3-beta.0");
|
42
|
-
* assertEquals(increment(prerelease, "prerelease"), parse("1.2.3-beta.1"));
|
43
|
-
* ```
|
44
|
-
*
|
45
|
-
* @param version The version to increment
|
46
|
-
* @param release The type of increment to perform
|
47
|
-
* @param options Additional options
|
48
|
-
* @returns The new version
|
49
|
-
*/
|
50
|
-
export declare function increment(version: SemVer, release: ReleaseType, options?: IncrementOptions): SemVer;
|
51
|
-
//# sourceMappingURL=increment.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"increment.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { Range } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Does a deep check on the object to determine if its a valid range.
|
4
|
-
*
|
5
|
-
* Objects with extra fields are still considered valid if they have at
|
6
|
-
* least the correct fields.
|
7
|
-
*
|
8
|
-
* Adds a type assertion if true.
|
9
|
-
*
|
10
|
-
* @example Usage
|
11
|
-
* ```ts
|
12
|
-
* import { isRange } from "@std/semver/is-range";
|
13
|
-
* import { assert } from "@std/assert";
|
14
|
-
*
|
15
|
-
* const range = [[{ major: 1, minor: 2, patch: 3 }]];
|
16
|
-
* assert(isRange(range));
|
17
|
-
* assert(!isRange({}));
|
18
|
-
* ```
|
19
|
-
* @param value The value to check if its a valid Range
|
20
|
-
* @returns True if its a valid Range otherwise false.
|
21
|
-
*/
|
22
|
-
export declare function isRange(value: unknown): value is Range;
|
23
|
-
//# sourceMappingURL=is_range.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import type { SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Checks to see if value is a valid SemVer object. It does a check
|
4
|
-
* into each field including prerelease and build.
|
5
|
-
*
|
6
|
-
* Some invalid SemVer sentinels can still return true such as ANY and INVALID.
|
7
|
-
* An object which has the same value as a sentinel but isn't reference equal
|
8
|
-
* will still fail.
|
9
|
-
*
|
10
|
-
* Objects which are valid SemVer objects but have _extra_ fields are still
|
11
|
-
* considered SemVer objects and this will return true.
|
12
|
-
*
|
13
|
-
* A type assertion is added to the value.
|
14
|
-
*
|
15
|
-
* @example Usage
|
16
|
-
* ```ts
|
17
|
-
* import { isSemVer } from "@std/semver/is-semver";
|
18
|
-
* import { assert } from "@std/assert";
|
19
|
-
*
|
20
|
-
* const value = {
|
21
|
-
* major: 1,
|
22
|
-
* minor: 2,
|
23
|
-
* patch: 3,
|
24
|
-
* };
|
25
|
-
*
|
26
|
-
* assert(isSemVer(value));
|
27
|
-
* assert(!isSemVer({ major: 1, minor: 2 }));
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
* @param value The value to check to see if its a valid SemVer object
|
31
|
-
* @returns True if value is a valid SemVer otherwise false
|
32
|
-
*/
|
33
|
-
export declare function isSemVer(value: unknown): value is SemVer;
|
34
|
-
//# sourceMappingURL=is_semver.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_semver.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,25 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,25 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"less_than.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import type { Range, SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Check if the SemVer is less than the range.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { parse, parseRange, lessThanRange } from "@std/semver";
|
8
|
-
* import { assert } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const version1 = parse("1.2.3");
|
11
|
-
* const version2 = parse("1.0.0");
|
12
|
-
* const range = parseRange(">=1.2.3 <1.2.4");
|
13
|
-
*
|
14
|
-
* assert(!lessThanRange(version1, range));
|
15
|
-
* assert(lessThanRange(version2, range));
|
16
|
-
* ```
|
17
|
-
*
|
18
|
-
* @param version The version to check.
|
19
|
-
* @param range The range to check against.
|
20
|
-
* @returns `true` if the SemVer is less than the range, `false` otherwise.
|
21
|
-
*/
|
22
|
-
export declare function lessThanRange(version: SemVer, range: Range): boolean;
|
23
|
-
//# sourceMappingURL=less_than_range.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"less_than_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,22 +0,0 @@
|
|
1
|
-
import type { Range, SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Returns the highest SemVer in the list that satisfies the range, or `undefined`
|
4
|
-
* if none of them do.
|
5
|
-
*
|
6
|
-
* @example Usage
|
7
|
-
* ```ts
|
8
|
-
* import { parse, parseRange, maxSatisfying } from "@std/semver";
|
9
|
-
* import { assertEquals } from "@std/assert";
|
10
|
-
*
|
11
|
-
* const versions = ["1.2.3", "1.2.4", "1.3.0", "2.0.0", "2.1.0"].map(parse);
|
12
|
-
* const range = parseRange(">=1.0.0 <2.0.0");
|
13
|
-
*
|
14
|
-
* assertEquals(maxSatisfying(versions, range), parse("1.3.0"));
|
15
|
-
* ```
|
16
|
-
*
|
17
|
-
* @param versions The versions to check.
|
18
|
-
* @param range The range of possible versions to compare to.
|
19
|
-
* @returns The highest version in versions that satisfies the range.
|
20
|
-
*/
|
21
|
-
export declare function maxSatisfying(versions: SemVer[], range: Range): SemVer | undefined;
|
22
|
-
//# sourceMappingURL=max_satisfying.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"max_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,22 +0,0 @@
|
|
1
|
-
import type { Range, SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Returns the lowest SemVer in the list that satisfies the range, or `undefined` if
|
4
|
-
* none of them do.
|
5
|
-
*
|
6
|
-
* @example Usage
|
7
|
-
* ```ts
|
8
|
-
* import { parse, parseRange, minSatisfying } from "@std/semver";
|
9
|
-
* import { assertEquals } from "@std/assert";
|
10
|
-
*
|
11
|
-
* const versions = ["0.2.0", "1.2.3", "1.3.0", "2.0.0", "2.1.0"].map(parse);
|
12
|
-
* const range = parseRange(">=1.0.0 <2.0.0");
|
13
|
-
*
|
14
|
-
* assertEquals(minSatisfying(versions, range), parse("1.2.3"));
|
15
|
-
* ```
|
16
|
-
*
|
17
|
-
* @param versions The versions to check.
|
18
|
-
* @param range The range of possible versions to compare to.
|
19
|
-
* @returns The lowest version in versions that satisfies the range.
|
20
|
-
*/
|
21
|
-
export declare function minSatisfying(versions: SemVer[], range: Range): SemVer | undefined;
|
22
|
-
//# sourceMappingURL=min_satisfying.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"min_satisfying.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,298 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* The Semantic Version parser.
|
3
|
-
*
|
4
|
-
* Adapted directly from {@link https://github.com/npm/node-semver | semver}.
|
5
|
-
*
|
6
|
-
* ```ts
|
7
|
-
* import {
|
8
|
-
* parse,
|
9
|
-
* parseRange,
|
10
|
-
* greaterThan,
|
11
|
-
* lessThan,
|
12
|
-
* format
|
13
|
-
* } from "@std/semver";
|
14
|
-
* import { assertEquals } from "@std/assert";
|
15
|
-
*
|
16
|
-
* const semver = parse("1.2.3");
|
17
|
-
* assertEquals(semver, {
|
18
|
-
* major: 1,
|
19
|
-
* minor: 2,
|
20
|
-
* patch: 3,
|
21
|
-
* prerelease: [],
|
22
|
-
* build: []
|
23
|
-
* });
|
24
|
-
*
|
25
|
-
* assertEquals(format(semver), "1.2.3");
|
26
|
-
*
|
27
|
-
* const range = parseRange("1.x || >=2.5.0 || 5.0.0 - 7.2.3");
|
28
|
-
*
|
29
|
-
* const s0 = parse("1.2.3");
|
30
|
-
* const s1 = parse("9.8.7");
|
31
|
-
*
|
32
|
-
* assertEquals(greaterThan(s0, s1), false);
|
33
|
-
* assertEquals(lessThan(s0, s1), true);
|
34
|
-
* ```
|
35
|
-
*
|
36
|
-
* ## Versions
|
37
|
-
*
|
38
|
-
* A "version" is described by the `v2.0.0` specification found at
|
39
|
-
* <https://semver.org>.
|
40
|
-
*
|
41
|
-
* A leading `"="` or `"v"` character is stripped off and ignored.
|
42
|
-
*
|
43
|
-
* ## Format
|
44
|
-
*
|
45
|
-
* Semantic versions can be formatted as strings, by default they
|
46
|
-
* are formatted as `full`. Below is a diagram showing the various
|
47
|
-
* formatting options.
|
48
|
-
*
|
49
|
-
* ```
|
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
|
-
* ```
|
64
|
-
*
|
65
|
-
* ## Ranges
|
66
|
-
*
|
67
|
-
* A version {@linkcode Range} is a set of {@linkcode Comparator}s which specify
|
68
|
-
* versions that satisfy the range.
|
69
|
-
*
|
70
|
-
* A {@linkcode Comparator} is composed of an {@linkcode Operator} and a
|
71
|
-
* {@link SemVer}. The set of primitive `operators` is:
|
72
|
-
*
|
73
|
-
* - `<` Less than
|
74
|
-
* - `<=` Less than or equal to
|
75
|
-
* - `>` Greater than
|
76
|
-
* - `>=` Greater than or equal to
|
77
|
-
* - `=` Equal. If no operator is specified, then equality is assumed, so this
|
78
|
-
* operator is optional, but MAY be included.
|
79
|
-
*
|
80
|
-
* For example, the comparator `>=1.2.7` would match the versions `1.2.7`, `1.2.8`,
|
81
|
-
* `2.5.3`, and `1.3.9`, but not the versions `1.2.6` or `1.1.0`.
|
82
|
-
*
|
83
|
-
* Comparators can be joined by whitespace to form a `comparator set`, which is
|
84
|
-
* satisfied by the **intersection** of all of the comparators it includes.
|
85
|
-
*
|
86
|
-
* A range is composed of one or more comparator sets, joined by `||`. A version
|
87
|
-
* matches a range if and only if every comparator in at least one of the
|
88
|
-
* `||`-separated comparator sets is satisfied by the version.
|
89
|
-
*
|
90
|
-
* For example, the range `>=1.2.7 <1.3.0` would match the versions `1.2.7`,
|
91
|
-
* `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, or `1.1.0`.
|
92
|
-
*
|
93
|
-
* The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, `1.2.9`,
|
94
|
-
* and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
|
95
|
-
*
|
96
|
-
* ### Prerelease Tags
|
97
|
-
*
|
98
|
-
* If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then it will
|
99
|
-
* only be allowed to satisfy comparator sets if at least one comparator with the
|
100
|
-
* same `[major, minor, patch]` tuple also has a prerelease tag.
|
101
|
-
*
|
102
|
-
* For example, the range `>1.2.3-alpha.3` would be allowed to match the version
|
103
|
-
* `1.2.3-alpha.7`, but it would _not_ be satisfied by `3.4.5-alpha.9`, even though
|
104
|
-
* `3.4.5-alpha.9` is technically "greater than" `1.2.3-alpha.3` according to the
|
105
|
-
* SemVer sort rules. The version range only accepts prerelease tags on the `1.2.3`
|
106
|
-
* version. The version `3.4.5` _would_ satisfy the range, because it does not have
|
107
|
-
* a prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
|
108
|
-
*
|
109
|
-
* The purpose for this behavior is twofold. First, prerelease versions frequently
|
110
|
-
* are updated very quickly, and contain many breaking changes that are (by the
|
111
|
-
* author"s design) not yet fit for public consumption. Therefore, by default, they
|
112
|
-
* are excluded from range matching semantics.
|
113
|
-
*
|
114
|
-
* Second, a user who has opted into using a prerelease version has clearly
|
115
|
-
* indicated the intent to use _that specific_ set of alpha/beta/rc versions. By
|
116
|
-
* including a prerelease tag in the range, the user is indicating that they are
|
117
|
-
* aware of the risk. However, it is still not appropriate to assume that they have
|
118
|
-
* opted into taking a similar risk on the _next_ set of prerelease versions.
|
119
|
-
*
|
120
|
-
* #### Prerelease Identifiers
|
121
|
-
*
|
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
|
-
*
|
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"));
|
130
|
-
* ```
|
131
|
-
*
|
132
|
-
* ### Build Metadata
|
133
|
-
*
|
134
|
-
* Build metadata is `.` delimited alpha-numeric string.
|
135
|
-
* When parsing a version it is retained on the `build: string[]` field
|
136
|
-
* of the SemVer instance. When incrementing there is an additional parameter that
|
137
|
-
* can set the build metadata on the SemVer instance.
|
138
|
-
*
|
139
|
-
* ### Advanced Range Syntax
|
140
|
-
*
|
141
|
-
* Advanced range syntax desugars to primitive comparators in deterministic ways.
|
142
|
-
*
|
143
|
-
* Advanced ranges may be combined in the same way as primitive comparators using
|
144
|
-
* white space or `||`.
|
145
|
-
*
|
146
|
-
* #### Hyphen Ranges `X.Y.Z - A.B.C`
|
147
|
-
*
|
148
|
-
* Specifies an inclusive set.
|
149
|
-
*
|
150
|
-
* - `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
|
151
|
-
*
|
152
|
-
* If a partial version is provided as the first version in the inclusive range,
|
153
|
-
* then the missing pieces are replaced with zeroes.
|
154
|
-
*
|
155
|
-
* - `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
|
156
|
-
*
|
157
|
-
* If a partial version is provided as the second version in the inclusive range,
|
158
|
-
* then all versions that start with the supplied parts of the tuple are accepted,
|
159
|
-
* but nothing that would be greater than the provided tuple parts.
|
160
|
-
*
|
161
|
-
* - `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
|
162
|
-
* - `1.2.3 - 2` := `>=1.2.3 <3.0.0`
|
163
|
-
*
|
164
|
-
* #### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
|
165
|
-
*
|
166
|
-
* Any of `X`, `x`, or `*` may be used to "stand in" for one of the numeric values
|
167
|
-
* in the `[major, minor, patch]` tuple.
|
168
|
-
*
|
169
|
-
* - `*` := `>=0.0.0` (Any version satisfies)
|
170
|
-
* - `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
|
171
|
-
* - `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
|
172
|
-
*
|
173
|
-
* A partial version range is treated as an X-Range, so the special character is in
|
174
|
-
* fact optional.
|
175
|
-
*
|
176
|
-
* - `""` (empty string) := `*` := `>=0.0.0`
|
177
|
-
* - `1` := `1.x.x` := `>=1.0.0 <2.0.0`
|
178
|
-
* - `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
|
179
|
-
*
|
180
|
-
* #### Tilde Ranges `~1.2.3` `~1.2` `~1`
|
181
|
-
*
|
182
|
-
* Allows patch-level changes if a minor version is specified on the comparator.
|
183
|
-
* Allows minor-level changes if not.
|
184
|
-
*
|
185
|
-
* - `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
|
186
|
-
* - `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
|
187
|
-
* - `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
|
188
|
-
* - `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
|
189
|
-
* - `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
|
190
|
-
* - `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
|
191
|
-
* - `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in the
|
192
|
-
* `1.2.3` version will be allowed, if they are greater than or equal to
|
193
|
-
* `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
|
194
|
-
* because it is a prerelease of a different `[major, minor, patch]` tuple.
|
195
|
-
*
|
196
|
-
* #### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
|
197
|
-
*
|
198
|
-
* Allows changes that do not modify the left-most non-zero element in the
|
199
|
-
* `[major, minor, patch]` tuple. In other words, this allows patch and minor
|
200
|
-
* updates for versions `1.0.0` and above, patch updates for versions
|
201
|
-
* `0.X >=0.1.0`, and _no_ updates for versions `0.0.X`.
|
202
|
-
*
|
203
|
-
* Many authors treat a `0.x` version as if the `x` were the major
|
204
|
-
* "breaking-change" indicator.
|
205
|
-
*
|
206
|
-
* Caret ranges are ideal when an author may make breaking changes between `0.2.4`
|
207
|
-
* and `0.3.0` releases, which is a common practice. However, it presumes that
|
208
|
-
* there will _not_ be breaking changes between `0.2.4` and `0.2.5`. It allows for
|
209
|
-
* changes that are presumed to be additive (but non-breaking), according to
|
210
|
-
* commonly observed practices.
|
211
|
-
*
|
212
|
-
* - `^1.2.3` := `>=1.2.3 <2.0.0`
|
213
|
-
* - `^0.2.3` := `>=0.2.3 <0.3.0`
|
214
|
-
* - `^0.0.3` := `>=0.0.3 <0.0.4`
|
215
|
-
* - `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in the
|
216
|
-
* `1.2.3` version will be allowed, if they are greater than or equal to
|
217
|
-
* `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
|
218
|
-
* because it is a prerelease of a different `[major, minor, patch]` tuple.
|
219
|
-
* - `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the `0.0.3`
|
220
|
-
* version _only_ will be allowed, if they are greater than or equal to `beta`.
|
221
|
-
* So, `0.0.3-pr.2` would be allowed.
|
222
|
-
*
|
223
|
-
* When parsing caret ranges, a missing `patch` value desugars to the number `0`,
|
224
|
-
* but will allow flexibility within that value, even if the major and minor
|
225
|
-
* versions are both `0`.
|
226
|
-
*
|
227
|
-
* - `^1.2.x` := `>=1.2.0 <2.0.0`
|
228
|
-
* - `^0.0.x` := `>=0.0.0 <0.1.0`
|
229
|
-
* - `^0.0` := `>=0.0.0 <0.1.0`
|
230
|
-
*
|
231
|
-
* A missing `minor` and `patch` values will desugar to zero, but also allow
|
232
|
-
* flexibility within those values, even if the major version is zero.
|
233
|
-
*
|
234
|
-
* - `^1.x` := `>=1.0.0 <2.0.0`
|
235
|
-
* - `^0.x` := `>=0.0.0 <1.0.0`
|
236
|
-
*
|
237
|
-
* ### Range Grammar
|
238
|
-
*
|
239
|
-
* Putting all this together, here is a Backus-Naur grammar for ranges, for the
|
240
|
-
* benefit of parser authors:
|
241
|
-
*
|
242
|
-
* ```bnf
|
243
|
-
* range-set ::= range ( logical-or range ) *
|
244
|
-
* logical-or ::= ( " " ) * "||" ( " " ) *
|
245
|
-
* range ::= hyphen | simple ( " " simple ) * | ""
|
246
|
-
* hyphen ::= partial " - " partial
|
247
|
-
* simple ::= primitive | partial | tilde | caret
|
248
|
-
* primitive ::= ( "<" | ">" | ">=" | "<=" | "=" ) partial
|
249
|
-
* partial ::= xr ( "." xr ( "." xr qualifier ? )? )?
|
250
|
-
* xr ::= "x" | "X" | "*" | nr
|
251
|
-
* nr ::= "0" | ["1"-"9"] ( ["0"-"9"] ) *
|
252
|
-
* tilde ::= "~" partial
|
253
|
-
* caret ::= "^" partial
|
254
|
-
* qualifier ::= ( "-" pre )? ( "+" build )?
|
255
|
-
* pre ::= parts
|
256
|
-
* build ::= parts
|
257
|
-
* parts ::= part ( "." part ) *
|
258
|
-
* part ::= nr | [-0-9A-Za-z]+
|
259
|
-
* ```
|
260
|
-
*
|
261
|
-
* Note that, since ranges may be non-contiguous, a version might not be greater
|
262
|
-
* than a range, less than a range, _or_ satisfy a range! For example, the range
|
263
|
-
* `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` until `2.0.0`, so the
|
264
|
-
* version `1.2.10` would not be greater than the range (because `2.0.1` satisfies,
|
265
|
-
* which is higher), nor less than the range (since `1.2.8` satisfies, which is
|
266
|
-
* lower), and it also does not satisfy the range.
|
267
|
-
*
|
268
|
-
* If you want to know if a version satisfies or does not satisfy a range, use the
|
269
|
-
* {@linkcode satisfies} function.
|
270
|
-
*
|
271
|
-
* @module
|
272
|
-
*/
|
273
|
-
export * from "./compare.js";
|
274
|
-
export * from "./difference.js";
|
275
|
-
export * from "./format.js";
|
276
|
-
export * from "./satisfies.js";
|
277
|
-
export * from "./increment.js";
|
278
|
-
export * from "./is_semver.js";
|
279
|
-
export * from "./max_satisfying.js";
|
280
|
-
export * from "./min_satisfying.js";
|
281
|
-
export * from "./parse_range.js";
|
282
|
-
export * from "./parse.js";
|
283
|
-
export * from "./range_intersects.js";
|
284
|
-
export * from "./types.js";
|
285
|
-
export * from "./try_parse_range.js";
|
286
|
-
export * from "./is_range.js";
|
287
|
-
export * from "./can_parse.js";
|
288
|
-
export * from "./try_parse.js";
|
289
|
-
export * from "./format_range.js";
|
290
|
-
export * from "./equals.js";
|
291
|
-
export * from "./not_equals.js";
|
292
|
-
export * from "./greater_than.js";
|
293
|
-
export * from "./greater_than_range.js";
|
294
|
-
export * from "./greater_or_equal.js";
|
295
|
-
export * from "./less_than.js";
|
296
|
-
export * from "./less_than_range.js";
|
297
|
-
export * from "./less_or_equal.js";
|
298
|
-
//# sourceMappingURL=mod.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
|
@@ -1,24 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,25 +0,0 @@
|
|
1
|
-
import type { SemVer } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Attempt to parse a string as a semantic version, returning a SemVer object.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { parse } from "@std/semver/parse";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const version = parse("1.2.3");
|
11
|
-
* assertEquals(version, {
|
12
|
-
* major: 1,
|
13
|
-
* minor: 2,
|
14
|
-
* patch: 3,
|
15
|
-
* prerelease: [],
|
16
|
-
* build: [],
|
17
|
-
* });
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* @throws {TypeError} If the input string is invalid.
|
21
|
-
* @param value The version string to parse
|
22
|
-
* @returns A valid SemVer
|
23
|
-
*/
|
24
|
-
export declare function parse(value: string): SemVer;
|
25
|
-
//# sourceMappingURL=parse.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,27 +0,0 @@
|
|
1
|
-
import type { Range } from "./types.js";
|
2
|
-
/**
|
3
|
-
* Parses a range string into a {@linkcode Range} object.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts
|
7
|
-
* import { parseRange } from "@std/semver/parse-range";
|
8
|
-
* import { assertEquals } from "@std/assert";
|
9
|
-
*
|
10
|
-
* const range = parseRange(">=1.0.0 <2.0.0 || >=3.0.0");
|
11
|
-
* assertEquals(range, [
|
12
|
-
* [
|
13
|
-
* { operator: ">=", major: 1, minor: 0, patch: 0, prerelease: [], build: [] },
|
14
|
-
* { operator: "<", major: 2, minor: 0, patch: 0, prerelease: [], build: [] },
|
15
|
-
* ],
|
16
|
-
* [
|
17
|
-
* { operator: ">=", major: 3, minor: 0, patch: 0, prerelease: [], build: [] },
|
18
|
-
* ]
|
19
|
-
* ]);
|
20
|
-
* ```
|
21
|
-
*
|
22
|
-
* @throws {TypeError} If the input range is invalid.
|
23
|
-
* @param value The range set string
|
24
|
-
* @returns A valid SemVer range
|
25
|
-
*/
|
26
|
-
export declare function parseRange(value: string): Range;
|
27
|
-
//# sourceMappingURL=parse_range.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/parse_range.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAwB,KAAK,EAAE,MAAM,YAAY,CAAC;AAoX9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAY/C"}
|