@fedify/fedify 1.0.0-dev.409 → 1.0.0-dev.411

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. package/CHANGES.md +12 -0
  2. package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/_validate_binary_like.js +1 -1
  3. package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64.js +3 -5
  4. package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64url.js +3 -5
  5. package/esm/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/hex.js +7 -9
  6. package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/encoding.js +3 -1
  7. package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/language.js +2 -2
  8. package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/media_type.js +7 -7
  9. package/esm/deps/jsr.io/@std/semver/1.0.3/_constants.js +38 -0
  10. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_shared.js +3 -2
  11. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/can_parse.js +4 -7
  12. package/esm/deps/jsr.io/@std/semver/1.0.3/compare.js +35 -0
  13. package/esm/deps/jsr.io/@std/semver/1.0.3/difference.js +41 -0
  14. package/esm/deps/jsr.io/@std/semver/1.0.3/equals.js +27 -0
  15. package/esm/deps/jsr.io/@std/semver/1.0.3/format.js +32 -0
  16. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format_range.js +5 -3
  17. package/esm/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.js +26 -0
  18. package/esm/deps/jsr.io/@std/semver/1.0.3/greater_than.js +28 -0
  19. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/greater_than_range.js +14 -13
  20. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/increment.js +13 -14
  21. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_range.js +4 -4
  22. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_semver.js +3 -5
  23. package/esm/deps/jsr.io/@std/semver/1.0.3/less_or_equal.js +26 -0
  24. package/esm/deps/jsr.io/@std/semver/1.0.3/less_than.js +26 -0
  25. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/less_than_range.js +14 -13
  26. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/max_satisfying.js +2 -2
  27. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/min_satisfying.js +2 -2
  28. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/mod.js +25 -33
  29. package/esm/deps/jsr.io/@std/semver/1.0.3/not_equals.js +25 -0
  30. package/esm/deps/jsr.io/@std/semver/1.0.3/parse.js +44 -0
  31. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse_range.js +18 -13
  32. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/range_intersects.js +29 -28
  33. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/satisfies.js +3 -3
  34. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse.js +5 -8
  35. package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse_range.js +3 -3
  36. package/esm/federation/collection.js +1 -1
  37. package/esm/federation/handler.js +1 -1
  38. package/esm/nodeinfo/types.js +1 -1
  39. package/esm/runtime/key.js +3 -3
  40. package/esm/sig/http.js +1 -1
  41. package/esm/sig/ld.js +2 -2
  42. package/package.json +4 -4
  43. package/types/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.d.ts.map +1 -0
  44. package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64.d.ts +2 -2
  45. package/types/deps/jsr.io/@std/encoding/1.0.5/base64.d.ts.map +1 -0
  46. package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/base64url.d.ts +2 -2
  47. package/types/deps/jsr.io/@std/encoding/1.0.5/base64url.d.ts.map +1 -0
  48. package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/hex.d.ts +2 -2
  49. package/types/deps/jsr.io/@std/encoding/1.0.5/hex.d.ts.map +1 -0
  50. package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/common.d.ts +2 -2
  51. package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/common.d.ts.map +1 -0
  52. package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/encoding.d.ts.map +1 -0
  53. package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/language.d.ts.map +1 -0
  54. package/types/deps/jsr.io/@std/http/1.0.6/_negotiation/media_type.d.ts.map +1 -0
  55. package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/negotiation.d.ts +13 -18
  56. package/types/deps/jsr.io/@std/http/1.0.6/negotiation.d.ts.map +1 -0
  57. package/types/deps/jsr.io/@std/semver/1.0.3/_constants.d.ts +16 -0
  58. package/types/deps/jsr.io/@std/semver/1.0.3/_constants.d.ts.map +1 -0
  59. package/types/deps/jsr.io/@std/semver/1.0.3/_shared.d.ts.map +1 -0
  60. package/types/deps/jsr.io/@std/semver/1.0.3/_test_comparator_set.d.ts.map +1 -0
  61. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/can_parse.d.ts +2 -2
  62. package/types/deps/jsr.io/@std/semver/1.0.3/can_parse.d.ts.map +1 -0
  63. package/types/deps/jsr.io/@std/semver/1.0.3/compare.d.ts +28 -0
  64. package/types/deps/jsr.io/@std/semver/1.0.3/compare.d.ts.map +1 -0
  65. package/types/deps/jsr.io/@std/semver/1.0.3/difference.d.ts +27 -0
  66. package/types/deps/jsr.io/@std/semver/1.0.3/difference.d.ts.map +1 -0
  67. package/types/deps/jsr.io/@std/semver/1.0.3/equals.d.ts +24 -0
  68. package/types/deps/jsr.io/@std/semver/1.0.3/equals.d.ts.map +1 -0
  69. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format.d.ts +3 -7
  70. package/types/deps/jsr.io/@std/semver/1.0.3/format.d.ts.map +1 -0
  71. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/format_range.d.ts +3 -2
  72. package/types/deps/jsr.io/@std/semver/1.0.3/format_range.d.ts.map +1 -0
  73. package/types/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.d.ts +25 -0
  74. package/types/deps/jsr.io/@std/semver/1.0.3/greater_or_equal.d.ts.map +1 -0
  75. package/types/deps/jsr.io/@std/semver/1.0.3/greater_than.d.ts +25 -0
  76. package/types/deps/jsr.io/@std/semver/1.0.3/greater_than.d.ts.map +1 -0
  77. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/greater_than_range.d.ts +8 -7
  78. package/types/deps/jsr.io/@std/semver/1.0.3/greater_than_range.d.ts.map +1 -0
  79. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/increment.d.ts +11 -5
  80. package/types/deps/jsr.io/@std/semver/1.0.3/increment.d.ts.map +1 -0
  81. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_range.d.ts +2 -2
  82. package/types/deps/jsr.io/@std/semver/1.0.3/is_range.d.ts.map +1 -0
  83. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/is_semver.d.ts +2 -2
  84. package/types/deps/jsr.io/@std/semver/1.0.3/is_semver.d.ts.map +1 -0
  85. package/types/deps/jsr.io/@std/semver/1.0.3/less_or_equal.d.ts +25 -0
  86. package/types/deps/jsr.io/@std/semver/1.0.3/less_or_equal.d.ts.map +1 -0
  87. package/types/deps/jsr.io/@std/semver/1.0.3/less_than.d.ts +25 -0
  88. package/types/deps/jsr.io/@std/semver/1.0.3/less_than.d.ts.map +1 -0
  89. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/less_than_range.d.ts +8 -7
  90. package/types/deps/jsr.io/@std/semver/1.0.3/less_than_range.d.ts.map +1 -0
  91. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/max_satisfying.d.ts +2 -2
  92. package/types/deps/jsr.io/@std/semver/1.0.3/max_satisfying.d.ts.map +1 -0
  93. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/min_satisfying.d.ts +2 -2
  94. package/types/deps/jsr.io/@std/semver/1.0.3/min_satisfying.d.ts.map +1 -0
  95. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/mod.d.ts +25 -33
  96. package/types/deps/jsr.io/@std/semver/1.0.3/mod.d.ts.map +1 -0
  97. package/types/deps/jsr.io/@std/semver/1.0.3/not_equals.d.ts +24 -0
  98. package/types/deps/jsr.io/@std/semver/1.0.3/not_equals.d.ts.map +1 -0
  99. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse.d.ts +5 -5
  100. package/types/deps/jsr.io/@std/semver/1.0.3/parse.d.ts.map +1 -0
  101. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/parse_range.d.ts +6 -5
  102. package/types/deps/jsr.io/@std/semver/1.0.3/parse_range.d.ts.map +1 -0
  103. package/types/deps/jsr.io/@std/semver/1.0.3/range_intersects.d.ts +25 -0
  104. package/types/deps/jsr.io/@std/semver/1.0.3/range_intersects.d.ts.map +1 -0
  105. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/satisfies.d.ts +3 -3
  106. package/types/deps/jsr.io/@std/semver/1.0.3/satisfies.d.ts.map +1 -0
  107. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse.d.ts +4 -4
  108. package/types/deps/jsr.io/@std/semver/1.0.3/try_parse.d.ts.map +1 -0
  109. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/try_parse_range.d.ts +2 -2
  110. package/types/deps/jsr.io/@std/semver/1.0.3/try_parse_range.d.ts.map +1 -0
  111. package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/types.d.ts +23 -4
  112. package/types/deps/jsr.io/@std/semver/1.0.3/types.d.ts.map +1 -0
  113. package/types/nodeinfo/types.d.ts +1 -1
  114. package/types/nodeinfo/types.d.ts.map +1 -1
  115. package/esm/deps/jsr.io/@std/semver/0.224.3/_constants.js +0 -10
  116. package/esm/deps/jsr.io/@std/semver/0.224.3/compare.js +0 -35
  117. package/esm/deps/jsr.io/@std/semver/0.224.3/constants.js +0 -71
  118. package/esm/deps/jsr.io/@std/semver/0.224.3/difference.js +0 -37
  119. package/esm/deps/jsr.io/@std/semver/0.224.3/equals.js +0 -27
  120. package/esm/deps/jsr.io/@std/semver/0.224.3/format.js +0 -48
  121. package/esm/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.js +0 -25
  122. package/esm/deps/jsr.io/@std/semver/0.224.3/greater_than.js +0 -27
  123. package/esm/deps/jsr.io/@std/semver/0.224.3/less_or_equal.js +0 -25
  124. package/esm/deps/jsr.io/@std/semver/0.224.3/less_than.js +0 -25
  125. package/esm/deps/jsr.io/@std/semver/0.224.3/not_equals.js +0 -24
  126. package/esm/deps/jsr.io/@std/semver/0.224.3/parse.js +0 -50
  127. package/esm/deps/jsr.io/@std/semver/0.224.3/range_max.js +0 -77
  128. package/esm/deps/jsr.io/@std/semver/0.224.3/range_min.js +0 -68
  129. package/esm/deps/jsr.io/@std/semver/0.224.3/test_range.js +0 -28
  130. package/types/deps/jsr.io/@std/encoding/0.224.3/_validate_binary_like.d.ts.map +0 -1
  131. package/types/deps/jsr.io/@std/encoding/0.224.3/base64.d.ts.map +0 -1
  132. package/types/deps/jsr.io/@std/encoding/0.224.3/base64url.d.ts.map +0 -1
  133. package/types/deps/jsr.io/@std/encoding/0.224.3/hex.d.ts.map +0 -1
  134. package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/common.d.ts.map +0 -1
  135. package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/encoding.d.ts.map +0 -1
  136. package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/language.d.ts.map +0 -1
  137. package/types/deps/jsr.io/@std/http/0.224.5/_negotiation/media_type.d.ts.map +0 -1
  138. package/types/deps/jsr.io/@std/http/0.224.5/negotiation.d.ts.map +0 -1
  139. package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts +0 -2
  140. package/types/deps/jsr.io/@std/semver/0.224.3/_constants.d.ts.map +0 -1
  141. package/types/deps/jsr.io/@std/semver/0.224.3/_shared.d.ts.map +0 -1
  142. package/types/deps/jsr.io/@std/semver/0.224.3/_test_comparator_set.d.ts.map +0 -1
  143. package/types/deps/jsr.io/@std/semver/0.224.3/can_parse.d.ts.map +0 -1
  144. package/types/deps/jsr.io/@std/semver/0.224.3/compare.d.ts +0 -28
  145. package/types/deps/jsr.io/@std/semver/0.224.3/compare.d.ts.map +0 -1
  146. package/types/deps/jsr.io/@std/semver/0.224.3/constants.d.ts +0 -43
  147. package/types/deps/jsr.io/@std/semver/0.224.3/constants.d.ts.map +0 -1
  148. package/types/deps/jsr.io/@std/semver/0.224.3/difference.d.ts +0 -27
  149. package/types/deps/jsr.io/@std/semver/0.224.3/difference.d.ts.map +0 -1
  150. package/types/deps/jsr.io/@std/semver/0.224.3/equals.d.ts +0 -24
  151. package/types/deps/jsr.io/@std/semver/0.224.3/equals.d.ts.map +0 -1
  152. package/types/deps/jsr.io/@std/semver/0.224.3/format.d.ts.map +0 -1
  153. package/types/deps/jsr.io/@std/semver/0.224.3/format_range.d.ts.map +0 -1
  154. package/types/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.d.ts +0 -24
  155. package/types/deps/jsr.io/@std/semver/0.224.3/greater_or_equal.d.ts.map +0 -1
  156. package/types/deps/jsr.io/@std/semver/0.224.3/greater_than.d.ts +0 -24
  157. package/types/deps/jsr.io/@std/semver/0.224.3/greater_than.d.ts.map +0 -1
  158. package/types/deps/jsr.io/@std/semver/0.224.3/greater_than_range.d.ts.map +0 -1
  159. package/types/deps/jsr.io/@std/semver/0.224.3/increment.d.ts.map +0 -1
  160. package/types/deps/jsr.io/@std/semver/0.224.3/is_range.d.ts.map +0 -1
  161. package/types/deps/jsr.io/@std/semver/0.224.3/is_semver.d.ts.map +0 -1
  162. package/types/deps/jsr.io/@std/semver/0.224.3/less_or_equal.d.ts +0 -24
  163. package/types/deps/jsr.io/@std/semver/0.224.3/less_or_equal.d.ts.map +0 -1
  164. package/types/deps/jsr.io/@std/semver/0.224.3/less_than.d.ts +0 -24
  165. package/types/deps/jsr.io/@std/semver/0.224.3/less_than.d.ts.map +0 -1
  166. package/types/deps/jsr.io/@std/semver/0.224.3/less_than_range.d.ts.map +0 -1
  167. package/types/deps/jsr.io/@std/semver/0.224.3/max_satisfying.d.ts.map +0 -1
  168. package/types/deps/jsr.io/@std/semver/0.224.3/min_satisfying.d.ts.map +0 -1
  169. package/types/deps/jsr.io/@std/semver/0.224.3/mod.d.ts.map +0 -1
  170. package/types/deps/jsr.io/@std/semver/0.224.3/not_equals.d.ts +0 -23
  171. package/types/deps/jsr.io/@std/semver/0.224.3/not_equals.d.ts.map +0 -1
  172. package/types/deps/jsr.io/@std/semver/0.224.3/parse.d.ts.map +0 -1
  173. package/types/deps/jsr.io/@std/semver/0.224.3/parse_range.d.ts.map +0 -1
  174. package/types/deps/jsr.io/@std/semver/0.224.3/range_intersects.d.ts +0 -24
  175. package/types/deps/jsr.io/@std/semver/0.224.3/range_intersects.d.ts.map +0 -1
  176. package/types/deps/jsr.io/@std/semver/0.224.3/range_max.d.ts +0 -25
  177. package/types/deps/jsr.io/@std/semver/0.224.3/range_max.d.ts.map +0 -1
  178. package/types/deps/jsr.io/@std/semver/0.224.3/range_min.d.ts +0 -25
  179. package/types/deps/jsr.io/@std/semver/0.224.3/range_min.d.ts.map +0 -1
  180. package/types/deps/jsr.io/@std/semver/0.224.3/satisfies.d.ts.map +0 -1
  181. package/types/deps/jsr.io/@std/semver/0.224.3/test_range.d.ts +0 -27
  182. package/types/deps/jsr.io/@std/semver/0.224.3/test_range.d.ts.map +0 -1
  183. package/types/deps/jsr.io/@std/semver/0.224.3/try_parse.d.ts.map +0 -1
  184. package/types/deps/jsr.io/@std/semver/0.224.3/try_parse_range.d.ts.map +0 -1
  185. package/types/deps/jsr.io/@std/semver/0.224.3/types.d.ts.map +0 -1
  186. /package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/common.js +0 -0
  187. /package/esm/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/negotiation.js +0 -0
  188. /package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_test_comparator_set.js +0 -0
  189. /package/esm/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/types.js +0 -0
  190. /package/types/deps/jsr.io/@std/encoding/{0.224.3 → 1.0.5}/_validate_binary_like.d.ts +0 -0
  191. /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/encoding.d.ts +0 -0
  192. /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/language.d.ts +0 -0
  193. /package/types/deps/jsr.io/@std/http/{0.224.5 → 1.0.6}/_negotiation/media_type.d.ts +0 -0
  194. /package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_shared.d.ts +0 -0
  195. /package/types/deps/jsr.io/@std/semver/{0.224.3 → 1.0.3}/_test_comparator_set.d.ts +0 -0
@@ -1,35 +0,0 @@
1
- import { checkIdentifier, compareIdentifier, compareNumber, } from "./_shared.js";
2
- /**
3
- * Compare two semantic version objects.
4
- *
5
- * Returns `0` if `s0 === s1`, or `1` if `s0` is greater, or `-1` if `s1` is
6
- * greater.
7
- *
8
- * Sorts in ascending order if passed to `Array.sort()`,
9
- *
10
- * @example Usage
11
- * ```ts
12
- * import { parse, compare } from "@std/semver";
13
- * import { assertEquals } from "@std/assert/assert-equals";
14
- *
15
- * const s0 = parse("1.2.3");
16
- * const s1 = parse("1.2.4");
17
- *
18
- * assertEquals(compare(s0, s1), -1);
19
- * assertEquals(compare(s1, s0), 1);
20
- * assertEquals(compare(s0, s0), 0);
21
- * ```
22
- *
23
- * @param s0 The first SemVer to compare
24
- * @param s1 The second SemVer to compare
25
- * @returns `1` if `s0` is greater, `0` if equal, or `-1` if `s1` is greater
26
- */
27
- export function compare(s0, s1) {
28
- if (s0 === s1)
29
- return 0;
30
- return (compareNumber(s0.major, s1.major) ||
31
- compareNumber(s0.minor, s1.minor) ||
32
- compareNumber(s0.patch, s1.patch) ||
33
- checkIdentifier(s0.prerelease, s1.prerelease) ||
34
- compareIdentifier(s0.prerelease, s1.prerelease));
35
- }
@@ -1,71 +0,0 @@
1
- /**
2
- * MAX is a sentinel value used by some range calculations.
3
- * It is equivalent to `∞.∞.∞`.
4
- */
5
- export const MAX = {
6
- major: Number.POSITIVE_INFINITY,
7
- minor: Number.POSITIVE_INFINITY,
8
- patch: Number.POSITIVE_INFINITY,
9
- prerelease: [],
10
- build: [],
11
- };
12
- /**
13
- * The minimum valid SemVer object. Equivalent to `0.0.0`.
14
- */
15
- export const MIN = {
16
- major: 0,
17
- minor: 0,
18
- patch: 0,
19
- prerelease: [],
20
- build: [],
21
- };
22
- /**
23
- * A sentinel value used to denote an invalid SemVer object
24
- * which may be the result of impossible ranges or comparator operations.
25
- * @example
26
- * ```ts
27
- * import { equals } from "@std/semver/equals";
28
- * import { parse } from "@std/semver/parse";
29
- * import { INVALID } from "@std/semver/constants"
30
- * equals(parse("1.2.3"), INVALID);
31
- * ```
32
- */
33
- export const INVALID = {
34
- major: Number.NEGATIVE_INFINITY,
35
- minor: Number.POSITIVE_INFINITY,
36
- patch: Number.POSITIVE_INFINITY,
37
- prerelease: [],
38
- build: [],
39
- };
40
- /**
41
- * ANY is a sentinel value used by some range calculations. It is not a valid
42
- * SemVer object and should not be used directly.
43
- * @example
44
- * ```ts
45
- * import { equals } from "@std/semver/equals";
46
- * import { parse } from "@std/semver/parse";
47
- * import { ANY } from "@std/semver/constants"
48
- * equals(parse("1.2.3"), ANY); // false
49
- * ```
50
- */
51
- export const ANY = {
52
- major: Number.NaN,
53
- minor: Number.NaN,
54
- patch: Number.NaN,
55
- prerelease: [],
56
- build: [],
57
- };
58
- /**
59
- * A comparator which will span all valid semantic versions
60
- */
61
- export const ALL = {
62
- operator: undefined,
63
- ...ANY,
64
- };
65
- /**
66
- * A comparator which will not span any semantic versions
67
- */
68
- export const NONE = {
69
- operator: "<",
70
- ...MIN,
71
- };
@@ -1,37 +0,0 @@
1
- import { compareIdentifier } from "./_shared.js";
2
- /**
3
- * Returns difference between two versions by the release type,
4
- * or `undefined` if the versions are the same.
5
- *
6
- * @example Usage
7
- * ```ts
8
- * import { parse, difference } from "@std/semver";
9
- * import { assertEquals } from "@std/assert/assert-equals";
10
- *
11
- * const s0 = parse("1.2.3");
12
- * const s1 = parse("1.2.4");
13
- * const s2 = parse("1.3.0");
14
- * const s3 = parse("2.0.0");
15
- *
16
- * assertEquals(difference(s0, s1), "patch");
17
- * assertEquals(difference(s0, s2), "minor");
18
- * assertEquals(difference(s0, s3), "major");
19
- * assertEquals(difference(s0, s0), undefined);
20
- * ```
21
- *
22
- * @param s0 The first SemVer to compare
23
- * @param s1 The second SemVer to compare
24
- * @returns The release type difference or `undefined` if the versions are the same
25
- */
26
- export function difference(s0, s1) {
27
- const hasPrerelease = s0.prerelease?.length || s1.prerelease?.length;
28
- if (s0.major !== s1.major)
29
- return hasPrerelease ? "premajor" : "major";
30
- if (s0.minor !== s1.minor)
31
- return hasPrerelease ? "preminor" : "minor";
32
- if (s0.patch !== s1.patch)
33
- return hasPrerelease ? "prepatch" : "patch";
34
- if (compareIdentifier(s0.prerelease, s1.prerelease) !== 0) {
35
- return "prerelease";
36
- }
37
- }
@@ -1,27 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { compare } from "./compare.js";
4
- /**
5
- * Returns `true` if both semantic versions are logically equivalent, even if they're not the exact same version object.
6
- *
7
- * This is equal to `compare(s0, s1) === 0`.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { parse, equals } from "@std/semver";
12
- * import { assert, assertFalse } from "@std/assert";
13
- *
14
- * const s0 = parse("1.2.3");
15
- * const s1 = parse("1.2.3");
16
- *
17
- * assert(equals(s0, s1));
18
- * assertFalse(equals(s0, parse("1.2.4")));
19
- * ```
20
- *
21
- * @param s0 The first SemVer to compare
22
- * @param s1 The second SemVer to compare
23
- * @returns `true` if `s0` is equal to `s1`, `false` otherwise
24
- */
25
- export function equals(s0, s1) {
26
- return compare(s0, s1) === 0;
27
- }
@@ -1,48 +0,0 @@
1
- import { isWildcardComparator } from "./_shared.js";
2
- function formatNumber(value) {
3
- if (value === Number.POSITIVE_INFINITY) {
4
- return "∞";
5
- }
6
- else if (value === Number.NEGATIVE_INFINITY) {
7
- return "⧞";
8
- }
9
- else {
10
- return value.toFixed(0);
11
- }
12
- }
13
- /**
14
- * Format a SemVer object into a string.
15
- *
16
- * If any number is NaN then NaN will be printed.
17
- *
18
- * If any number is positive or negative infinity then '∞' or '⧞' will be printed instead.
19
- *
20
- * @example Usage
21
- * ```ts
22
- * import { format } from "@std/semver/format";
23
- * import { assertEquals } from "@std/assert/assert-equals";
24
- *
25
- * const semver = {
26
- * major: 1,
27
- * minor: 2,
28
- * patch: 3,
29
- * };
30
- * assertEquals(format(semver), "1.2.3");
31
- * ```
32
- *
33
- * @param semver The SemVer to format
34
- * @returns The string representation of a semantic version.
35
- */
36
- export function format(semver) {
37
- if (isWildcardComparator(semver)) {
38
- return "*";
39
- }
40
- const major = formatNumber(semver.major);
41
- const minor = formatNumber(semver.minor);
42
- const patch = formatNumber(semver.patch);
43
- const pre = semver.prerelease?.join(".") ?? "";
44
- const build = semver.build?.join(".") ?? "";
45
- const primary = `${major}.${minor}.${patch}`;
46
- const release = [primary, pre].filter((v) => v).join("-");
47
- return [release, build].filter((v) => v).join("+");
48
- }
@@ -1,25 +0,0 @@
1
- import { compare } from "./compare.js";
2
- /**
3
- * Greater than or equal to comparison
4
- *
5
- * This is equal to `compare(s0, s1) >= 0`.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { parse, greaterOrEqual } from "@std/semver";
10
- * import { assert, assertFalse } from "@std/assert";
11
- *
12
- * const s0 = parse("1.2.3");
13
- * const s1 = parse("1.2.4");
14
- * assert(greaterOrEqual(s1, s0));
15
- * assertFalse(greaterOrEqual(s0, s1));
16
- * assert(greaterOrEqual(s0, s0));
17
- * ```
18
- *
19
- * @param s0 The first version to compare
20
- * @param s1 The second version to compare
21
- * @returns `true` if `s0` is greater than or equal to `s1`, `false` otherwise
22
- */
23
- export function greaterOrEqual(s0, s1) {
24
- return compare(s0, s1) >= 0;
25
- }
@@ -1,27 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { compare } from "./compare.js";
4
- /**
5
- * Greater than comparison
6
- *
7
- * This is equal to `compare(s0, s1) > 0`.
8
- *
9
- * @example Usage
10
- * ```ts
11
- * import { parse, greaterThan } from "@std/semver";
12
- * import { assert, assertFalse } from "@std/assert";
13
- *
14
- * const s0 = parse("1.2.3");
15
- * const s1 = parse("1.2.4");
16
- * assert(greaterThan(s1, s0));
17
- * assertFalse(greaterThan(s0, s1));
18
- * assertFalse(greaterThan(s0, s0));
19
- * ```
20
- *
21
- * @param s0 The first version to compare
22
- * @param s1 The second version to compare
23
- * @returns `true` if `s0` is greater than `s1`, `false` otherwise
24
- */
25
- export function greaterThan(s0, s1) {
26
- return compare(s0, s1) > 0;
27
- }
@@ -1,25 +0,0 @@
1
- import { compare } from "./compare.js";
2
- /**
3
- * Less than or equal to comparison
4
- *
5
- * This is equal to `compare(s0, s1) <= 0`.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { parse, lessOrEqual } from "@std/semver";
10
- * import { assert, assertFalse } from "@std/assert";
11
- *
12
- * const s0 = parse("1.2.3");
13
- * const s1 = parse("1.2.4");
14
- * assert(lessOrEqual(s0, s1));
15
- * assertFalse(lessOrEqual(s1, s0));
16
- * assert(lessOrEqual(s0, s0));
17
- * ```
18
- *
19
- * @param s0 the first version to compare
20
- * @param s1 the second version to compare
21
- * @returns `true` if `s0` is less than or equal to `s1`, `false` otherwise
22
- */
23
- export function lessOrEqual(s0, s1) {
24
- return compare(s0, s1) <= 0;
25
- }
@@ -1,25 +0,0 @@
1
- import { compare } from "./compare.js";
2
- /**
3
- * Less than comparison
4
- *
5
- * This is equal to `compare(s0, s1) < 0`.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { parse, lessThan } from "@std/semver";
10
- * import { assert, assertFalse } from "@std/assert";
11
- *
12
- * const s0 = parse("1.2.3");
13
- * const s1 = parse("1.2.4");
14
- * assert(lessThan(s0, s1));
15
- * assertFalse(lessThan(s1, s0));
16
- * assertFalse(lessThan(s0, s0));
17
- * ```
18
- *
19
- * @param s0 the first version to compare
20
- * @param s1 the second version to compare
21
- * @returns `true` if `s0` is less than `s1`, `false` otherwise
22
- */
23
- export function lessThan(s0, s1) {
24
- return compare(s0, s1) < 0;
25
- }
@@ -1,24 +0,0 @@
1
- import { compare } from "./compare.js";
2
- /**
3
- * Not equal comparison
4
- *
5
- * This is equal to `compare(s0, s1) !== 0`.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { parse, notEquals } from "@std/semver";
10
- * import { assert, assertFalse } from "@std/assert";
11
- *
12
- * const s0 = parse("1.2.3");
13
- * const s1 = parse("1.2.4");
14
- * assert(notEquals(s0, s1));
15
- * assertFalse(notEquals(s0, s0));
16
- * ```
17
- *
18
- * @param s0 The first version to compare
19
- * @param s1 The second version to compare
20
- * @returns `true` if `s0` is not equal to `s1`, `false` otherwise
21
- */
22
- export function notEquals(s0, s1) {
23
- return compare(s0, s1) !== 0;
24
- }
@@ -1,50 +0,0 @@
1
- import { parseBuild, parseNumber, parsePrerelease } from "./_shared.js";
2
- import { FULL_REGEXP, MAX_LENGTH } from "./_shared.js";
3
- /**
4
- * Attempt to parse a string as a semantic version, returning either a `SemVer`
5
- * object or throws a TypeError.
6
- *
7
- * @example Usage
8
- * ```ts
9
- * import { parse } from "@std/semver/parse";
10
- * import { assertEquals } from "@std/assert/assert-equals";
11
- *
12
- * const version = parse("1.2.3");
13
- * assertEquals(version, {
14
- * major: 1,
15
- * minor: 2,
16
- * patch: 3,
17
- * prerelease: [],
18
- * build: [],
19
- * });
20
- * ```
21
- *
22
- * @param version The version string to parse
23
- * @returns A valid SemVer
24
- */
25
- export function parse(version) {
26
- if (typeof version !== "string") {
27
- throw new TypeError(`version must be a string`);
28
- }
29
- if (version.length > MAX_LENGTH) {
30
- throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
31
- }
32
- version = version.trim();
33
- const groups = version.match(FULL_REGEXP)?.groups;
34
- if (!groups)
35
- throw new TypeError(`Invalid Version: ${version}`);
36
- const major = parseNumber(groups.major, "Invalid major version");
37
- const minor = parseNumber(groups.minor, "Invalid minor version");
38
- const patch = parseNumber(groups.patch, "Invalid patch version");
39
- const prerelease = groups.prerelease
40
- ? parsePrerelease(groups.prerelease)
41
- : [];
42
- const build = groups.buildmetadata ? parseBuild(groups.buildmetadata) : [];
43
- return {
44
- major,
45
- minor,
46
- patch,
47
- prerelease,
48
- build,
49
- };
50
- }
@@ -1,77 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { INVALID, MAX } from "./constants.js";
4
- import { satisfies } from "./satisfies.js";
5
- import { greaterThan } from "./greater_than.js";
6
- import { isWildcardComparator } from "./_shared.js";
7
- function comparatorMax(comparator) {
8
- const semver = comparator;
9
- if (isWildcardComparator(comparator))
10
- return MAX;
11
- switch (comparator.operator) {
12
- case "!=":
13
- case ">":
14
- case ">=":
15
- return MAX;
16
- case undefined:
17
- case "=":
18
- case "<=":
19
- return {
20
- major: semver.major,
21
- minor: semver.minor,
22
- patch: semver.patch,
23
- prerelease: semver.prerelease,
24
- build: semver.build,
25
- };
26
- case "<": {
27
- const patch = semver.patch - 1;
28
- const minor = patch >= 0 ? semver.minor : semver.minor - 1;
29
- const major = minor >= 0 ? semver.major : semver.major - 1;
30
- // if you try to do <0.0.0 it will Give you -∞.∞.∞
31
- // which means no SemVer can compare successfully to it.
32
- if (major < 0)
33
- return INVALID;
34
- return {
35
- major,
36
- minor: minor >= 0 ? minor : Number.POSITIVE_INFINITY,
37
- patch: patch >= 0 ? patch : Number.POSITIVE_INFINITY,
38
- prerelease: [],
39
- build: [],
40
- };
41
- }
42
- }
43
- }
44
- /**
45
- * The maximum valid SemVer for a given range or INVALID
46
- *
47
- * @example Usage
48
- * ```ts
49
- * import { parseRange } from "@std/semver/parse-range";
50
- * import { rangeMax } from "@std/semver/range-max";
51
- * import { equals } from "@std/semver/equals";
52
- * import { assert } from "@std/assert/assert";
53
- *
54
- * assert(equals(rangeMax(parseRange(">1.0.0 <=2.0.0")), { major: 2, minor: 0, patch: 0 }));
55
- * ```
56
- *
57
- * @param range The range to calculate the max for
58
- * @returns A valid SemVer or INVALID
59
- *
60
- * @deprecated This will be removed in 1.0.0. Use {@linkcode greaterThanRange} or
61
- * {@linkcode lessThanRange} for comparing ranges and SemVers. The maximum
62
- * version of a range is often not well defined, and therefore this API
63
- * shouldn't be used. See
64
- * {@link https://github.com/denoland/deno_std/issues/4365} for details.
65
- */
66
- export function rangeMax(range) {
67
- let max;
68
- for (const comparators of range) {
69
- for (const comparator of comparators) {
70
- const candidate = comparatorMax(comparator);
71
- if (!satisfies(candidate, range))
72
- continue;
73
- max = (max && greaterThan(max, candidate)) ? max : candidate;
74
- }
75
- }
76
- return max ?? INVALID;
77
- }
@@ -1,68 +0,0 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
- // This module is browser compatible.
3
- import { INVALID, MAX, MIN } from "./constants.js";
4
- import { satisfies } from "./satisfies.js";
5
- import { lessThan } from "./less_than.js";
6
- import { greaterThan } from "./greater_than.js";
7
- import { increment } from "./increment.js";
8
- import { isWildcardComparator } from "./_shared.js";
9
- function comparatorMin(comparator) {
10
- const semver = comparator;
11
- if (isWildcardComparator(semver))
12
- return MIN;
13
- switch (comparator.operator) {
14
- case ">":
15
- return semver.prerelease && semver.prerelease.length > 0
16
- ? increment(semver, "pre")
17
- : increment(semver, "patch");
18
- case "!=":
19
- case "<=":
20
- case "<":
21
- // The min(<0.0.0) is MAX
22
- return greaterThan(semver, MIN) ? MIN : MAX;
23
- case ">=":
24
- case undefined:
25
- case "=":
26
- return {
27
- major: semver.major,
28
- minor: semver.minor,
29
- patch: semver.patch,
30
- prerelease: semver.prerelease,
31
- build: semver.build,
32
- };
33
- }
34
- }
35
- /**
36
- * The minimum valid SemVer for a given range or INVALID
37
- *
38
- * @example Usage
39
- * ```ts
40
- * import { parseRange } from "@std/semver/parse-range";
41
- * import { rangeMin } from "@std/semver/range-min";
42
- * import { equals } from "@std/semver/equals";
43
- * import { assert } from "@std/assert/assert";
44
- *
45
- * assert(equals(rangeMin(parseRange(">=1.0.0 <2.0.0")), { major: 1, minor: 0, patch: 0 }));
46
- * ```
47
- *
48
- * @param range The range to calculate the min for
49
- * @returns A valid SemVer or INVALID
50
- *
51
- * @deprecated This will be removed in 1.0.0. Use {@linkcode greaterThanRange} or
52
- * {@linkcode lessThanRange} for comparing ranges and SemVers. The minimum
53
- * version of a range is often not well defined, and therefore this API
54
- * shouldn't be used. See
55
- * {@link https://github.com/denoland/deno_std/issues/4365} for details.
56
- */
57
- export function rangeMin(range) {
58
- let min;
59
- for (const comparators of range) {
60
- for (const comparator of comparators) {
61
- const candidate = comparatorMin(comparator);
62
- if (!satisfies(candidate, range))
63
- continue;
64
- min = (min && lessThan(min, candidate)) ? min : candidate;
65
- }
66
- }
67
- return min ?? INVALID;
68
- }
@@ -1,28 +0,0 @@
1
- import { satisfies } from "./satisfies.js";
2
- /**
3
- * Test to see if the version satisfies the range.
4
- *
5
- * @example Usage
6
- * ```ts
7
- * import { parse, parseRange, testRange } from "@std/semver";
8
- * import { assert, assertFalse } 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(testRange(version, range0));
16
- * assert(testRange(version, range1));
17
- * assertFalse(testRange(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
- * @deprecated This will be removed in 1.0.0. Use {@linkcode satisfies}
24
- * instead. See https://github.com/denoland/deno_std/pull/4364.
25
- */
26
- export function testRange(version, range) {
27
- return satisfies(version, range);
28
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/base64.ts"],"names":[],"mappings":"AA+FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base64url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/base64url.ts"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GACtC,MAAM,CAER;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/hex.ts"],"names":[],"mappings":"AAwDA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAUxE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAiBjD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.5/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.5/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA4GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.5/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.5/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/0.224.5/negotiation.ts"],"names":[],"mappings":"AAcA,yCAAyC;AACzC,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE;QACP,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;KACjC,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;AACpD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CACrB,OAAO,EAAE,OAAO,EAChB,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC;AAatB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,GAAG,SAAS,EAAE,MAAM,EAAE,GACrB,MAAM,GAAG,SAAS,CAAC;AAetB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;AAC7D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const OPERATORS: readonly [undefined, "=", "!=", ">", ">=", "<", "<="];
2
- //# sourceMappingURL=_constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.3/_constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,uDAQZ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.3/_shared.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wBAAgB,aAAa,CAC3B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAGZ;AAED,wBAAgB,eAAe,CAC7B,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,EACvC,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,GACtC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAMZ;AAED,wBAAgB,iBAAiB,CAC/B,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,EACvC,EAAE,GAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAM,GACtC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAoBZ;AAgDD,eAAO,MAAM,WAAW,QAAkC,CAAC;AAgB3D;;;GAGG;AACH,eAAO,MAAM,MAAM,iSAC0H,CAAC;AAE9I;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAE7B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAO7D;AAED,eAAO,MAAM,UAAU,MAAM,CAAC;AAE9B;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAO7D;AAGD,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,uBAWjD;AAED,wBAAgB,UAAU,CAAC,aAAa,EAAE,MAAM,YAE/C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAI9D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAM3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_test_comparator_set.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.3/_test_comparator_set.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAgCrD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,UAAU,EAAE,GAChB,OAAO,CA6BT"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"can_parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.224.3/can_parse.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAUjD"}
@@ -1,28 +0,0 @@
1
- import type { SemVer } from "./types.js";
2
- /**
3
- * Compare two semantic version objects.
4
- *
5
- * Returns `0` if `s0 === s1`, or `1` if `s0` is greater, or `-1` if `s1` is
6
- * greater.
7
- *
8
- * Sorts in ascending order if passed to `Array.sort()`,
9
- *
10
- * @example Usage
11
- * ```ts
12
- * import { parse, compare } from "@std/semver";
13
- * import { assertEquals } from "@std/assert/assert-equals";
14
- *
15
- * const s0 = parse("1.2.3");
16
- * const s1 = parse("1.2.4");
17
- *
18
- * assertEquals(compare(s0, s1), -1);
19
- * assertEquals(compare(s1, s0), 1);
20
- * assertEquals(compare(s0, s0), 0);
21
- * ```
22
- *
23
- * @param s0 The first SemVer to compare
24
- * @param s1 The second SemVer to compare
25
- * @returns `1` if `s0` is greater, `0` if equal, or `-1` if `s1` is greater
26
- */
27
- export declare function compare(s0: SemVer, s1: SemVer): 1 | 0 | -1;
28
- //# sourceMappingURL=compare.d.ts.map