inray 0.0.7 → 0.0.9

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 (244) hide show
  1. package/LICENSE.md +32 -29
  2. package/README.md +522 -58
  3. package/dist/db-migrator/src/bin.js +1 -1
  4. package/dist/db-migrator/src/bin.js.map +1 -1
  5. package/dist/db-migrator/src/index.d.ts +1 -1
  6. package/dist/db-migrator/src/index.d.ts.map +1 -1
  7. package/dist/db-migrator/src/index.js +1 -1
  8. package/dist/db-migrator/src/index.js.map +1 -1
  9. package/dist/db-migrator/src/lib/clients/index.d.ts +3 -3
  10. package/dist/db-migrator/src/lib/clients/index.d.ts.map +1 -1
  11. package/dist/db-migrator/src/lib/clients/index.js +5 -4
  12. package/dist/db-migrator/src/lib/clients/index.js.map +1 -1
  13. package/dist/db-migrator/src/lib/clients/postgres.js +1 -1
  14. package/dist/db-migrator/src/lib/clients/postgres.js.map +1 -1
  15. package/dist/db-migrator/src/lib/clients/sqlite.d.ts +3 -0
  16. package/dist/db-migrator/src/lib/clients/sqlite.d.ts.map +1 -0
  17. package/dist/db-migrator/src/lib/clients/sqlite.js +55 -0
  18. package/dist/db-migrator/src/lib/clients/sqlite.js.map +1 -0
  19. package/dist/db-migrator/src/lib/migrator.sql.d.ts +4 -0
  20. package/dist/db-migrator/src/lib/migrator.sql.d.ts.map +1 -1
  21. package/dist/db-migrator/src/lib/migrator.sql.js +12 -0
  22. package/dist/db-migrator/src/lib/migrator.sql.js.map +1 -1
  23. package/dist/db-migrator/src/lib/migrator.types.d.ts +4 -2
  24. package/dist/db-migrator/src/lib/migrator.types.d.ts.map +1 -1
  25. package/dist/db-migrator/src/migrator.d.ts.map +1 -1
  26. package/dist/db-migrator/src/migrator.js +1 -0
  27. package/dist/db-migrator/src/migrator.js.map +1 -1
  28. package/dist/random/_pcg32.d.ts +61 -0
  29. package/dist/random/_pcg32.d.ts.map +1 -0
  30. package/dist/random/_pcg32.js +122 -0
  31. package/dist/random/_pcg32.js.map +1 -0
  32. package/dist/random/_platform.d.ts +12 -0
  33. package/dist/random/_platform.d.ts.map +1 -0
  34. package/dist/random/_platform.js +13 -0
  35. package/dist/random/_platform.js.map +1 -0
  36. package/dist/random/_seed_bytes_from_uint64.d.ts +15 -0
  37. package/dist/random/_seed_bytes_from_uint64.d.ts.map +1 -0
  38. package/dist/random/_seed_bytes_from_uint64.js +23 -0
  39. package/dist/random/_seed_bytes_from_uint64.js.map +1 -0
  40. package/dist/random/_test_utils.d.ts +15 -0
  41. package/dist/random/_test_utils.d.ts.map +1 -0
  42. package/dist/random/_test_utils.js +92 -0
  43. package/dist/random/_test_utils.js.map +1 -0
  44. package/dist/random/_types.d.ts +50 -0
  45. package/dist/random/_types.d.ts.map +1 -0
  46. package/dist/random/_types.js +10 -0
  47. package/dist/random/_types.js.map +1 -0
  48. package/dist/random/between.d.ts +33 -0
  49. package/dist/random/between.d.ts.map +1 -0
  50. package/dist/random/between.js +44 -0
  51. package/dist/random/between.js.map +1 -0
  52. package/dist/random/get_random_values_seeded.d.ts +31 -0
  53. package/dist/random/get_random_values_seeded.d.ts.map +1 -0
  54. package/dist/random/get_random_values_seeded.js +34 -0
  55. package/dist/random/get_random_values_seeded.js.map +1 -0
  56. package/dist/random/integer_between.d.ts +33 -0
  57. package/dist/random/integer_between.d.ts.map +1 -0
  58. package/dist/random/integer_between.js +34 -0
  59. package/dist/random/integer_between.js.map +1 -0
  60. package/dist/random/internal/_testing.d.ts +15 -0
  61. package/dist/random/internal/_testing.d.ts.map +1 -0
  62. package/dist/random/internal/_testing.js +27 -0
  63. package/dist/random/internal/_testing.js.map +1 -0
  64. package/dist/random/mod.d.ts +45 -0
  65. package/dist/random/mod.d.ts.map +1 -0
  66. package/dist/random/mod.js +46 -0
  67. package/dist/random/mod.js.map +1 -0
  68. package/dist/random/next_float_64.d.ts +38 -0
  69. package/dist/random/next_float_64.d.ts.map +1 -0
  70. package/dist/random/next_float_64.js +47 -0
  71. package/dist/random/next_float_64.js.map +1 -0
  72. package/dist/random/sample.d.ts +58 -0
  73. package/dist/random/sample.d.ts.map +1 -0
  74. package/dist/random/sample.js +69 -0
  75. package/dist/random/sample.js.map +1 -0
  76. package/dist/random/seeded.d.ts +34 -0
  77. package/dist/random/seeded.d.ts.map +1 -0
  78. package/dist/random/seeded.js +37 -0
  79. package/dist/random/seeded.js.map +1 -0
  80. package/dist/random/shuffle.d.ts +35 -0
  81. package/dist/random/shuffle.d.ts.map +1 -0
  82. package/dist/random/shuffle.js +48 -0
  83. package/dist/random/shuffle.js.map +1 -0
  84. package/dist/semver/_constants.d.ts +20 -0
  85. package/dist/semver/_constants.d.ts.map +1 -0
  86. package/dist/semver/_constants.js +28 -0
  87. package/dist/semver/_constants.js.map +1 -0
  88. package/dist/semver/_shared.d.ts +52 -0
  89. package/dist/semver/_shared.d.ts.map +1 -0
  90. package/dist/semver/_shared.js +168 -0
  91. package/dist/semver/_shared.js.map +1 -0
  92. package/dist/semver/_test_comparator_set.d.ts +11 -0
  93. package/dist/semver/_test_comparator_set.d.ts.map +1 -0
  94. package/dist/semver/_test_comparator_set.js +62 -0
  95. package/dist/semver/_test_comparator_set.js.map +1 -0
  96. package/dist/semver/can_parse.d.ts +24 -0
  97. package/dist/semver/can_parse.d.ts.map +1 -0
  98. package/dist/semver/can_parse.js +34 -0
  99. package/dist/semver/can_parse.js.map +1 -0
  100. package/dist/semver/compare.d.ts +35 -0
  101. package/dist/semver/compare.d.ts.map +1 -0
  102. package/dist/semver/compare.js +43 -0
  103. package/dist/semver/compare.js.map +1 -0
  104. package/dist/semver/difference.d.ts +34 -0
  105. package/dist/semver/difference.d.ts.map +1 -0
  106. package/dist/semver/difference.js +48 -0
  107. package/dist/semver/difference.js.map +1 -0
  108. package/dist/semver/equals.d.ts +31 -0
  109. package/dist/semver/equals.d.ts.map +1 -0
  110. package/dist/semver/equals.js +34 -0
  111. package/dist/semver/equals.js.map +1 -0
  112. package/dist/semver/format.d.ts +29 -0
  113. package/dist/semver/format.d.ts.map +1 -0
  114. package/dist/semver/format.js +40 -0
  115. package/dist/semver/format.js.map +1 -0
  116. package/dist/semver/format_range.d.ts +25 -0
  117. package/dist/semver/format_range.d.ts.map +1 -0
  118. package/dist/semver/format_range.js +33 -0
  119. package/dist/semver/format_range.js.map +1 -0
  120. package/dist/semver/greater_or_equal.d.ts +32 -0
  121. package/dist/semver/greater_or_equal.d.ts.map +1 -0
  122. package/dist/semver/greater_or_equal.js +34 -0
  123. package/dist/semver/greater_or_equal.js.map +1 -0
  124. package/dist/semver/greater_than.d.ts +32 -0
  125. package/dist/semver/greater_than.d.ts.map +1 -0
  126. package/dist/semver/greater_than.js +34 -0
  127. package/dist/semver/greater_than.js.map +1 -0
  128. package/dist/semver/greater_than_range.d.ts +30 -0
  129. package/dist/semver/greater_than_range.d.ts.map +1 -0
  130. package/dist/semver/greater_than_range.js +64 -0
  131. package/dist/semver/greater_than_range.js.map +1 -0
  132. package/dist/semver/increment.d.ts +61 -0
  133. package/dist/semver/increment.d.ts.map +1 -0
  134. package/dist/semver/increment.js +186 -0
  135. package/dist/semver/increment.js.map +1 -0
  136. package/dist/semver/is_range.d.ts +30 -0
  137. package/dist/semver/is_range.d.ts.map +1 -0
  138. package/dist/semver/is_range.js +42 -0
  139. package/dist/semver/is_range.js.map +1 -0
  140. package/dist/semver/is_semver.d.ts +41 -0
  141. package/dist/semver/is_semver.d.ts.map +1 -0
  142. package/dist/semver/is_semver.js +60 -0
  143. package/dist/semver/is_semver.js.map +1 -0
  144. package/dist/semver/less_or_equal.d.ts +32 -0
  145. package/dist/semver/less_or_equal.d.ts.map +1 -0
  146. package/dist/semver/less_or_equal.js +34 -0
  147. package/dist/semver/less_or_equal.js.map +1 -0
  148. package/dist/semver/less_than.d.ts +32 -0
  149. package/dist/semver/less_than.d.ts.map +1 -0
  150. package/dist/semver/less_than.js +34 -0
  151. package/dist/semver/less_than.js.map +1 -0
  152. package/dist/semver/less_than_range.d.ts +30 -0
  153. package/dist/semver/less_than_range.d.ts.map +1 -0
  154. package/dist/semver/less_than_range.js +64 -0
  155. package/dist/semver/less_than_range.js.map +1 -0
  156. package/dist/semver/max_satisfying.d.ts +29 -0
  157. package/dist/semver/max_satisfying.d.ts.map +1 -0
  158. package/dist/semver/max_satisfying.js +38 -0
  159. package/dist/semver/max_satisfying.js.map +1 -0
  160. package/dist/semver/min_satisfying.d.ts +29 -0
  161. package/dist/semver/min_satisfying.d.ts.map +1 -0
  162. package/dist/semver/min_satisfying.js +38 -0
  163. package/dist/semver/min_satisfying.js.map +1 -0
  164. package/dist/semver/mod.d.ts +305 -0
  165. package/dist/semver/mod.d.ts.map +1 -0
  166. package/dist/semver/mod.js +306 -0
  167. package/dist/semver/mod.js.map +1 -0
  168. package/dist/semver/not_equals.d.ts +31 -0
  169. package/dist/semver/not_equals.d.ts.map +1 -0
  170. package/dist/semver/not_equals.js +33 -0
  171. package/dist/semver/not_equals.js.map +1 -0
  172. package/dist/semver/parse.d.ts +32 -0
  173. package/dist/semver/parse.d.ts.map +1 -0
  174. package/dist/semver/parse.js +50 -0
  175. package/dist/semver/parse.js.map +1 -0
  176. package/dist/semver/parse_range.d.ts +34 -0
  177. package/dist/semver/parse_range.d.ts.map +1 -0
  178. package/dist/semver/parse_range.js +352 -0
  179. package/dist/semver/parse_range.js.map +1 -0
  180. package/dist/semver/range_intersects.d.ts +32 -0
  181. package/dist/semver/range_intersects.d.ts.map +1 -0
  182. package/dist/semver/range_intersects.js +89 -0
  183. package/dist/semver/range_intersects.js.map +1 -0
  184. package/dist/semver/satisfies.d.ts +31 -0
  185. package/dist/semver/satisfies.d.ts.map +1 -0
  186. package/dist/semver/satisfies.js +33 -0
  187. package/dist/semver/satisfies.js.map +1 -0
  188. package/dist/semver/try_parse.d.ts +28 -0
  189. package/dist/semver/try_parse.d.ts.map +1 -0
  190. package/dist/semver/try_parse.js +35 -0
  191. package/dist/semver/try_parse.js.map +1 -0
  192. package/dist/semver/try_parse_range.d.ts +31 -0
  193. package/dist/semver/try_parse_range.d.ts.map +1 -0
  194. package/dist/semver/try_parse_range.js +40 -0
  195. package/dist/semver/try_parse_range.js.map +1 -0
  196. package/dist/semver/types.d.ts +66 -0
  197. package/dist/semver/types.d.ts.map +1 -0
  198. package/dist/semver/types.js +10 -0
  199. package/dist/semver/types.js.map +1 -0
  200. package/dist/text/_util.d.ts +11 -0
  201. package/dist/text/_util.d.ts.map +1 -0
  202. package/dist/text/_util.js +21 -0
  203. package/dist/text/_util.js.map +1 -0
  204. package/dist/text/closest_string.d.ts +49 -0
  205. package/dist/text/closest_string.d.ts.map +1 -0
  206. package/dist/text/closest_string.js +51 -0
  207. package/dist/text/closest_string.js.map +1 -0
  208. package/dist/text/compare_similarity.d.ts +54 -0
  209. package/dist/text/compare_similarity.d.ts.map +1 -0
  210. package/dist/text/compare_similarity.js +45 -0
  211. package/dist/text/compare_similarity.js.map +1 -0
  212. package/dist/text/levenshtein_distance.d.ts +30 -0
  213. package/dist/text/levenshtein_distance.d.ts.map +1 -0
  214. package/dist/text/levenshtein_distance.js +134 -0
  215. package/dist/text/levenshtein_distance.js.map +1 -0
  216. package/dist/text/mod.d.ts +34 -0
  217. package/dist/text/mod.d.ts.map +1 -0
  218. package/dist/text/mod.js +35 -0
  219. package/dist/text/mod.js.map +1 -0
  220. package/dist/text/to_camel_case.d.ts +23 -0
  221. package/dist/text/to_camel_case.d.ts.map +1 -0
  222. package/dist/text/to_camel_case.js +29 -0
  223. package/dist/text/to_camel_case.js.map +1 -0
  224. package/dist/text/to_kebab_case.d.ts +23 -0
  225. package/dist/text/to_kebab_case.d.ts.map +1 -0
  226. package/dist/text/to_kebab_case.js +28 -0
  227. package/dist/text/to_kebab_case.js.map +1 -0
  228. package/dist/text/to_pascal_case.d.ts +23 -0
  229. package/dist/text/to_pascal_case.d.ts.map +1 -0
  230. package/dist/text/to_pascal_case.js +28 -0
  231. package/dist/text/to_pascal_case.js.map +1 -0
  232. package/dist/text/to_snake_case.d.ts +23 -0
  233. package/dist/text/to_snake_case.d.ts.map +1 -0
  234. package/dist/text/to_snake_case.js +28 -0
  235. package/dist/text/to_snake_case.js.map +1 -0
  236. package/dist/text/truncate.d.ts +81 -0
  237. package/dist/text/truncate.d.ts.map +1 -0
  238. package/dist/text/truncate.js +116 -0
  239. package/dist/text/truncate.js.map +1 -0
  240. package/dist/text/word_similarity_sort.d.ts +46 -0
  241. package/dist/text/word_similarity_sort.d.ts.map +1 -0
  242. package/dist/text/word_similarity_sort.js +47 -0
  243. package/dist/text/word_similarity_sort.js.map +1 -0
  244. package/package.json +27 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"less_or_equal.js","sourceRoot":"","sources":["../../src/semver/less_or_equal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAIL,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,WAAW,CAAC,QAAgB,EAAE,QAAgB;IAC5D,OAAO,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import type { SemVer } from './types.ts';
10
+ /**
11
+ * Less than comparison for two SemVers.
12
+ *
13
+ * This is equal to `compare(version1, version2) < 0`.
14
+ *
15
+ * @example Usage
16
+ * ```ts
17
+ * import { parse, lessThan } from "inray/semver";
18
+ *
19
+ * const version1 = parse("1.2.3");
20
+ * const version2 = parse("1.2.4");
21
+ *
22
+ * lessThan(version1, version2); // true
23
+ * lessThan(version2, version1); // false
24
+ * lessThan(version1, version1); // false
25
+ * ```
26
+ *
27
+ * @param version1 the first version to compare
28
+ * @param version2 the second version to compare
29
+ * @returns `true` if `version1` is less than `version2`, `false` otherwise
30
+ */
31
+ export declare function lessThan(version1: SemVer, version2: SemVer): boolean;
32
+ //# sourceMappingURL=less_than.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"less_than.d.ts","sourceRoot":"","sources":["../../src/semver/less_than.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAGL,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpE"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import { compare } from "./compare.js";
10
+ /**
11
+ * Less than comparison for two SemVers.
12
+ *
13
+ * This is equal to `compare(version1, version2) < 0`.
14
+ *
15
+ * @example Usage
16
+ * ```ts
17
+ * import { parse, lessThan } from "inray/semver";
18
+ *
19
+ * const version1 = parse("1.2.3");
20
+ * const version2 = parse("1.2.4");
21
+ *
22
+ * lessThan(version1, version2); // true
23
+ * lessThan(version2, version1); // false
24
+ * lessThan(version1, version1); // false
25
+ * ```
26
+ *
27
+ * @param version1 the first version to compare
28
+ * @param version2 the second version to compare
29
+ * @returns `true` if `version1` is less than `version2`, `false` otherwise
30
+ */
31
+ export function lessThan(version1, version2) {
32
+ return compare(version1, version2) < 0;
33
+ }
34
+ //# sourceMappingURL=less_than.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"less_than.js","sourceRoot":"","sources":["../../src/semver/less_than.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAIL,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,QAAQ,CAAC,QAAgB,EAAE,QAAgB;IACzD,OAAO,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import type { Range, SemVer } from './types.ts';
10
+ /**
11
+ * Check if the SemVer is less than the range.
12
+ *
13
+ * @example Usage
14
+ * ```ts
15
+ * import { parse, parseRange, lessThanRange } from "inray/semver";
16
+ *
17
+ * const version1 = parse("1.2.3");
18
+ * const version2 = parse("1.0.0");
19
+ * const range = parseRange(">=1.2.3 <1.2.4");
20
+ *
21
+ * lessThanRange(version1, range); // false
22
+ * lessThanRange(version2, range); // true
23
+ * ```
24
+ *
25
+ * @param version The version to check.
26
+ * @param range The range to check against.
27
+ * @returns `true` if the SemVer is less than the range, `false` otherwise.
28
+ */
29
+ export declare function lessThanRange(version: SemVer, range: Range): boolean;
30
+ //# sourceMappingURL=less_than_range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"less_than_range.d.ts","sourceRoot":"","sources":["../../src/semver/less_than_range.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAIL,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAK5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAEpE"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import { testComparatorSet } from "./_test_comparator_set.js";
10
+ import { isWildcardComparator } from "./_shared.js";
11
+ import { compare } from "./compare.js";
12
+ /**
13
+ * Check if the SemVer is less than the range.
14
+ *
15
+ * @example Usage
16
+ * ```ts
17
+ * import { parse, parseRange, lessThanRange } from "inray/semver";
18
+ *
19
+ * const version1 = parse("1.2.3");
20
+ * const version2 = parse("1.0.0");
21
+ * const range = parseRange(">=1.2.3 <1.2.4");
22
+ *
23
+ * lessThanRange(version1, range); // false
24
+ * lessThanRange(version2, range); // true
25
+ * ```
26
+ *
27
+ * @param version The version to check.
28
+ * @param range The range to check against.
29
+ * @returns `true` if the SemVer is less than the range, `false` otherwise.
30
+ */
31
+ export function lessThanRange(version, range) {
32
+ return range.every((comparatorSet) => lessThanComparatorSet(version, comparatorSet));
33
+ }
34
+ function lessThanComparatorSet(version, comparatorSet) {
35
+ // If the comparator set contains wildcard, then the semver is not greater than the range.
36
+ if (comparatorSet.some(isWildcardComparator))
37
+ return false;
38
+ // If the SemVer satisfies the comparator set, then it's not less than the range.
39
+ if (testComparatorSet(version, comparatorSet))
40
+ return false;
41
+ // If the SemVer is greater than any of the comparator set, then it's not less than the range.
42
+ if (comparatorSet.some((comparator) => greaterThanComparator(version, comparator)))
43
+ return false;
44
+ return true;
45
+ }
46
+ function greaterThanComparator(version, comparator) {
47
+ const cmp = compare(version, comparator);
48
+ switch (comparator.operator) {
49
+ case '=':
50
+ case undefined:
51
+ return cmp > 0;
52
+ case '!=':
53
+ return cmp <= 0;
54
+ case '>':
55
+ return false;
56
+ case '<':
57
+ return cmp >= 0;
58
+ case '>=':
59
+ return false;
60
+ case '<=':
61
+ return cmp > 0;
62
+ }
63
+ }
64
+ //# sourceMappingURL=less_than_range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"less_than_range.js","sourceRoot":"","sources":["../../src/semver/less_than_range.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAKL,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,KAAY;IACzD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;AACvF,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAe,EAAE,aAA2B;IACzE,0FAA0F;IAC1F,IAAI,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3D,iFAAiF;IACjF,IAAI,iBAAiB,CAAC,OAAO,EAAE,aAAa,CAAC;QAAE,OAAO,KAAK,CAAC;IAC5D,8FAA8F;IAC9F,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACjG,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAe,EAAE,UAAsB;IACpE,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACzC,QAAQ,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC5B,KAAK,GAAG,CAAC;QACT,KAAK,SAAS;YACZ,OAAO,GAAG,GAAG,CAAC,CAAC;QACjB,KAAK,IAAI;YACP,OAAO,GAAG,IAAI,CAAC,CAAC;QAClB,KAAK,GAAG;YACN,OAAO,KAAK,CAAC;QACf,KAAK,GAAG;YACN,OAAO,GAAG,IAAI,CAAC,CAAC;QAClB,KAAK,IAAI;YACP,OAAO,KAAK,CAAC;QACf,KAAK,IAAI;YACP,OAAO,GAAG,GAAG,CAAC,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import type { Range, SemVer } from './types.ts';
10
+ /**
11
+ * Returns the highest SemVer in the list that satisfies the range, or `undefined`
12
+ * if none of them do.
13
+ *
14
+ * @example Usage
15
+ * ```ts
16
+ * import { parse, parseRange, maxSatisfying } from "inray/semver";
17
+ *
18
+ * const versions = ["1.2.3", "1.2.4", "1.3.0", "2.0.0", "2.1.0"].map(parse);
19
+ * const range = parseRange(">=1.0.0 <2.0.0");
20
+ *
21
+ * maxSatisfying(versions, range); // SemVer object equal to < parse("1.3.0") >
22
+ * ```
23
+ *
24
+ * @param versions The versions to check.
25
+ * @param range The range of possible versions to compare to.
26
+ * @returns The highest version in versions that satisfies the range.
27
+ */
28
+ export declare function maxSatisfying(versions: SemVer[], range: Range): SemVer | undefined;
29
+ //# sourceMappingURL=max_satisfying.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max_satisfying.d.ts","sourceRoot":"","sources":["../../src/semver/max_satisfying.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAGL,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAOlF"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import { satisfies } from "./satisfies.js";
10
+ import { greaterThan } from "./greater_than.js";
11
+ /**
12
+ * Returns the highest SemVer in the list that satisfies the range, or `undefined`
13
+ * if none of them do.
14
+ *
15
+ * @example Usage
16
+ * ```ts
17
+ * import { parse, parseRange, maxSatisfying } from "inray/semver";
18
+ *
19
+ * const versions = ["1.2.3", "1.2.4", "1.3.0", "2.0.0", "2.1.0"].map(parse);
20
+ * const range = parseRange(">=1.0.0 <2.0.0");
21
+ *
22
+ * maxSatisfying(versions, range); // SemVer object equal to < parse("1.3.0") >
23
+ * ```
24
+ *
25
+ * @param versions The versions to check.
26
+ * @param range The range of possible versions to compare to.
27
+ * @returns The highest version in versions that satisfies the range.
28
+ */
29
+ export function maxSatisfying(versions, range) {
30
+ let max;
31
+ for (const version of versions) {
32
+ if (!satisfies(version, range))
33
+ continue;
34
+ max = max && greaterThan(max, version) ? max : version;
35
+ }
36
+ return max;
37
+ }
38
+ //# sourceMappingURL=max_satisfying.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max_satisfying.js","sourceRoot":"","sources":["../../src/semver/max_satisfying.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAIL,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,aAAa,CAAC,QAAkB,EAAE,KAAY;IAC5D,IAAI,GAAG,CAAC;IACR,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC;YAAE,SAAS;QACzC,GAAG,GAAG,GAAG,IAAI,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IACzD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import type { Range, SemVer } from './types.ts';
10
+ /**
11
+ * Returns the lowest SemVer in the list that satisfies the range, or `undefined` if
12
+ * none of them do.
13
+ *
14
+ * @example Usage
15
+ * ```ts
16
+ * import { parse, parseRange, minSatisfying } from "inray/semver";
17
+ *
18
+ * const versions = ["0.2.0", "1.2.3", "1.3.0", "2.0.0", "2.1.0"].map(parse);
19
+ * const range = parseRange(">=1.0.0 <2.0.0");
20
+ *
21
+ * minSatisfying(versions, range); // SemVer object equal to < parse("1.2.3") >
22
+ * ```
23
+ *
24
+ * @param versions The versions to check.
25
+ * @param range The range of possible versions to compare to.
26
+ * @returns The lowest version in versions that satisfies the range.
27
+ */
28
+ export declare function minSatisfying(versions: SemVer[], range: Range): SemVer | undefined;
29
+ //# sourceMappingURL=min_satisfying.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"min_satisfying.d.ts","sourceRoot":"","sources":["../../src/semver/min_satisfying.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAGL,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAOlF"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
4
+ *
5
+ * Modified and integrated in "Inray":
6
+ * - Evgeniy Bushin
7
+ */
8
+ /***/
9
+ import { satisfies } from "./satisfies.js";
10
+ import { lessThan } from "./less_than.js";
11
+ /**
12
+ * Returns the lowest SemVer in the list that satisfies the range, or `undefined` if
13
+ * none of them do.
14
+ *
15
+ * @example Usage
16
+ * ```ts
17
+ * import { parse, parseRange, minSatisfying } from "inray/semver";
18
+ *
19
+ * const versions = ["0.2.0", "1.2.3", "1.3.0", "2.0.0", "2.1.0"].map(parse);
20
+ * const range = parseRange(">=1.0.0 <2.0.0");
21
+ *
22
+ * minSatisfying(versions, range); // SemVer object equal to < parse("1.2.3") >
23
+ * ```
24
+ *
25
+ * @param versions The versions to check.
26
+ * @param range The range of possible versions to compare to.
27
+ * @returns The lowest version in versions that satisfies the range.
28
+ */
29
+ export function minSatisfying(versions, range) {
30
+ let min;
31
+ for (const version of versions) {
32
+ if (!satisfies(version, range))
33
+ continue;
34
+ min = min && lessThan(min, version) ? min : version;
35
+ }
36
+ return min;
37
+ }
38
+ //# sourceMappingURL=min_satisfying.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"min_satisfying.js","sourceRoot":"","sources":["../../src/semver/min_satisfying.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,KAAK;AAIL,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,aAAa,CAAC,QAAkB,EAAE,KAAY;IAC5D,IAAI,GAAG,CAAC;IACR,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC;YAAE,SAAS;QACzC,GAAG,GAAG,GAAG,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IACtD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,305 @@
1
+ /**
2
+ * Original library: denoland/@std
3
+ * - Copyright Isaac Z. Schlueter and Contributors. ISC license.
4
+ * - Copyright (c) 2018-2026 the Deno authors. MIT license.
5
+ *
6
+ * Modified and integrated in "Inray":
7
+ * - Evgeniy Bushin
8
+ */
9
+ /***/
10
+ /**
11
+ * The Semantic Version parser.
12
+ *
13
+ * Adapted directly from {@link https://github.com/npm/node-semver | semver}.
14
+ *
15
+ * ```ts
16
+ * import {
17
+ * parse,
18
+ * parseRange,
19
+ * greaterThan,
20
+ * lessThan,
21
+ * format
22
+ * } from "inray/semver";
23
+ *
24
+ * const semver = parse("1.2.3");
25
+ * // {
26
+ * // major: 1,
27
+ * // minor: 2,
28
+ * // patch: 3,
29
+ * // prerelease: [],
30
+ * // build: []
31
+ * // }
32
+ *
33
+ * format(semver); // "1.2.3"
34
+ *
35
+ * const range = parseRange("1.x || >=2.5.0 || 5.0.0 - 7.2.3");
36
+ *
37
+ * const s0 = parse("1.2.3");
38
+ * const s1 = parse("9.8.7");
39
+ *
40
+ * greaterThan(s0, s1); // false
41
+ * lessThan(s0, s1); // true
42
+ * ```
43
+ *
44
+ * ## Versions
45
+ *
46
+ * A "version" is described by the `v2.0.0` specification found at
47
+ * <https://semver.org>.
48
+ *
49
+ * A leading `"="` or `"v"` character is stripped off and ignored.
50
+ *
51
+ * ## Format
52
+ *
53
+ * Semantic versions can be formatted as strings, by default they
54
+ * are formatted as `full`. Below is a diagram showing the various
55
+ * formatting options.
56
+ *
57
+ * ```
58
+ * full
59
+ * ┌───┴───┐
60
+ * release │
61
+ * ┌───┴───┐ │
62
+ * primary │ │
63
+ * ┌─┴─┐ │ │
64
+ * 1.2.3-pre.1+b.1
65
+ * │ │ │ └─┬─┘ └┬┘
66
+ * │ │ │ │ └── build
67
+ * │ │ │ └─────── pre
68
+ * │ │ └─────────── patch
69
+ * │ └───────────── minor
70
+ * └─────────────── major
71
+ * ```
72
+ *
73
+ * ## Ranges
74
+ *
75
+ * A version {@linkcode Range} is a set of {@linkcode Comparator}s which specify
76
+ * versions that satisfy the range.
77
+ *
78
+ * A {@linkcode Comparator} is composed of an {@linkcode Operator} and a
79
+ * {@link SemVer}. The set of primitive `operators` is:
80
+ *
81
+ * - `<` Less than
82
+ * - `<=` Less than or equal to
83
+ * - `>` Greater than
84
+ * - `>=` Greater than or equal to
85
+ * - `=` Equal. If no operator is specified, then equality is assumed, so this
86
+ * operator is optional, but MAY be included.
87
+ *
88
+ * For example, the comparator `>=1.2.7` would match the versions `1.2.7`, `1.2.8`,
89
+ * `2.5.3`, and `1.3.9`, but not the versions `1.2.6` or `1.1.0`.
90
+ *
91
+ * Comparators can be joined by whitespace to form a `comparator set`, which is
92
+ * satisfied by the **intersection** of all of the comparators it includes.
93
+ *
94
+ * A range is composed of one or more comparator sets, joined by `||`. A version
95
+ * matches a range if and only if every comparator in at least one of the
96
+ * `||`-separated comparator sets is satisfied by the version.
97
+ *
98
+ * For example, the range `>=1.2.7 <1.3.0` would match the versions `1.2.7`,
99
+ * `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, or `1.1.0`.
100
+ *
101
+ * The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, `1.2.9`,
102
+ * and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
103
+ *
104
+ * ### Prerelease Tags
105
+ *
106
+ * If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then it will
107
+ * only be allowed to satisfy comparator sets if at least one comparator with the
108
+ * same `[major, minor, patch]` tuple also has a prerelease tag.
109
+ *
110
+ * For example, the range `>1.2.3-alpha.3` would be allowed to match the version
111
+ * `1.2.3-alpha.7`, but it would _not_ be satisfied by `3.4.5-alpha.9`, even though
112
+ * `3.4.5-alpha.9` is technically "greater than" `1.2.3-alpha.3` according to the
113
+ * SemVer sort rules. The version range only accepts prerelease tags on the `1.2.3`
114
+ * version. The version `3.4.5` _would_ satisfy the range, because it does not have
115
+ * a prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
116
+ *
117
+ * The purpose for this behavior is twofold. First, prerelease versions frequently
118
+ * are updated very quickly, and contain many breaking changes that are (by the
119
+ * author"s design) not yet fit for public consumption. Therefore, by default, they
120
+ * are excluded from range matching semantics.
121
+ *
122
+ * Second, a user who has opted into using a prerelease version has clearly
123
+ * indicated the intent to use _that specific_ set of alpha/beta/rc versions. By
124
+ * including a prerelease tag in the range, the user is indicating that they are
125
+ * aware of the risk. However, it is still not appropriate to assume that they have
126
+ * opted into taking a similar risk on the _next_ set of prerelease versions.
127
+ *
128
+ * #### Prerelease Identifiers
129
+ *
130
+ * The method {@linkcode increment} takes an additional `identifier` string
131
+ * argument that will append the value of the string as a prerelease identifier:
132
+ *
133
+ * ```ts
134
+ * import { increment, parse } from "inray/semver";
135
+ *
136
+ * increment(parse("1.2.3"), "prerelease", { prerelease: "alpha" }); // equal to parse("1.2.4-alpha.0")
137
+ * ```
138
+ *
139
+ * ### Build Metadata
140
+ *
141
+ * Build metadata is `.` delimited alpha-numeric string.
142
+ * When parsing a version it is retained on the `build: string[]` field
143
+ * of the SemVer instance. When incrementing there is an additional parameter that
144
+ * can set the build metadata on the SemVer instance.
145
+ *
146
+ * ### Advanced Range Syntax
147
+ *
148
+ * Advanced range syntax desugars to primitive comparators in deterministic ways.
149
+ *
150
+ * Advanced ranges may be combined in the same way as primitive comparators using
151
+ * white space or `||`.
152
+ *
153
+ * #### Hyphen Ranges `X.Y.Z - A.B.C`
154
+ *
155
+ * Specifies an inclusive set.
156
+ *
157
+ * - `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
158
+ *
159
+ * If a partial version is provided as the first version in the inclusive range,
160
+ * then the missing pieces are replaced with zeroes.
161
+ *
162
+ * - `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
163
+ *
164
+ * If a partial version is provided as the second version in the inclusive range,
165
+ * then all versions that start with the supplied parts of the tuple are accepted,
166
+ * but nothing that would be greater than the provided tuple parts.
167
+ *
168
+ * - `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
169
+ * - `1.2.3 - 2` := `>=1.2.3 <3.0.0`
170
+ *
171
+ * #### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
172
+ *
173
+ * Any of `X`, `x`, or `*` may be used to "stand in" for one of the numeric values
174
+ * in the `[major, minor, patch]` tuple.
175
+ *
176
+ * - `*` := `>=0.0.0` (Any version satisfies)
177
+ * - `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
178
+ * - `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
179
+ *
180
+ * A partial version range is treated as an X-Range, so the special character is in
181
+ * fact optional.
182
+ *
183
+ * - `""` (empty string) := `*` := `>=0.0.0`
184
+ * - `1` := `1.x.x` := `>=1.0.0 <2.0.0`
185
+ * - `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
186
+ *
187
+ * #### Tilde Ranges `~1.2.3` `~1.2` `~1`
188
+ *
189
+ * Allows patch-level changes if a minor version is specified on the comparator.
190
+ * Allows minor-level changes if not.
191
+ *
192
+ * - `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
193
+ * - `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
194
+ * - `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
195
+ * - `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
196
+ * - `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
197
+ * - `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
198
+ * - `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in the
199
+ * `1.2.3` version will be allowed, if they are greater than or equal to
200
+ * `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
201
+ * because it is a prerelease of a different `[major, minor, patch]` tuple.
202
+ *
203
+ * #### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
204
+ *
205
+ * Allows changes that do not modify the left-most non-zero element in the
206
+ * `[major, minor, patch]` tuple. In other words, this allows patch and minor
207
+ * updates for versions `1.0.0` and above, patch updates for versions
208
+ * `0.X >=0.1.0`, and _no_ updates for versions `0.0.X`.
209
+ *
210
+ * Many authors treat a `0.x` version as if the `x` were the major
211
+ * "breaking-change" indicator.
212
+ *
213
+ * Caret ranges are ideal when an author may make breaking changes between `0.2.4`
214
+ * and `0.3.0` releases, which is a common practice. However, it presumes that
215
+ * there will _not_ be breaking changes between `0.2.4` and `0.2.5`. It allows for
216
+ * changes that are presumed to be additive (but non-breaking), according to
217
+ * commonly observed practices.
218
+ *
219
+ * - `^1.2.3` := `>=1.2.3 <2.0.0`
220
+ * - `^0.2.3` := `>=0.2.3 <0.3.0`
221
+ * - `^0.0.3` := `>=0.0.3 <0.0.4`
222
+ * - `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in the
223
+ * `1.2.3` version will be allowed, if they are greater than or equal to
224
+ * `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
225
+ * because it is a prerelease of a different `[major, minor, patch]` tuple.
226
+ * - `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the `0.0.3`
227
+ * version _only_ will be allowed, if they are greater than or equal to `beta`.
228
+ * So, `0.0.3-pr.2` would be allowed.
229
+ *
230
+ * When parsing caret ranges, a missing `patch` value desugars to the number `0`,
231
+ * but will allow flexibility within that value, even if the major and minor
232
+ * versions are both `0`.
233
+ *
234
+ * - `^1.2.x` := `>=1.2.0 <2.0.0`
235
+ * - `^0.0.x` := `>=0.0.0 <0.1.0`
236
+ * - `^0.0` := `>=0.0.0 <0.1.0`
237
+ *
238
+ * A missing `minor` and `patch` values will desugar to zero, but also allow
239
+ * flexibility within those values, even if the major version is zero.
240
+ *
241
+ * - `^1.x` := `>=1.0.0 <2.0.0`
242
+ * - `^0.x` := `>=0.0.0 <1.0.0`
243
+ *
244
+ * ### Range Grammar
245
+ *
246
+ * Putting all this together, here is a Backus-Naur grammar for ranges, for the
247
+ * benefit of parser authors:
248
+ *
249
+ * ```bnf
250
+ * range-set ::= range ( logical-or range ) *
251
+ * logical-or ::= ( " " ) * "||" ( " " ) *
252
+ * range ::= hyphen | simple ( " " simple ) * | ""
253
+ * hyphen ::= partial " - " partial
254
+ * simple ::= primitive | partial | tilde | caret
255
+ * primitive ::= ( "<" | ">" | ">=" | "<=" | "=" ) partial
256
+ * partial ::= xr ( "." xr ( "." xr qualifier ? )? )?
257
+ * xr ::= "x" | "X" | "*" | nr
258
+ * nr ::= "0" | ["1"-"9"] ( ["0"-"9"] ) *
259
+ * tilde ::= "~" partial
260
+ * caret ::= "^" partial
261
+ * qualifier ::= ( "-" pre )? ( "+" build )?
262
+ * pre ::= parts
263
+ * build ::= parts
264
+ * parts ::= part ( "." part ) *
265
+ * part ::= nr | [-0-9A-Za-z]+
266
+ * ```
267
+ *
268
+ * Note that, since ranges may be non-contiguous, a version might not be greater
269
+ * than a range, less than a range, _or_ satisfy a range! For example, the range
270
+ * `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` until `2.0.0`, so the
271
+ * version `1.2.10` would not be greater than the range (because `2.0.1` satisfies,
272
+ * which is higher), nor less than the range (since `1.2.8` satisfies, which is
273
+ * lower), and it also does not satisfy the range.
274
+ *
275
+ * If you want to know if a version satisfies or does not satisfy a range, use the
276
+ * {@linkcode satisfies} function.
277
+ *
278
+ * @module
279
+ */
280
+ export * from './compare.ts';
281
+ export * from './difference.ts';
282
+ export * from './format.ts';
283
+ export * from './satisfies.ts';
284
+ export * from './increment.ts';
285
+ export * from './is_semver.ts';
286
+ export * from './max_satisfying.ts';
287
+ export * from './min_satisfying.ts';
288
+ export * from './parse_range.ts';
289
+ export * from './parse.ts';
290
+ export * from './range_intersects.ts';
291
+ export * from './types.ts';
292
+ export * from './try_parse_range.ts';
293
+ export * from './is_range.ts';
294
+ export * from './can_parse.ts';
295
+ export * from './try_parse.ts';
296
+ export * from './format_range.ts';
297
+ export * from './equals.ts';
298
+ export * from './not_equals.ts';
299
+ export * from './greater_than.ts';
300
+ export * from './greater_than_range.ts';
301
+ export * from './greater_or_equal.ts';
302
+ export * from './less_than.ts';
303
+ export * from './less_than_range.ts';
304
+ export * from './less_or_equal.ts';
305
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/semver/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,KAAK;AAIL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6QG;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"}