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

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