@fedify/fedify 1.6.0-dev.812 → 1.6.0-dev.814

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.
Files changed (120) hide show
  1. package/esm/deno.js +1 -2
  2. package/esm/federation/handler.js +3 -2
  3. package/esm/{deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.js → federation/negotiation.js} +14 -62
  4. package/esm/nodeinfo/client.js +2 -2
  5. package/esm/nodeinfo/mod.js +1 -1
  6. package/esm/nodeinfo/semver.js +150 -0
  7. package/esm/nodeinfo/types.js +2 -2
  8. package/esm/vocab/vocab.js +176 -176
  9. package/package.json +1 -1
  10. package/types/deno.d.ts +0 -1
  11. package/types/federation/handler.d.ts.map +1 -1
  12. package/types/{deps/jsr.io/@std/http/1.0.16/_negotiation/common.d.ts → federation/negotiation.d.ts} +2 -3
  13. package/types/federation/negotiation.d.ts.map +1 -0
  14. package/types/nodeinfo/client.d.ts.map +1 -1
  15. package/types/nodeinfo/mod.d.ts +1 -1
  16. package/types/nodeinfo/mod.d.ts.map +1 -1
  17. package/types/nodeinfo/semver.d.ts +71 -0
  18. package/types/nodeinfo/semver.d.ts.map +1 -0
  19. package/types/nodeinfo/types.d.ts +1 -1
  20. package/types/nodeinfo/types.d.ts.map +1 -1
  21. package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/common.js +0 -40
  22. package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.js +0 -123
  23. package/esm/deps/jsr.io/@std/http/1.0.16/_negotiation/language.js +0 -113
  24. package/esm/deps/jsr.io/@std/http/1.0.16/negotiation.js +0 -37
  25. package/esm/deps/jsr.io/@std/semver/1.0.5/_constants.js +0 -28
  26. package/esm/deps/jsr.io/@std/semver/1.0.5/_shared.js +0 -162
  27. package/esm/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.js +0 -58
  28. package/esm/deps/jsr.io/@std/semver/1.0.5/can_parse.js +0 -27
  29. package/esm/deps/jsr.io/@std/semver/1.0.5/compare.js +0 -35
  30. package/esm/deps/jsr.io/@std/semver/1.0.5/difference.js +0 -41
  31. package/esm/deps/jsr.io/@std/semver/1.0.5/equals.js +0 -27
  32. package/esm/deps/jsr.io/@std/semver/1.0.5/format.js +0 -32
  33. package/esm/deps/jsr.io/@std/semver/1.0.5/format_range.js +0 -27
  34. package/esm/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.js +0 -26
  35. package/esm/deps/jsr.io/@std/semver/1.0.5/greater_than.js +0 -28
  36. package/esm/deps/jsr.io/@std/semver/1.0.5/greater_than_range.js +0 -58
  37. package/esm/deps/jsr.io/@std/semver/1.0.5/increment.js +0 -176
  38. package/esm/deps/jsr.io/@std/semver/1.0.5/is_range.js +0 -38
  39. package/esm/deps/jsr.io/@std/semver/1.0.5/is_semver.js +0 -53
  40. package/esm/deps/jsr.io/@std/semver/1.0.5/less_or_equal.js +0 -26
  41. package/esm/deps/jsr.io/@std/semver/1.0.5/less_than.js +0 -26
  42. package/esm/deps/jsr.io/@std/semver/1.0.5/less_than_range.js +0 -58
  43. package/esm/deps/jsr.io/@std/semver/1.0.5/max_satisfying.js +0 -30
  44. package/esm/deps/jsr.io/@std/semver/1.0.5/min_satisfying.js +0 -30
  45. package/esm/deps/jsr.io/@std/semver/1.0.5/mod.js +0 -300
  46. package/esm/deps/jsr.io/@std/semver/1.0.5/not_equals.js +0 -25
  47. package/esm/deps/jsr.io/@std/semver/1.0.5/parse.js +0 -44
  48. package/esm/deps/jsr.io/@std/semver/1.0.5/parse_range.js +0 -358
  49. package/esm/deps/jsr.io/@std/semver/1.0.5/range_intersects.js +0 -89
  50. package/esm/deps/jsr.io/@std/semver/1.0.5/satisfies.js +0 -27
  51. package/esm/deps/jsr.io/@std/semver/1.0.5/try_parse.js +0 -27
  52. package/esm/deps/jsr.io/@std/semver/1.0.5/try_parse_range.js +0 -33
  53. package/esm/deps/jsr.io/@std/semver/1.0.5/types.js +0 -3
  54. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/common.d.ts.map +0 -1
  55. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.d.ts +0 -34
  56. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/encoding.d.ts.map +0 -1
  57. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/language.d.ts +0 -31
  58. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/language.d.ts.map +0 -1
  59. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.d.ts +0 -31
  60. package/types/deps/jsr.io/@std/http/1.0.16/_negotiation/media_type.d.ts.map +0 -1
  61. package/types/deps/jsr.io/@std/http/1.0.16/negotiation.d.ts +0 -148
  62. package/types/deps/jsr.io/@std/http/1.0.16/negotiation.d.ts.map +0 -1
  63. package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts +0 -12
  64. package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts.map +0 -1
  65. package/types/deps/jsr.io/@std/semver/1.0.5/_shared.d.ts +0 -44
  66. package/types/deps/jsr.io/@std/semver/1.0.5/_shared.d.ts.map +0 -1
  67. package/types/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.d.ts +0 -3
  68. package/types/deps/jsr.io/@std/semver/1.0.5/_test_comparator_set.d.ts.map +0 -1
  69. package/types/deps/jsr.io/@std/semver/1.0.5/can_parse.d.ts +0 -17
  70. package/types/deps/jsr.io/@std/semver/1.0.5/can_parse.d.ts.map +0 -1
  71. package/types/deps/jsr.io/@std/semver/1.0.5/compare.d.ts +0 -28
  72. package/types/deps/jsr.io/@std/semver/1.0.5/compare.d.ts.map +0 -1
  73. package/types/deps/jsr.io/@std/semver/1.0.5/difference.d.ts +0 -27
  74. package/types/deps/jsr.io/@std/semver/1.0.5/difference.d.ts.map +0 -1
  75. package/types/deps/jsr.io/@std/semver/1.0.5/equals.d.ts +0 -24
  76. package/types/deps/jsr.io/@std/semver/1.0.5/equals.d.ts.map +0 -1
  77. package/types/deps/jsr.io/@std/semver/1.0.5/format.d.ts +0 -22
  78. package/types/deps/jsr.io/@std/semver/1.0.5/format.d.ts.map +0 -1
  79. package/types/deps/jsr.io/@std/semver/1.0.5/format_range.d.ts +0 -18
  80. package/types/deps/jsr.io/@std/semver/1.0.5/format_range.d.ts.map +0 -1
  81. package/types/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.d.ts +0 -25
  82. package/types/deps/jsr.io/@std/semver/1.0.5/greater_or_equal.d.ts.map +0 -1
  83. package/types/deps/jsr.io/@std/semver/1.0.5/greater_than.d.ts +0 -25
  84. package/types/deps/jsr.io/@std/semver/1.0.5/greater_than.d.ts.map +0 -1
  85. package/types/deps/jsr.io/@std/semver/1.0.5/greater_than_range.d.ts +0 -23
  86. package/types/deps/jsr.io/@std/semver/1.0.5/greater_than_range.d.ts.map +0 -1
  87. package/types/deps/jsr.io/@std/semver/1.0.5/increment.d.ts +0 -51
  88. package/types/deps/jsr.io/@std/semver/1.0.5/increment.d.ts.map +0 -1
  89. package/types/deps/jsr.io/@std/semver/1.0.5/is_range.d.ts +0 -23
  90. package/types/deps/jsr.io/@std/semver/1.0.5/is_range.d.ts.map +0 -1
  91. package/types/deps/jsr.io/@std/semver/1.0.5/is_semver.d.ts +0 -34
  92. package/types/deps/jsr.io/@std/semver/1.0.5/is_semver.d.ts.map +0 -1
  93. package/types/deps/jsr.io/@std/semver/1.0.5/less_or_equal.d.ts +0 -25
  94. package/types/deps/jsr.io/@std/semver/1.0.5/less_or_equal.d.ts.map +0 -1
  95. package/types/deps/jsr.io/@std/semver/1.0.5/less_than.d.ts +0 -25
  96. package/types/deps/jsr.io/@std/semver/1.0.5/less_than.d.ts.map +0 -1
  97. package/types/deps/jsr.io/@std/semver/1.0.5/less_than_range.d.ts +0 -23
  98. package/types/deps/jsr.io/@std/semver/1.0.5/less_than_range.d.ts.map +0 -1
  99. package/types/deps/jsr.io/@std/semver/1.0.5/max_satisfying.d.ts +0 -22
  100. package/types/deps/jsr.io/@std/semver/1.0.5/max_satisfying.d.ts.map +0 -1
  101. package/types/deps/jsr.io/@std/semver/1.0.5/min_satisfying.d.ts +0 -22
  102. package/types/deps/jsr.io/@std/semver/1.0.5/min_satisfying.d.ts.map +0 -1
  103. package/types/deps/jsr.io/@std/semver/1.0.5/mod.d.ts +0 -298
  104. package/types/deps/jsr.io/@std/semver/1.0.5/mod.d.ts.map +0 -1
  105. package/types/deps/jsr.io/@std/semver/1.0.5/not_equals.d.ts +0 -24
  106. package/types/deps/jsr.io/@std/semver/1.0.5/not_equals.d.ts.map +0 -1
  107. package/types/deps/jsr.io/@std/semver/1.0.5/parse.d.ts +0 -25
  108. package/types/deps/jsr.io/@std/semver/1.0.5/parse.d.ts.map +0 -1
  109. package/types/deps/jsr.io/@std/semver/1.0.5/parse_range.d.ts +0 -27
  110. package/types/deps/jsr.io/@std/semver/1.0.5/parse_range.d.ts.map +0 -1
  111. package/types/deps/jsr.io/@std/semver/1.0.5/range_intersects.d.ts +0 -25
  112. package/types/deps/jsr.io/@std/semver/1.0.5/range_intersects.d.ts.map +0 -1
  113. package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts +0 -24
  114. package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts.map +0 -1
  115. package/types/deps/jsr.io/@std/semver/1.0.5/try_parse.d.ts +0 -21
  116. package/types/deps/jsr.io/@std/semver/1.0.5/try_parse.d.ts.map +0 -1
  117. package/types/deps/jsr.io/@std/semver/1.0.5/try_parse_range.d.ts +0 -23
  118. package/types/deps/jsr.io/@std/semver/1.0.5/try_parse_range.d.ts.map +0 -1
  119. package/types/deps/jsr.io/@std/semver/1.0.5/types.d.ts +0 -58
  120. package/types/deps/jsr.io/@std/semver/1.0.5/types.d.ts.map +0 -1
@@ -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"}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"range_intersects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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,24 +0,0 @@
1
- import type { Range, SemVer } from "./types.js";
2
- /**
3
- * Test to see if the SemVer satisfies the range.
4
- *
5
- * @example Usage
6
- * ```ts
7
- * import { parse, parseRange, satisfies } from "@std/semver";
8
- * import { assert } from "@std/assert";
9
- *
10
- * const version = parse("1.2.3");
11
- * const range0 = parseRange(">=1.0.0 <2.0.0");
12
- * const range1 = parseRange(">=1.0.0 <1.3.0");
13
- * const range2 = parseRange(">=1.0.0 <1.2.3");
14
- *
15
- * assert(satisfies(version, range0));
16
- * assert(satisfies(version, range1));
17
- * assert(!satisfies(version, range2));
18
- * ```
19
- * @param version The version to test
20
- * @param range The range to check
21
- * @returns true if the version is in the range
22
- */
23
- export declare function satisfies(version: SemVer, range: Range): boolean;
24
- //# sourceMappingURL=satisfies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"satisfies.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/satisfies.ts"],"names":[],"mappings":"AAGA,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,21 +0,0 @@
1
- import type { SemVer } from "./types.js";
2
- /**
3
- * Returns the parsed SemVer, or `undefined` if it's not valid.
4
- *
5
- * @example Usage
6
- * ```ts
7
- * import { tryParse } from "@std/semver/try-parse";
8
- * import { assertEquals } from "@std/assert";
9
- *
10
- * assertEquals(tryParse("1.2.3"), { major: 1, minor: 2, patch: 3, prerelease: [], build: [] });
11
- * assertEquals(tryParse("1.2.3-alpha"), { major: 1, minor: 2, patch: 3, prerelease: ["alpha"], build: [] });
12
- * assertEquals(tryParse("1.2.3+build"), { major: 1, minor: 2, patch: 3, prerelease: [], build: ["build"] });
13
- * assertEquals(tryParse("1.2.3-alpha.1+build.1"), { major: 1, minor: 2, patch: 3, prerelease: ["alpha", 1], build: ["build", "1"] });
14
- * assertEquals(tryParse(" invalid "), undefined);
15
- * ```
16
- *
17
- * @param value The version string to parse
18
- * @returns A valid SemVer or `undefined`
19
- */
20
- export declare function tryParse(value: string): SemVer | undefined;
21
- //# sourceMappingURL=try_parse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"try_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}
@@ -1,23 +0,0 @@
1
- import type { Range } from "./types.js";
2
- /**
3
- * Parses the given range string and returns a Range object. If the range string
4
- * is invalid, `undefined` is returned.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { tryParseRange } from "@std/semver";
9
- * import { assertEquals } from "@std/assert";
10
- *
11
- * assertEquals(tryParseRange(">=1.2.3 <1.2.4"), [
12
- * [
13
- * { operator: ">=", major: 1, minor: 2, patch: 3, prerelease: [], build: [] },
14
- * { operator: "<", major: 1, minor: 2, patch: 4, prerelease: [], build: [] },
15
- * ],
16
- * ]);
17
- * ```
18
- *
19
- * @param value The range string
20
- * @returns A Range object if valid otherwise `undefined`
21
- */
22
- export declare function tryParseRange(value: string): Range | undefined;
23
- //# sourceMappingURL=try_parse_range.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"try_parse_range.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/1.0.5/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"}