@fedify/fedify 0.5.0-dev.88

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.

Potentially problematic release.


This version of @fedify/fedify might be problematic. Click here for more details.

Files changed (496) hide show
  1. package/CHANGES.md +239 -0
  2. package/LICENSE +661 -0
  3. package/README.md +96 -0
  4. package/esm/_dnt.shims.d.ts +11 -0
  5. package/esm/_dnt.shims.d.ts.map +1 -0
  6. package/esm/_dnt.shims.js +67 -0
  7. package/esm/_dnt.test_polyfills.d.ts.map +1 -0
  8. package/esm/_dnt.test_shims.d.ts.map +1 -0
  9. package/esm/codegen/fs.d.ts.map +1 -0
  10. package/esm/codegen/schema.d.ts.map +1 -0
  11. package/esm/codegen/schema.yaml +194 -0
  12. package/esm/codegen/type.d.ts.map +1 -0
  13. package/esm/deps/crux.land/api/get/2KNRVU.d.ts.map +1 -0
  14. package/esm/deps/deno.land/x/mock_fetch@0.3.0/mod.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@david/which-runtime/0.2.0/mod.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/mod.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/collections.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/concat.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/drop.d.ts.map +1 -0
  20. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/filter.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/fold.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/infinite.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/map.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/mod.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/range.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/take.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/tee.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/testing.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@hongminhee/aitertools/0.6.0/src/unique.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/assert/0.220.1/_constants.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/assert/0.220.1/_diff.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/assert/0.220.1/_format.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@std/assert/0.220.1/assert.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_almost_equals.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_array_includes.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_equals.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_exists.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_false.d.ts.map +1 -0
  39. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_greater.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_greater_or_equal.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_instance_of.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_is_error.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_less.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_less_or_equal.d.ts.map +1 -0
  45. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_match.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_not_equals.d.ts.map +1 -0
  47. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_not_instance_of.d.ts.map +1 -0
  48. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_not_match.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_not_strict_equals.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_object_match.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_rejects.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_strict_equals.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_string_includes.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@std/assert/0.220.1/assert_throws.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/assert/0.220.1/assertion_error.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@std/assert/0.220.1/equal.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@std/assert/0.220.1/fail.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/assert/0.220.1/mod.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@std/assert/0.220.1/unimplemented.d.ts.map +1 -0
  60. package/esm/deps/jsr.io/@std/assert/0.220.1/unreachable.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/bytes/0.220.1/concat.d.ts +14 -0
  62. package/esm/deps/jsr.io/@std/bytes/0.220.1/concat.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@std/bytes/0.220.1/concat.js +27 -0
  64. package/esm/deps/jsr.io/@std/bytes/0.220.1/copy.d.ts +28 -0
  65. package/esm/deps/jsr.io/@std/bytes/0.220.1/copy.d.ts.map +1 -0
  66. package/esm/deps/jsr.io/@std/bytes/0.220.1/copy.js +37 -0
  67. package/esm/deps/jsr.io/@std/bytes/0.220.1/ends_with.d.ts +14 -0
  68. package/esm/deps/jsr.io/@std/bytes/0.220.1/ends_with.d.ts.map +1 -0
  69. package/esm/deps/jsr.io/@std/bytes/0.220.1/ends_with.js +23 -0
  70. package/esm/deps/jsr.io/@std/bytes/0.220.1/equals.d.ts +6 -0
  71. package/esm/deps/jsr.io/@std/bytes/0.220.1/equals.d.ts.map +1 -0
  72. package/esm/deps/jsr.io/@std/bytes/0.220.1/equals.js +44 -0
  73. package/esm/deps/jsr.io/@std/bytes/0.220.1/includes_needle.d.ts +17 -0
  74. package/esm/deps/jsr.io/@std/bytes/0.220.1/includes_needle.d.ts.map +1 -0
  75. package/esm/deps/jsr.io/@std/bytes/0.220.1/includes_needle.js +21 -0
  76. package/esm/deps/jsr.io/@std/bytes/0.220.1/index_of_needle.d.ts +18 -0
  77. package/esm/deps/jsr.io/@std/bytes/0.220.1/index_of_needle.d.ts.map +1 -0
  78. package/esm/deps/jsr.io/@std/bytes/0.220.1/index_of_needle.js +45 -0
  79. package/esm/deps/jsr.io/@std/bytes/0.220.1/last_index_of_needle.d.ts +18 -0
  80. package/esm/deps/jsr.io/@std/bytes/0.220.1/last_index_of_needle.d.ts.map +1 -0
  81. package/esm/deps/jsr.io/@std/bytes/0.220.1/last_index_of_needle.js +45 -0
  82. package/esm/deps/jsr.io/@std/bytes/0.220.1/mod.d.ts +24 -0
  83. package/esm/deps/jsr.io/@std/bytes/0.220.1/mod.d.ts.map +1 -0
  84. package/esm/deps/jsr.io/@std/bytes/0.220.1/mod.js +25 -0
  85. package/esm/deps/jsr.io/@std/bytes/0.220.1/repeat.d.ts +15 -0
  86. package/esm/deps/jsr.io/@std/bytes/0.220.1/repeat.d.ts.map +1 -0
  87. package/esm/deps/jsr.io/@std/bytes/0.220.1/repeat.js +33 -0
  88. package/esm/deps/jsr.io/@std/bytes/0.220.1/starts_with.d.ts +14 -0
  89. package/esm/deps/jsr.io/@std/bytes/0.220.1/starts_with.d.ts.map +1 -0
  90. package/esm/deps/jsr.io/@std/bytes/0.220.1/starts_with.js +21 -0
  91. package/esm/deps/jsr.io/@std/encoding/0.220.1/_util.d.ts +2 -0
  92. package/esm/deps/jsr.io/@std/encoding/0.220.1/_util.d.ts.map +1 -0
  93. package/esm/deps/jsr.io/@std/encoding/0.220.1/_util.js +26 -0
  94. package/esm/deps/jsr.io/@std/encoding/0.220.1/base64.d.ts +27 -0
  95. package/esm/deps/jsr.io/@std/encoding/0.220.1/base64.d.ts.map +1 -0
  96. package/esm/deps/jsr.io/@std/encoding/0.220.1/base64.js +141 -0
  97. package/esm/deps/jsr.io/@std/fmt/0.220.1/colors.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@std/fs/0.220.1/_get_file_info_type.d.ts.map +1 -0
  99. package/esm/deps/jsr.io/@std/fs/0.220.1/_to_path_string.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/fs/0.220.1/ensure_dir.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@std/fs/0.220.1/ensure_file.d.ts.map +1 -0
  102. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/common.d.ts +38 -0
  103. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/common.d.ts.map +1 -0
  104. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/common.js +40 -0
  105. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/encoding.d.ts +34 -0
  106. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/encoding.d.ts.map +1 -0
  107. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/encoding.js +121 -0
  108. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/language.d.ts +31 -0
  109. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/language.d.ts.map +1 -0
  110. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/language.js +113 -0
  111. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/media_type.d.ts +31 -0
  112. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/media_type.d.ts.map +1 -0
  113. package/esm/deps/jsr.io/@std/http/0.220.1/_negotiation/media_type.js +140 -0
  114. package/esm/deps/jsr.io/@std/http/0.220.1/negotiation.d.ts +128 -0
  115. package/esm/deps/jsr.io/@std/http/0.220.1/negotiation.d.ts.map +1 -0
  116. package/esm/deps/jsr.io/@std/http/0.220.1/negotiation.js +37 -0
  117. package/esm/deps/jsr.io/@std/path/0.220.1/_common/assert_path.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@std/path/0.220.1/_common/basename.d.ts.map +1 -0
  119. package/esm/deps/jsr.io/@std/path/0.220.1/_common/common.d.ts.map +1 -0
  120. package/esm/deps/jsr.io/@std/path/0.220.1/_common/constants.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@std/path/0.220.1/_common/dirname.d.ts.map +1 -0
  122. package/esm/deps/jsr.io/@std/path/0.220.1/_common/format.d.ts.map +1 -0
  123. package/esm/deps/jsr.io/@std/path/0.220.1/_common/from_file_url.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@std/path/0.220.1/_common/glob_to_reg_exp.d.ts.map +1 -0
  125. package/esm/deps/jsr.io/@std/path/0.220.1/_common/normalize.d.ts.map +1 -0
  126. package/esm/deps/jsr.io/@std/path/0.220.1/_common/normalize_string.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@std/path/0.220.1/_common/relative.d.ts.map +1 -0
  128. package/esm/deps/jsr.io/@std/path/0.220.1/_common/strip_trailing_separators.d.ts.map +1 -0
  129. package/esm/deps/jsr.io/@std/path/0.220.1/_common/to_file_url.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@std/path/0.220.1/_interface.d.ts.map +1 -0
  131. package/esm/deps/jsr.io/@std/path/0.220.1/_os.d.ts.map +1 -0
  132. package/esm/deps/jsr.io/@std/path/0.220.1/basename.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@std/path/0.220.1/common.d.ts.map +1 -0
  134. package/esm/deps/jsr.io/@std/path/0.220.1/constants.d.ts.map +1 -0
  135. package/esm/deps/jsr.io/@std/path/0.220.1/dirname.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@std/path/0.220.1/extname.d.ts.map +1 -0
  137. package/esm/deps/jsr.io/@std/path/0.220.1/format.d.ts.map +1 -0
  138. package/esm/deps/jsr.io/@std/path/0.220.1/from_file_url.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@std/path/0.220.1/glob_to_regexp.d.ts.map +1 -0
  140. package/esm/deps/jsr.io/@std/path/0.220.1/is_absolute.d.ts.map +1 -0
  141. package/esm/deps/jsr.io/@std/path/0.220.1/is_glob.d.ts.map +1 -0
  142. package/esm/deps/jsr.io/@std/path/0.220.1/join.d.ts.map +1 -0
  143. package/esm/deps/jsr.io/@std/path/0.220.1/join_globs.d.ts.map +1 -0
  144. package/esm/deps/jsr.io/@std/path/0.220.1/mod.d.ts.map +1 -0
  145. package/esm/deps/jsr.io/@std/path/0.220.1/normalize.d.ts.map +1 -0
  146. package/esm/deps/jsr.io/@std/path/0.220.1/normalize_glob.d.ts.map +1 -0
  147. package/esm/deps/jsr.io/@std/path/0.220.1/parse.d.ts.map +1 -0
  148. package/esm/deps/jsr.io/@std/path/0.220.1/posix/_util.d.ts.map +1 -0
  149. package/esm/deps/jsr.io/@std/path/0.220.1/posix/basename.d.ts.map +1 -0
  150. package/esm/deps/jsr.io/@std/path/0.220.1/posix/common.d.ts.map +1 -0
  151. package/esm/deps/jsr.io/@std/path/0.220.1/posix/constants.d.ts.map +1 -0
  152. package/esm/deps/jsr.io/@std/path/0.220.1/posix/dirname.d.ts.map +1 -0
  153. package/esm/deps/jsr.io/@std/path/0.220.1/posix/extname.d.ts.map +1 -0
  154. package/esm/deps/jsr.io/@std/path/0.220.1/posix/format.d.ts.map +1 -0
  155. package/esm/deps/jsr.io/@std/path/0.220.1/posix/from_file_url.d.ts.map +1 -0
  156. package/esm/deps/jsr.io/@std/path/0.220.1/posix/glob_to_regexp.d.ts.map +1 -0
  157. package/esm/deps/jsr.io/@std/path/0.220.1/posix/is_absolute.d.ts.map +1 -0
  158. package/esm/deps/jsr.io/@std/path/0.220.1/posix/is_glob.d.ts.map +1 -0
  159. package/esm/deps/jsr.io/@std/path/0.220.1/posix/join.d.ts.map +1 -0
  160. package/esm/deps/jsr.io/@std/path/0.220.1/posix/join_globs.d.ts.map +1 -0
  161. package/esm/deps/jsr.io/@std/path/0.220.1/posix/mod.d.ts.map +1 -0
  162. package/esm/deps/jsr.io/@std/path/0.220.1/posix/normalize.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/0.220.1/posix/normalize_glob.d.ts.map +1 -0
  164. package/esm/deps/jsr.io/@std/path/0.220.1/posix/parse.d.ts.map +1 -0
  165. package/esm/deps/jsr.io/@std/path/0.220.1/posix/relative.d.ts.map +1 -0
  166. package/esm/deps/jsr.io/@std/path/0.220.1/posix/resolve.d.ts.map +1 -0
  167. package/esm/deps/jsr.io/@std/path/0.220.1/posix/to_file_url.d.ts.map +1 -0
  168. package/esm/deps/jsr.io/@std/path/0.220.1/posix/to_namespaced_path.d.ts.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/0.220.1/relative.d.ts.map +1 -0
  170. package/esm/deps/jsr.io/@std/path/0.220.1/resolve.d.ts.map +1 -0
  171. package/esm/deps/jsr.io/@std/path/0.220.1/to_file_url.d.ts.map +1 -0
  172. package/esm/deps/jsr.io/@std/path/0.220.1/to_namespaced_path.d.ts.map +1 -0
  173. package/esm/deps/jsr.io/@std/path/0.220.1/windows/_util.d.ts.map +1 -0
  174. package/esm/deps/jsr.io/@std/path/0.220.1/windows/basename.d.ts.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/0.220.1/windows/common.d.ts.map +1 -0
  176. package/esm/deps/jsr.io/@std/path/0.220.1/windows/constants.d.ts.map +1 -0
  177. package/esm/deps/jsr.io/@std/path/0.220.1/windows/dirname.d.ts.map +1 -0
  178. package/esm/deps/jsr.io/@std/path/0.220.1/windows/extname.d.ts.map +1 -0
  179. package/esm/deps/jsr.io/@std/path/0.220.1/windows/format.d.ts.map +1 -0
  180. package/esm/deps/jsr.io/@std/path/0.220.1/windows/from_file_url.d.ts.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/0.220.1/windows/glob_to_regexp.d.ts.map +1 -0
  182. package/esm/deps/jsr.io/@std/path/0.220.1/windows/is_absolute.d.ts.map +1 -0
  183. package/esm/deps/jsr.io/@std/path/0.220.1/windows/is_glob.d.ts.map +1 -0
  184. package/esm/deps/jsr.io/@std/path/0.220.1/windows/join.d.ts.map +1 -0
  185. package/esm/deps/jsr.io/@std/path/0.220.1/windows/join_globs.d.ts.map +1 -0
  186. package/esm/deps/jsr.io/@std/path/0.220.1/windows/mod.d.ts.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/0.220.1/windows/normalize.d.ts.map +1 -0
  188. package/esm/deps/jsr.io/@std/path/0.220.1/windows/normalize_glob.d.ts.map +1 -0
  189. package/esm/deps/jsr.io/@std/path/0.220.1/windows/parse.d.ts.map +1 -0
  190. package/esm/deps/jsr.io/@std/path/0.220.1/windows/relative.d.ts.map +1 -0
  191. package/esm/deps/jsr.io/@std/path/0.220.1/windows/resolve.d.ts.map +1 -0
  192. package/esm/deps/jsr.io/@std/path/0.220.1/windows/to_file_url.d.ts.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/0.220.1/windows/to_namespaced_path.d.ts.map +1 -0
  194. package/esm/deps/jsr.io/@std/semver/0.220.1/_constants.d.ts +2 -0
  195. package/esm/deps/jsr.io/@std/semver/0.220.1/_constants.d.ts.map +1 -0
  196. package/esm/deps/jsr.io/@std/semver/0.220.1/_constants.js +10 -0
  197. package/esm/deps/jsr.io/@std/semver/0.220.1/_shared.d.ts +44 -0
  198. package/esm/deps/jsr.io/@std/semver/0.220.1/_shared.d.ts.map +1 -0
  199. package/esm/deps/jsr.io/@std/semver/0.220.1/_shared.js +161 -0
  200. package/esm/deps/jsr.io/@std/semver/0.220.1/can_parse.d.ts +2 -0
  201. package/esm/deps/jsr.io/@std/semver/0.220.1/can_parse.d.ts.map +1 -0
  202. package/esm/deps/jsr.io/@std/semver/0.220.1/can_parse.js +14 -0
  203. package/esm/deps/jsr.io/@std/semver/0.220.1/compare.d.ts +11 -0
  204. package/esm/deps/jsr.io/@std/semver/0.220.1/compare.d.ts.map +1 -0
  205. package/esm/deps/jsr.io/@std/semver/0.220.1/compare.js +18 -0
  206. package/esm/deps/jsr.io/@std/semver/0.220.1/constants.d.ts +43 -0
  207. package/esm/deps/jsr.io/@std/semver/0.220.1/constants.d.ts.map +1 -0
  208. package/esm/deps/jsr.io/@std/semver/0.220.1/constants.js +73 -0
  209. package/esm/deps/jsr.io/@std/semver/0.220.1/difference.d.ts +6 -0
  210. package/esm/deps/jsr.io/@std/semver/0.220.1/difference.d.ts.map +1 -0
  211. package/esm/deps/jsr.io/@std/semver/0.220.1/difference.js +16 -0
  212. package/esm/deps/jsr.io/@std/semver/0.220.1/equals.d.ts +8 -0
  213. package/esm/deps/jsr.io/@std/semver/0.220.1/equals.d.ts.map +1 -0
  214. package/esm/deps/jsr.io/@std/semver/0.220.1/equals.js +10 -0
  215. package/esm/deps/jsr.io/@std/semver/0.220.1/format.d.ts +13 -0
  216. package/esm/deps/jsr.io/@std/semver/0.220.1/format.d.ts.map +1 -0
  217. package/esm/deps/jsr.io/@std/semver/0.220.1/format.js +36 -0
  218. package/esm/deps/jsr.io/@std/semver/0.220.1/format_range.d.ts +9 -0
  219. package/esm/deps/jsr.io/@std/semver/0.220.1/format_range.d.ts.map +1 -0
  220. package/esm/deps/jsr.io/@std/semver/0.220.1/format_range.js +16 -0
  221. package/esm/deps/jsr.io/@std/semver/0.220.1/greater_or_equal.d.ts +8 -0
  222. package/esm/deps/jsr.io/@std/semver/0.220.1/greater_or_equal.d.ts.map +1 -0
  223. package/esm/deps/jsr.io/@std/semver/0.220.1/greater_or_equal.js +9 -0
  224. package/esm/deps/jsr.io/@std/semver/0.220.1/greater_than.d.ts +8 -0
  225. package/esm/deps/jsr.io/@std/semver/0.220.1/greater_than.d.ts.map +1 -0
  226. package/esm/deps/jsr.io/@std/semver/0.220.1/greater_than.js +10 -0
  227. package/esm/deps/jsr.io/@std/semver/0.220.1/increment.d.ts +29 -0
  228. package/esm/deps/jsr.io/@std/semver/0.220.1/increment.d.ts.map +1 -0
  229. package/esm/deps/jsr.io/@std/semver/0.220.1/increment.js +160 -0
  230. package/esm/deps/jsr.io/@std/semver/0.220.1/is_range.d.ts +13 -0
  231. package/esm/deps/jsr.io/@std/semver/0.220.1/is_range.d.ts.map +1 -0
  232. package/esm/deps/jsr.io/@std/semver/0.220.1/is_range.js +28 -0
  233. package/esm/deps/jsr.io/@std/semver/0.220.1/is_semver.d.ts +18 -0
  234. package/esm/deps/jsr.io/@std/semver/0.220.1/is_semver.d.ts.map +1 -0
  235. package/esm/deps/jsr.io/@std/semver/0.220.1/is_semver.js +38 -0
  236. package/esm/deps/jsr.io/@std/semver/0.220.1/less_or_equal.d.ts +8 -0
  237. package/esm/deps/jsr.io/@std/semver/0.220.1/less_or_equal.d.ts.map +1 -0
  238. package/esm/deps/jsr.io/@std/semver/0.220.1/less_or_equal.js +9 -0
  239. package/esm/deps/jsr.io/@std/semver/0.220.1/less_than.d.ts +8 -0
  240. package/esm/deps/jsr.io/@std/semver/0.220.1/less_than.d.ts.map +1 -0
  241. package/esm/deps/jsr.io/@std/semver/0.220.1/less_than.js +9 -0
  242. package/esm/deps/jsr.io/@std/semver/0.220.1/max_satisfying.d.ts +10 -0
  243. package/esm/deps/jsr.io/@std/semver/0.220.1/max_satisfying.d.ts.map +1 -0
  244. package/esm/deps/jsr.io/@std/semver/0.220.1/max_satisfying.js +18 -0
  245. package/esm/deps/jsr.io/@std/semver/0.220.1/min_satisfying.d.ts +10 -0
  246. package/esm/deps/jsr.io/@std/semver/0.220.1/min_satisfying.d.ts.map +1 -0
  247. package/esm/deps/jsr.io/@std/semver/0.220.1/min_satisfying.js +18 -0
  248. package/esm/deps/jsr.io/@std/semver/0.220.1/mod.d.ts +291 -0
  249. package/esm/deps/jsr.io/@std/semver/0.220.1/mod.d.ts.map +1 -0
  250. package/esm/deps/jsr.io/@std/semver/0.220.1/mod.js +293 -0
  251. package/esm/deps/jsr.io/@std/semver/0.220.1/not_equals.d.ts +8 -0
  252. package/esm/deps/jsr.io/@std/semver/0.220.1/not_equals.d.ts.map +1 -0
  253. package/esm/deps/jsr.io/@std/semver/0.220.1/not_equals.js +9 -0
  254. package/esm/deps/jsr.io/@std/semver/0.220.1/parse.d.ts +9 -0
  255. package/esm/deps/jsr.io/@std/semver/0.220.1/parse.d.ts.map +1 -0
  256. package/esm/deps/jsr.io/@std/semver/0.220.1/parse.js +34 -0
  257. package/esm/deps/jsr.io/@std/semver/0.220.1/parse_range.d.ts +8 -0
  258. package/esm/deps/jsr.io/@std/semver/0.220.1/parse_range.d.ts.map +1 -0
  259. package/esm/deps/jsr.io/@std/semver/0.220.1/parse_range.js +336 -0
  260. package/esm/deps/jsr.io/@std/semver/0.220.1/range_intersects.d.ts +9 -0
  261. package/esm/deps/jsr.io/@std/semver/0.220.1/range_intersects.d.ts.map +1 -0
  262. package/esm/deps/jsr.io/@std/semver/0.220.1/range_intersects.js +72 -0
  263. package/esm/deps/jsr.io/@std/semver/0.220.1/range_max.d.ts +8 -0
  264. package/esm/deps/jsr.io/@std/semver/0.220.1/range_max.d.ts.map +1 -0
  265. package/esm/deps/jsr.io/@std/semver/0.220.1/range_max.js +58 -0
  266. package/esm/deps/jsr.io/@std/semver/0.220.1/range_min.d.ts +8 -0
  267. package/esm/deps/jsr.io/@std/semver/0.220.1/range_min.d.ts.map +1 -0
  268. package/esm/deps/jsr.io/@std/semver/0.220.1/range_min.js +49 -0
  269. package/esm/deps/jsr.io/@std/semver/0.220.1/test_range.d.ts +9 -0
  270. package/esm/deps/jsr.io/@std/semver/0.220.1/test_range.d.ts.map +1 -0
  271. package/esm/deps/jsr.io/@std/semver/0.220.1/test_range.js +69 -0
  272. package/esm/deps/jsr.io/@std/semver/0.220.1/try_parse.d.ts +8 -0
  273. package/esm/deps/jsr.io/@std/semver/0.220.1/try_parse.d.ts.map +1 -0
  274. package/esm/deps/jsr.io/@std/semver/0.220.1/try_parse.js +17 -0
  275. package/esm/deps/jsr.io/@std/semver/0.220.1/try_parse_range.d.ts +8 -0
  276. package/esm/deps/jsr.io/@std/semver/0.220.1/try_parse_range.d.ts.map +1 -0
  277. package/esm/deps/jsr.io/@std/semver/0.220.1/try_parse_range.js +17 -0
  278. package/esm/deps/jsr.io/@std/semver/0.220.1/types.d.ts +38 -0
  279. package/esm/deps/jsr.io/@std/semver/0.220.1/types.d.ts.map +1 -0
  280. package/esm/deps/jsr.io/@std/semver/0.220.1/types.js +2 -0
  281. package/esm/deps/jsr.io/@std/testing/0.220.1/snapshot.d.ts.map +1 -0
  282. package/esm/deps/jsr.io/@std/text/0.220.1/_util.d.ts.map +1 -0
  283. package/esm/deps/jsr.io/@std/text/0.220.1/case.d.ts.map +1 -0
  284. package/esm/deps/jsr.io/@std/text/0.220.1/closest_string.d.ts.map +1 -0
  285. package/esm/deps/jsr.io/@std/text/0.220.1/compare_similarity.d.ts.map +1 -0
  286. package/esm/deps/jsr.io/@std/text/0.220.1/levenshtein_distance.d.ts.map +1 -0
  287. package/esm/deps/jsr.io/@std/text/0.220.1/mod.d.ts.map +1 -0
  288. package/esm/deps/jsr.io/@std/text/0.220.1/word_similarity_sort.d.ts.map +1 -0
  289. package/esm/deps/jsr.io/@std/url/0.220.1/_strip.d.ts.map +1 -0
  290. package/esm/deps/jsr.io/@std/url/0.220.1/basename.d.ts.map +1 -0
  291. package/esm/deps/jsr.io/@std/url/0.220.1/dirname.d.ts.map +1 -0
  292. package/esm/deps/jsr.io/@std/url/0.220.1/extname.d.ts.map +1 -0
  293. package/esm/deps/jsr.io/@std/url/0.220.1/join.d.ts.map +1 -0
  294. package/esm/deps/jsr.io/@std/url/0.220.1/mod.d.ts.map +1 -0
  295. package/esm/deps/jsr.io/@std/url/0.220.1/normalize.d.ts.map +1 -0
  296. package/esm/deps/jsr.io/@std/yaml/0.220.1/_dumper/dumper.d.ts.map +1 -0
  297. package/esm/deps/jsr.io/@std/yaml/0.220.1/_dumper/dumper_state.d.ts.map +1 -0
  298. package/esm/deps/jsr.io/@std/yaml/0.220.1/_error.d.ts.map +1 -0
  299. package/esm/deps/jsr.io/@std/yaml/0.220.1/_loader/loader.d.ts.map +1 -0
  300. package/esm/deps/jsr.io/@std/yaml/0.220.1/_loader/loader_state.d.ts.map +1 -0
  301. package/esm/deps/jsr.io/@std/yaml/0.220.1/_mark.d.ts.map +1 -0
  302. package/esm/deps/jsr.io/@std/yaml/0.220.1/_state.d.ts.map +1 -0
  303. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/binary.d.ts.map +1 -0
  304. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/bool.d.ts.map +1 -0
  305. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/float.d.ts.map +1 -0
  306. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/function.d.ts.map +1 -0
  307. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/int.d.ts.map +1 -0
  308. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/map.d.ts.map +1 -0
  309. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/merge.d.ts.map +1 -0
  310. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/mod.d.ts.map +1 -0
  311. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/nil.d.ts.map +1 -0
  312. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/omap.d.ts.map +1 -0
  313. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/pairs.d.ts.map +1 -0
  314. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/regexp.d.ts.map +1 -0
  315. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/seq.d.ts.map +1 -0
  316. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/set.d.ts.map +1 -0
  317. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/str.d.ts.map +1 -0
  318. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/timestamp.d.ts.map +1 -0
  319. package/esm/deps/jsr.io/@std/yaml/0.220.1/_type/undefined.d.ts.map +1 -0
  320. package/esm/deps/jsr.io/@std/yaml/0.220.1/_utils.d.ts.map +1 -0
  321. package/esm/deps/jsr.io/@std/yaml/0.220.1/mod.d.ts.map +1 -0
  322. package/esm/deps/jsr.io/@std/yaml/0.220.1/parse.d.ts.map +1 -0
  323. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema/core.d.ts.map +1 -0
  324. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema/default.d.ts.map +1 -0
  325. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema/extended.d.ts.map +1 -0
  326. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema/failsafe.d.ts.map +1 -0
  327. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema/json.d.ts.map +1 -0
  328. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema/mod.d.ts.map +1 -0
  329. package/esm/deps/jsr.io/@std/yaml/0.220.1/schema.d.ts.map +1 -0
  330. package/esm/deps/jsr.io/@std/yaml/0.220.1/stringify.d.ts.map +1 -0
  331. package/esm/deps/jsr.io/@std/yaml/0.220.1/type.d.ts.map +1 -0
  332. package/esm/federation/callback.d.ts +56 -0
  333. package/esm/federation/callback.d.ts.map +1 -0
  334. package/esm/federation/callback.js +1 -0
  335. package/esm/federation/collection.d.ts +9 -0
  336. package/esm/federation/collection.d.ts.map +1 -0
  337. package/esm/federation/collection.js +1 -0
  338. package/esm/federation/context.d.ts +148 -0
  339. package/esm/federation/context.d.ts.map +1 -0
  340. package/esm/federation/context.js +1 -0
  341. package/esm/federation/handler.d.ts +83 -0
  342. package/esm/federation/handler.d.ts.map +1 -0
  343. package/esm/federation/handler.js +266 -0
  344. package/esm/federation/handler.test.d.ts.map +1 -0
  345. package/esm/federation/kv.d.ts +58 -0
  346. package/esm/federation/kv.d.ts.map +1 -0
  347. package/esm/federation/kv.js +45 -0
  348. package/esm/federation/middleware.d.ts +309 -0
  349. package/esm/federation/middleware.d.ts.map +1 -0
  350. package/esm/federation/middleware.js +626 -0
  351. package/esm/federation/middleware.test.d.ts.map +1 -0
  352. package/esm/federation/mod.d.ts +14 -0
  353. package/esm/federation/mod.d.ts.map +1 -0
  354. package/esm/federation/mod.js +13 -0
  355. package/esm/federation/mq.d.ts +42 -0
  356. package/esm/federation/mq.d.ts.map +1 -0
  357. package/esm/federation/mq.js +26 -0
  358. package/esm/federation/queue.d.ts +10 -0
  359. package/esm/federation/queue.d.ts.map +1 -0
  360. package/esm/federation/queue.js +1 -0
  361. package/esm/federation/router.d.ts +52 -0
  362. package/esm/federation/router.d.ts.map +1 -0
  363. package/esm/federation/router.js +80 -0
  364. package/esm/federation/router.test.d.ts.map +1 -0
  365. package/esm/federation/send.d.ts +60 -0
  366. package/esm/federation/send.d.ts.map +1 -0
  367. package/esm/federation/send.js +45 -0
  368. package/esm/federation/send.test.d.ts.map +1 -0
  369. package/esm/httpsig/key.d.ts +32 -0
  370. package/esm/httpsig/key.d.ts.map +1 -0
  371. package/esm/httpsig/key.js +62 -0
  372. package/esm/httpsig/key.test.d.ts.map +1 -0
  373. package/esm/httpsig/mod.d.ts +47 -0
  374. package/esm/httpsig/mod.d.ts.map +1 -0
  375. package/esm/httpsig/mod.js +193 -0
  376. package/esm/httpsig/mod.test.d.ts.map +1 -0
  377. package/esm/mod.d.ts +51 -0
  378. package/esm/mod.d.ts.map +1 -0
  379. package/esm/mod.js +50 -0
  380. package/esm/nodeinfo/handler.d.ts +33 -0
  381. package/esm/nodeinfo/handler.d.ts.map +1 -0
  382. package/esm/nodeinfo/handler.js +49 -0
  383. package/esm/nodeinfo/handler.test.d.ts.map +1 -0
  384. package/esm/nodeinfo/mod.d.ts +8 -0
  385. package/esm/nodeinfo/mod.d.ts.map +1 -0
  386. package/esm/nodeinfo/mod.js +7 -0
  387. package/esm/nodeinfo/types.d.ts +133 -0
  388. package/esm/nodeinfo/types.d.ts.map +1 -0
  389. package/esm/nodeinfo/types.js +60 -0
  390. package/esm/nodeinfo/types.test.d.ts.map +1 -0
  391. package/esm/package.json +3 -0
  392. package/esm/runtime/docloader.d.ts +104 -0
  393. package/esm/runtime/docloader.d.ts.map +1 -0
  394. package/esm/runtime/docloader.js +124 -0
  395. package/esm/runtime/docloader.test.d.ts.map +1 -0
  396. package/esm/runtime/key.d.ts +14 -0
  397. package/esm/runtime/key.d.ts.map +1 -0
  398. package/esm/runtime/key.js +24 -0
  399. package/esm/runtime/key.test.d.ts.map +1 -0
  400. package/esm/runtime/langstr.d.ts +15 -0
  401. package/esm/runtime/langstr.d.ts.map +1 -0
  402. package/esm/runtime/langstr.js +25 -0
  403. package/esm/runtime/langstr.test.d.ts.map +1 -0
  404. package/esm/runtime/mod.d.ts +10 -0
  405. package/esm/runtime/mod.d.ts.map +1 -0
  406. package/esm/runtime/mod.js +9 -0
  407. package/esm/shim/event.d.ts.map +1 -0
  408. package/esm/testing/context.d.ts.map +1 -0
  409. package/esm/testing/docloader.d.ts.map +1 -0
  410. package/esm/testing/fixtures/example.com/hong-gildong +11 -0
  411. package/esm/testing/fixtures/example.com/key +7 -0
  412. package/esm/testing/fixtures/example.com/key2 +6 -0
  413. package/esm/testing/fixtures/example.com/object +6 -0
  414. package/esm/testing/fixtures/example.com/person +22 -0
  415. package/esm/testing/fixtures/example.com/test +5 -0
  416. package/esm/testing/fixtures/example.com/users/handle +16 -0
  417. package/esm/testing/fixtures/example.com/wrong-type +3 -0
  418. package/esm/testing/fixtures/w3id.org/security/v1 +50 -0
  419. package/esm/testing/fixtures/www.w3.org/ns/activitystreams +379 -0
  420. package/esm/testing/keys.d.ts.map +1 -0
  421. package/esm/vocab/accept.yaml +11 -0
  422. package/esm/vocab/activity.yaml +42 -0
  423. package/esm/vocab/actor.d.ts +52 -0
  424. package/esm/vocab/actor.d.ts.map +1 -0
  425. package/esm/vocab/actor.js +94 -0
  426. package/esm/vocab/actor.test.d.ts.map +1 -0
  427. package/esm/vocab/add.yaml +12 -0
  428. package/esm/vocab/announce.yaml +11 -0
  429. package/esm/vocab/application.yaml +179 -0
  430. package/esm/vocab/article.yaml +8 -0
  431. package/esm/vocab/audio.yaml +8 -0
  432. package/esm/vocab/block.yaml +12 -0
  433. package/esm/vocab/collection.yaml +63 -0
  434. package/esm/vocab/collectionpage.yaml +38 -0
  435. package/esm/vocab/create.yaml +8 -0
  436. package/esm/vocab/delete.yaml +10 -0
  437. package/esm/vocab/dislike.yaml +8 -0
  438. package/esm/vocab/document.yaml +8 -0
  439. package/esm/vocab/endpoints.yaml +78 -0
  440. package/esm/vocab/event.yaml +8 -0
  441. package/esm/vocab/flag.yaml +11 -0
  442. package/esm/vocab/follow.yaml +12 -0
  443. package/esm/vocab/group.yaml +179 -0
  444. package/esm/vocab/ignore.yaml +10 -0
  445. package/esm/vocab/image.yaml +8 -0
  446. package/esm/vocab/intransitiveactivity.yaml +11 -0
  447. package/esm/vocab/key.yaml +25 -0
  448. package/esm/vocab/like.yaml +10 -0
  449. package/esm/vocab/link.yaml +92 -0
  450. package/esm/vocab/lookup.d.ts +42 -0
  451. package/esm/vocab/lookup.d.ts.map +1 -0
  452. package/esm/vocab/lookup.js +82 -0
  453. package/esm/vocab/lookup.test.d.ts.map +1 -0
  454. package/esm/vocab/mention.yaml +8 -0
  455. package/esm/vocab/mod.d.ts +55 -0
  456. package/esm/vocab/mod.d.ts.map +1 -0
  457. package/esm/vocab/mod.js +54 -0
  458. package/esm/vocab/note.yaml +10 -0
  459. package/esm/vocab/object.yaml +301 -0
  460. package/esm/vocab/orderedcollection.yaml +11 -0
  461. package/esm/vocab/orderedcollectionpage.yaml +20 -0
  462. package/esm/vocab/organization.yaml +179 -0
  463. package/esm/vocab/page.yaml +8 -0
  464. package/esm/vocab/person.yaml +179 -0
  465. package/esm/vocab/place.yaml +66 -0
  466. package/esm/vocab/profile.yaml +22 -0
  467. package/esm/vocab/reject.yaml +10 -0
  468. package/esm/vocab/relationship.yaml +46 -0
  469. package/esm/vocab/remove.yaml +10 -0
  470. package/esm/vocab/service.yaml +179 -0
  471. package/esm/vocab/undo.yaml +15 -0
  472. package/esm/vocab/update.yaml +13 -0
  473. package/esm/vocab/video.yaml +8 -0
  474. package/esm/vocab/vocab.d.ts +7191 -0
  475. package/esm/vocab/vocab.d.ts.map +1 -0
  476. package/esm/vocab/vocab.js +14279 -0
  477. package/esm/vocab/vocab.test.d.ts.map +1 -0
  478. package/esm/webfinger/handler.d.ts +29 -0
  479. package/esm/webfinger/handler.d.ts.map +1 -0
  480. package/esm/webfinger/handler.js +76 -0
  481. package/esm/webfinger/handler.test.d.ts.map +1 -0
  482. package/esm/webfinger/jrd.d.ts +52 -0
  483. package/esm/webfinger/jrd.d.ts.map +1 -0
  484. package/esm/webfinger/jrd.js +1 -0
  485. package/esm/webfinger/lookup.d.ts +9 -0
  486. package/esm/webfinger/lookup.d.ts.map +1 -0
  487. package/esm/webfinger/lookup.js +44 -0
  488. package/esm/webfinger/lookup.test.d.ts.map +1 -0
  489. package/esm/webfinger/mod.d.ts +8 -0
  490. package/esm/webfinger/mod.d.ts.map +1 -0
  491. package/esm/webfinger/mod.js +7 -0
  492. package/esm/x/fresh.d.ts +58 -0
  493. package/esm/x/fresh.d.ts.map +1 -0
  494. package/esm/x/fresh.js +77 -0
  495. package/logo.svg +187 -0
  496. package/package.json +60 -0
@@ -0,0 +1,291 @@
1
+ /**
2
+ * The semantic version parser.
3
+ *
4
+ * Adapted directly from {@link https://github.com/npm/node-semver | semver}.
5
+ *
6
+ * ## Versions
7
+ *
8
+ * A "version" is described by the `v2.0.0` specification found at
9
+ * <https://semver.org>.
10
+ *
11
+ * A leading `"="` or `"v"` character is stripped off and ignored.
12
+ *
13
+ * ## Format
14
+ *
15
+ * Semantic versions can be formatted as strings, by default they
16
+ * are formatted as `full`. Below is a diagram showing the various
17
+ * formatting options.
18
+ *
19
+ * ```
20
+ * ┌───── full
21
+ * ┌───┴───┐
22
+ * ├───────── release
23
+ * ┌───┴───┐ │
24
+ * ├───────────── primary
25
+ * ┌─┴─┐ │ │
26
+ * 1.2.3-pre.1+b.1
27
+ * │ │ │ └─┬─┘ └┬┘
28
+ * │ │ │ │ └── build
29
+ * │ │ │ └─────── pre
30
+ * │ │ └─────────── patch
31
+ * │ └───────────── minor
32
+ * └─────────────── major
33
+ * ```
34
+ *
35
+ * ## Ranges
36
+ *
37
+ * A `version range` is a set of `comparators` which specify versions that satisfy
38
+ * the range.
39
+ *
40
+ * A `comparator` is composed of an `operator` and a `version`. The set of
41
+ * primitive `operators` is:
42
+ *
43
+ * - `<` Less than
44
+ * - `<=` Less than or equal to
45
+ * - `>` Greater than
46
+ * - `>=` Greater than or equal to
47
+ * - `=` Equal. If no operator is specified, then equality is assumed, so this
48
+ * operator is optional, but MAY be included.
49
+ *
50
+ * For example, the comparator `>=1.2.7` would match the versions `1.2.7`, `1.2.8`,
51
+ * `2.5.3`, and `1.3.9`, but not the versions `1.2.6` or `1.1.0`.
52
+ *
53
+ * Comparators can be joined by whitespace to form a `comparator set`, which is
54
+ * satisfied by the **intersection** of all of the comparators it includes.
55
+ *
56
+ * A range is composed of one or more comparator sets, joined by `||`. A version
57
+ * matches a range if and only if every comparator in at least one of the
58
+ * `||`-separated comparator sets is satisfied by the version.
59
+ *
60
+ * For example, the range `>=1.2.7 <1.3.0` would match the versions `1.2.7`,
61
+ * `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, or `1.1.0`.
62
+ *
63
+ * The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, `1.2.9`,
64
+ * and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
65
+ *
66
+ * ### Prerelease Tags
67
+ *
68
+ * If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then it will
69
+ * only be allowed to satisfy comparator sets if at least one comparator with the
70
+ * same `[major, minor, patch]` tuple also has a prerelease tag.
71
+ *
72
+ * For example, the range `>1.2.3-alpha.3` would be allowed to match the version
73
+ * `1.2.3-alpha.7`, but it would _not_ be satisfied by `3.4.5-alpha.9`, even though
74
+ * `3.4.5-alpha.9` is technically "greater than" `1.2.3-alpha.3` according to the
75
+ * SemVer sort rules. The version range only accepts prerelease tags on the `1.2.3`
76
+ * version. The version `3.4.5` _would_ satisfy the range, because it does not have
77
+ * a prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
78
+ *
79
+ * The purpose for this behavior is twofold. First, prerelease versions frequently
80
+ * are updated very quickly, and contain many breaking changes that are (by the
81
+ * author"s design) not yet fit for public consumption. Therefore, by default, they
82
+ * are excluded from range matching semantics.
83
+ *
84
+ * Second, a user who has opted into using a prerelease version has clearly
85
+ * indicated the intent to use _that specific_ set of alpha/beta/rc versions. By
86
+ * including a prerelease tag in the range, the user is indicating that they are
87
+ * aware of the risk. However, it is still not appropriate to assume that they have
88
+ * opted into taking a similar risk on the _next_ set of prerelease versions.
89
+ *
90
+ * #### Prerelease Identifiers
91
+ *
92
+ * The method `.increment` takes an additional `identifier` string argument that
93
+ * will append the value of the string as a prerelease identifier:
94
+ *
95
+ * ```javascript
96
+ * semver.increment(parse("1.2.3"), "prerelease", "beta");
97
+ * // "1.2.4-beta.0"
98
+ * ```
99
+ *
100
+ * ### Build Metadata
101
+ *
102
+ * Build metadata is `.` delimited alpha-numeric string.
103
+ * When parsing a version it is retained on the `build: string[]` field
104
+ * of the semver instance. When incrementing there is an additional parameter that
105
+ * can set the build metadata on the semver instance.
106
+ *
107
+ * ### Advanced Range Syntax
108
+ *
109
+ * Advanced range syntax desugars to primitive comparators in deterministic ways.
110
+ *
111
+ * Advanced ranges may be combined in the same way as primitive comparators using
112
+ * white space or `||`.
113
+ *
114
+ * #### Hyphen Ranges `X.Y.Z - A.B.C`
115
+ *
116
+ * Specifies an inclusive set.
117
+ *
118
+ * - `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
119
+ *
120
+ * If a partial version is provided as the first version in the inclusive range,
121
+ * then the missing pieces are replaced with zeroes.
122
+ *
123
+ * - `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
124
+ *
125
+ * If a partial version is provided as the second version in the inclusive range,
126
+ * then all versions that start with the supplied parts of the tuple are accepted,
127
+ * but nothing that would be greater than the provided tuple parts.
128
+ *
129
+ * - `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
130
+ * - `1.2.3 - 2` := `>=1.2.3 <3.0.0`
131
+ *
132
+ * #### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
133
+ *
134
+ * Any of `X`, `x`, or `*` may be used to "stand in" for one of the numeric values
135
+ * in the `[major, minor, patch]` tuple.
136
+ *
137
+ * - `*` := `>=0.0.0` (Any version satisfies)
138
+ * - `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
139
+ * - `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
140
+ *
141
+ * A partial version range is treated as an X-Range, so the special character is in
142
+ * fact optional.
143
+ *
144
+ * - `""` (empty string) := `*` := `>=0.0.0`
145
+ * - `1` := `1.x.x` := `>=1.0.0 <2.0.0`
146
+ * - `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
147
+ *
148
+ * #### Tilde Ranges `~1.2.3` `~1.2` `~1`
149
+ *
150
+ * Allows patch-level changes if a minor version is specified on the comparator.
151
+ * Allows minor-level changes if not.
152
+ *
153
+ * - `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
154
+ * - `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
155
+ * - `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
156
+ * - `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
157
+ * - `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
158
+ * - `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
159
+ * - `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in the
160
+ * `1.2.3` version will be allowed, if they are greater than or equal to
161
+ * `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
162
+ * because it is a prerelease of a different `[major, minor, patch]` tuple.
163
+ *
164
+ * #### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
165
+ *
166
+ * Allows changes that do not modify the left-most non-zero element in the
167
+ * `[major, minor, patch]` tuple. In other words, this allows patch and minor
168
+ * updates for versions `1.0.0` and above, patch updates for versions
169
+ * `0.X >=0.1.0`, and _no_ updates for versions `0.0.X`.
170
+ *
171
+ * Many authors treat a `0.x` version as if the `x` were the major
172
+ * "breaking-change" indicator.
173
+ *
174
+ * Caret ranges are ideal when an author may make breaking changes between `0.2.4`
175
+ * and `0.3.0` releases, which is a common practice. However, it presumes that
176
+ * there will _not_ be breaking changes between `0.2.4` and `0.2.5`. It allows for
177
+ * changes that are presumed to be additive (but non-breaking), according to
178
+ * commonly observed practices.
179
+ *
180
+ * - `^1.2.3` := `>=1.2.3 <2.0.0`
181
+ * - `^0.2.3` := `>=0.2.3 <0.3.0`
182
+ * - `^0.0.3` := `>=0.0.3 <0.0.4`
183
+ * - `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in the
184
+ * `1.2.3` version will be allowed, if they are greater than or equal to
185
+ * `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
186
+ * because it is a prerelease of a different `[major, minor, patch]` tuple.
187
+ * - `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the `0.0.3`
188
+ * version _only_ will be allowed, if they are greater than or equal to `beta`.
189
+ * So, `0.0.3-pr.2` would be allowed.
190
+ *
191
+ * When parsing caret ranges, a missing `patch` value desugars to the number `0`,
192
+ * but will allow flexibility within that value, even if the major and minor
193
+ * versions are both `0`.
194
+ *
195
+ * - `^1.2.x` := `>=1.2.0 <2.0.0`
196
+ * - `^0.0.x` := `>=0.0.0 <0.1.0`
197
+ * - `^0.0` := `>=0.0.0 <0.1.0`
198
+ *
199
+ * A missing `minor` and `patch` values will desugar to zero, but also allow
200
+ * flexibility within those values, even if the major version is zero.
201
+ *
202
+ * - `^1.x` := `>=1.0.0 <2.0.0`
203
+ * - `^0.x` := `>=0.0.0 <1.0.0`
204
+ *
205
+ * ### Range Grammar
206
+ *
207
+ * Putting all this together, here is a Backus-Naur grammar for ranges, for the
208
+ * benefit of parser authors:
209
+ *
210
+ * ```bnf
211
+ * range-set ::= range ( logical-or range ) *
212
+ * logical-or ::= ( " " ) * "||" ( " " ) *
213
+ * range ::= hyphen | simple ( " " simple ) * | ""
214
+ * hyphen ::= partial " - " partial
215
+ * simple ::= primitive | partial | tilde | caret
216
+ * primitive ::= ( "<" | ">" | ">=" | "<=" | "=" ) partial
217
+ * partial ::= xr ( "." xr ( "." xr qualifier ? )? )?
218
+ * xr ::= "x" | "X" | "*" | nr
219
+ * nr ::= "0" | ["1"-"9"] ( ["0"-"9"] ) *
220
+ * tilde ::= "~" partial
221
+ * caret ::= "^" partial
222
+ * qualifier ::= ( "-" pre )? ( "+" build )?
223
+ * pre ::= parts
224
+ * build ::= parts
225
+ * parts ::= part ( "." part ) *
226
+ * part ::= nr | [-0-9A-Za-z]+
227
+ * ```
228
+ *
229
+ * Note that, since ranges may be non-contiguous, a version might not be greater
230
+ * than a range, less than a range, _or_ satisfy a range! For example, the range
231
+ * `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` until `2.0.0`, so the
232
+ * version `1.2.10` would not be greater than the range (because `2.0.1` satisfies,
233
+ * which is higher), nor less than the range (since `1.2.8` satisfies, which is
234
+ * lower), and it also does not satisfy the range.
235
+ *
236
+ * If you want to know if a version satisfies or does not satisfy a range, use the
237
+ * {@linkcode satisfies} function.
238
+ *
239
+ * This module is browser compatible.
240
+ *
241
+ * @example
242
+ * ```ts
243
+ * import {
244
+ * parse,
245
+ * parseRange,
246
+ * greaterThan,
247
+ * lessThan,
248
+ * format
249
+ * } from "@std/semver";
250
+ *
251
+ * const semver = parse("1.2.3");
252
+ * const range = parseRange("1.x || >=2.5.0 || 5.0.0 - 7.2.3");
253
+ *
254
+ * const s0 = parse("1.2.3");
255
+ * const s1 = parse("9.8.7");
256
+ * greaterThan(s0, s1); // false
257
+ * lessThan(s0, s1); // true
258
+ *
259
+ * format(semver) // "1.2.3"
260
+ * ```
261
+ *
262
+ * @module
263
+ */
264
+ export * from "./compare.js";
265
+ export * from "./constants.js";
266
+ export * from "./difference.js";
267
+ export * from "./format.js";
268
+ export * from "./test_range.js";
269
+ export * from "./increment.js";
270
+ export * from "./is_semver.js";
271
+ export * from "./max_satisfying.js";
272
+ export * from "./min_satisfying.js";
273
+ export * from "./parse_range.js";
274
+ export * from "./parse.js";
275
+ export * from "./range_intersects.js";
276
+ export * from "./range_max.js";
277
+ export * from "./range_min.js";
278
+ export * from "./types.js";
279
+ export * from "./try_parse_range.js";
280
+ export * from "./is_range.js";
281
+ export * from "./can_parse.js";
282
+ export * from "./try_parse.js";
283
+ export * from "./format_range.js";
284
+ export * from "./equals.js";
285
+ export * from "./not_equals.js";
286
+ export * from "./greater_than.js";
287
+ export * from "./greater_or_equal.js";
288
+ export * from "./less_than.js";
289
+ export * from "./less_or_equal.js";
290
+ export declare const SEMVER_SPEC_VERSION = "2.0.0";
291
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.220.1/mod.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsQG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,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,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,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,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AAEnC,eAAO,MAAM,mBAAmB,UAAU,CAAC"}
@@ -0,0 +1,293 @@
1
+ // Copyright Isaac Z. Schlueter and Contributors. All rights reserved. ISC license.
2
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ /**
5
+ * The semantic version parser.
6
+ *
7
+ * Adapted directly from {@link https://github.com/npm/node-semver | semver}.
8
+ *
9
+ * ## Versions
10
+ *
11
+ * A "version" is described by the `v2.0.0` specification found at
12
+ * <https://semver.org>.
13
+ *
14
+ * A leading `"="` or `"v"` character is stripped off and ignored.
15
+ *
16
+ * ## Format
17
+ *
18
+ * Semantic versions can be formatted as strings, by default they
19
+ * are formatted as `full`. Below is a diagram showing the various
20
+ * formatting options.
21
+ *
22
+ * ```
23
+ * ┌───── full
24
+ * ┌───┴───┐
25
+ * ├───────── release
26
+ * ┌───┴───┐ │
27
+ * ├───────────── primary
28
+ * ┌─┴─┐ │ │
29
+ * 1.2.3-pre.1+b.1
30
+ * │ │ │ └─┬─┘ └┬┘
31
+ * │ │ │ │ └── build
32
+ * │ │ │ └─────── pre
33
+ * │ │ └─────────── patch
34
+ * │ └───────────── minor
35
+ * └─────────────── major
36
+ * ```
37
+ *
38
+ * ## Ranges
39
+ *
40
+ * A `version range` is a set of `comparators` which specify versions that satisfy
41
+ * the range.
42
+ *
43
+ * A `comparator` is composed of an `operator` and a `version`. The set of
44
+ * primitive `operators` is:
45
+ *
46
+ * - `<` Less than
47
+ * - `<=` Less than or equal to
48
+ * - `>` Greater than
49
+ * - `>=` Greater than or equal to
50
+ * - `=` Equal. If no operator is specified, then equality is assumed, so this
51
+ * operator is optional, but MAY be included.
52
+ *
53
+ * For example, the comparator `>=1.2.7` would match the versions `1.2.7`, `1.2.8`,
54
+ * `2.5.3`, and `1.3.9`, but not the versions `1.2.6` or `1.1.0`.
55
+ *
56
+ * Comparators can be joined by whitespace to form a `comparator set`, which is
57
+ * satisfied by the **intersection** of all of the comparators it includes.
58
+ *
59
+ * A range is composed of one or more comparator sets, joined by `||`. A version
60
+ * matches a range if and only if every comparator in at least one of the
61
+ * `||`-separated comparator sets is satisfied by the version.
62
+ *
63
+ * For example, the range `>=1.2.7 <1.3.0` would match the versions `1.2.7`,
64
+ * `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, or `1.1.0`.
65
+ *
66
+ * The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, `1.2.9`,
67
+ * and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
68
+ *
69
+ * ### Prerelease Tags
70
+ *
71
+ * If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then it will
72
+ * only be allowed to satisfy comparator sets if at least one comparator with the
73
+ * same `[major, minor, patch]` tuple also has a prerelease tag.
74
+ *
75
+ * For example, the range `>1.2.3-alpha.3` would be allowed to match the version
76
+ * `1.2.3-alpha.7`, but it would _not_ be satisfied by `3.4.5-alpha.9`, even though
77
+ * `3.4.5-alpha.9` is technically "greater than" `1.2.3-alpha.3` according to the
78
+ * SemVer sort rules. The version range only accepts prerelease tags on the `1.2.3`
79
+ * version. The version `3.4.5` _would_ satisfy the range, because it does not have
80
+ * a prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
81
+ *
82
+ * The purpose for this behavior is twofold. First, prerelease versions frequently
83
+ * are updated very quickly, and contain many breaking changes that are (by the
84
+ * author"s design) not yet fit for public consumption. Therefore, by default, they
85
+ * are excluded from range matching semantics.
86
+ *
87
+ * Second, a user who has opted into using a prerelease version has clearly
88
+ * indicated the intent to use _that specific_ set of alpha/beta/rc versions. By
89
+ * including a prerelease tag in the range, the user is indicating that they are
90
+ * aware of the risk. However, it is still not appropriate to assume that they have
91
+ * opted into taking a similar risk on the _next_ set of prerelease versions.
92
+ *
93
+ * #### Prerelease Identifiers
94
+ *
95
+ * The method `.increment` takes an additional `identifier` string argument that
96
+ * will append the value of the string as a prerelease identifier:
97
+ *
98
+ * ```javascript
99
+ * semver.increment(parse("1.2.3"), "prerelease", "beta");
100
+ * // "1.2.4-beta.0"
101
+ * ```
102
+ *
103
+ * ### Build Metadata
104
+ *
105
+ * Build metadata is `.` delimited alpha-numeric string.
106
+ * When parsing a version it is retained on the `build: string[]` field
107
+ * of the semver instance. When incrementing there is an additional parameter that
108
+ * can set the build metadata on the semver instance.
109
+ *
110
+ * ### Advanced Range Syntax
111
+ *
112
+ * Advanced range syntax desugars to primitive comparators in deterministic ways.
113
+ *
114
+ * Advanced ranges may be combined in the same way as primitive comparators using
115
+ * white space or `||`.
116
+ *
117
+ * #### Hyphen Ranges `X.Y.Z - A.B.C`
118
+ *
119
+ * Specifies an inclusive set.
120
+ *
121
+ * - `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
122
+ *
123
+ * If a partial version is provided as the first version in the inclusive range,
124
+ * then the missing pieces are replaced with zeroes.
125
+ *
126
+ * - `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
127
+ *
128
+ * If a partial version is provided as the second version in the inclusive range,
129
+ * then all versions that start with the supplied parts of the tuple are accepted,
130
+ * but nothing that would be greater than the provided tuple parts.
131
+ *
132
+ * - `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
133
+ * - `1.2.3 - 2` := `>=1.2.3 <3.0.0`
134
+ *
135
+ * #### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
136
+ *
137
+ * Any of `X`, `x`, or `*` may be used to "stand in" for one of the numeric values
138
+ * in the `[major, minor, patch]` tuple.
139
+ *
140
+ * - `*` := `>=0.0.0` (Any version satisfies)
141
+ * - `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
142
+ * - `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
143
+ *
144
+ * A partial version range is treated as an X-Range, so the special character is in
145
+ * fact optional.
146
+ *
147
+ * - `""` (empty string) := `*` := `>=0.0.0`
148
+ * - `1` := `1.x.x` := `>=1.0.0 <2.0.0`
149
+ * - `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
150
+ *
151
+ * #### Tilde Ranges `~1.2.3` `~1.2` `~1`
152
+ *
153
+ * Allows patch-level changes if a minor version is specified on the comparator.
154
+ * Allows minor-level changes if not.
155
+ *
156
+ * - `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
157
+ * - `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
158
+ * - `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
159
+ * - `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
160
+ * - `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
161
+ * - `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
162
+ * - `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in the
163
+ * `1.2.3` version will be allowed, if they are greater than or equal to
164
+ * `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
165
+ * because it is a prerelease of a different `[major, minor, patch]` tuple.
166
+ *
167
+ * #### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
168
+ *
169
+ * Allows changes that do not modify the left-most non-zero element in the
170
+ * `[major, minor, patch]` tuple. In other words, this allows patch and minor
171
+ * updates for versions `1.0.0` and above, patch updates for versions
172
+ * `0.X >=0.1.0`, and _no_ updates for versions `0.0.X`.
173
+ *
174
+ * Many authors treat a `0.x` version as if the `x` were the major
175
+ * "breaking-change" indicator.
176
+ *
177
+ * Caret ranges are ideal when an author may make breaking changes between `0.2.4`
178
+ * and `0.3.0` releases, which is a common practice. However, it presumes that
179
+ * there will _not_ be breaking changes between `0.2.4` and `0.2.5`. It allows for
180
+ * changes that are presumed to be additive (but non-breaking), according to
181
+ * commonly observed practices.
182
+ *
183
+ * - `^1.2.3` := `>=1.2.3 <2.0.0`
184
+ * - `^0.2.3` := `>=0.2.3 <0.3.0`
185
+ * - `^0.0.3` := `>=0.0.3 <0.0.4`
186
+ * - `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in the
187
+ * `1.2.3` version will be allowed, if they are greater than or equal to
188
+ * `beta.2`. So, `1.2.3-beta.4` would be allowed, but `1.2.4-beta.2` would not,
189
+ * because it is a prerelease of a different `[major, minor, patch]` tuple.
190
+ * - `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the `0.0.3`
191
+ * version _only_ will be allowed, if they are greater than or equal to `beta`.
192
+ * So, `0.0.3-pr.2` would be allowed.
193
+ *
194
+ * When parsing caret ranges, a missing `patch` value desugars to the number `0`,
195
+ * but will allow flexibility within that value, even if the major and minor
196
+ * versions are both `0`.
197
+ *
198
+ * - `^1.2.x` := `>=1.2.0 <2.0.0`
199
+ * - `^0.0.x` := `>=0.0.0 <0.1.0`
200
+ * - `^0.0` := `>=0.0.0 <0.1.0`
201
+ *
202
+ * A missing `minor` and `patch` values will desugar to zero, but also allow
203
+ * flexibility within those values, even if the major version is zero.
204
+ *
205
+ * - `^1.x` := `>=1.0.0 <2.0.0`
206
+ * - `^0.x` := `>=0.0.0 <1.0.0`
207
+ *
208
+ * ### Range Grammar
209
+ *
210
+ * Putting all this together, here is a Backus-Naur grammar for ranges, for the
211
+ * benefit of parser authors:
212
+ *
213
+ * ```bnf
214
+ * range-set ::= range ( logical-or range ) *
215
+ * logical-or ::= ( " " ) * "||" ( " " ) *
216
+ * range ::= hyphen | simple ( " " simple ) * | ""
217
+ * hyphen ::= partial " - " partial
218
+ * simple ::= primitive | partial | tilde | caret
219
+ * primitive ::= ( "<" | ">" | ">=" | "<=" | "=" ) partial
220
+ * partial ::= xr ( "." xr ( "." xr qualifier ? )? )?
221
+ * xr ::= "x" | "X" | "*" | nr
222
+ * nr ::= "0" | ["1"-"9"] ( ["0"-"9"] ) *
223
+ * tilde ::= "~" partial
224
+ * caret ::= "^" partial
225
+ * qualifier ::= ( "-" pre )? ( "+" build )?
226
+ * pre ::= parts
227
+ * build ::= parts
228
+ * parts ::= part ( "." part ) *
229
+ * part ::= nr | [-0-9A-Za-z]+
230
+ * ```
231
+ *
232
+ * Note that, since ranges may be non-contiguous, a version might not be greater
233
+ * than a range, less than a range, _or_ satisfy a range! For example, the range
234
+ * `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` until `2.0.0`, so the
235
+ * version `1.2.10` would not be greater than the range (because `2.0.1` satisfies,
236
+ * which is higher), nor less than the range (since `1.2.8` satisfies, which is
237
+ * lower), and it also does not satisfy the range.
238
+ *
239
+ * If you want to know if a version satisfies or does not satisfy a range, use the
240
+ * {@linkcode satisfies} function.
241
+ *
242
+ * This module is browser compatible.
243
+ *
244
+ * @example
245
+ * ```ts
246
+ * import {
247
+ * parse,
248
+ * parseRange,
249
+ * greaterThan,
250
+ * lessThan,
251
+ * format
252
+ * } from "@std/semver";
253
+ *
254
+ * const semver = parse("1.2.3");
255
+ * const range = parseRange("1.x || >=2.5.0 || 5.0.0 - 7.2.3");
256
+ *
257
+ * const s0 = parse("1.2.3");
258
+ * const s1 = parse("9.8.7");
259
+ * greaterThan(s0, s1); // false
260
+ * lessThan(s0, s1); // true
261
+ *
262
+ * format(semver) // "1.2.3"
263
+ * ```
264
+ *
265
+ * @module
266
+ */
267
+ export * from "./compare.js";
268
+ export * from "./constants.js";
269
+ export * from "./difference.js";
270
+ export * from "./format.js";
271
+ export * from "./test_range.js";
272
+ export * from "./increment.js";
273
+ export * from "./is_semver.js";
274
+ export * from "./max_satisfying.js";
275
+ export * from "./min_satisfying.js";
276
+ export * from "./parse_range.js";
277
+ export * from "./parse.js";
278
+ export * from "./range_intersects.js";
279
+ export * from "./range_max.js";
280
+ export * from "./range_min.js";
281
+ export * from "./types.js";
282
+ export * from "./try_parse_range.js";
283
+ export * from "./is_range.js";
284
+ export * from "./can_parse.js";
285
+ export * from "./try_parse.js";
286
+ export * from "./format_range.js";
287
+ export * from "./equals.js";
288
+ export * from "./not_equals.js";
289
+ export * from "./greater_than.js";
290
+ export * from "./greater_or_equal.js";
291
+ export * from "./less_than.js";
292
+ export * from "./less_or_equal.js";
293
+ export const SEMVER_SPEC_VERSION = "2.0.0";
@@ -0,0 +1,8 @@
1
+ import type { SemVer } from "./types.js";
2
+ /**
3
+ * Not equal comparison
4
+ *
5
+ * This is equal to `compare(s0, s1) !== 0`.
6
+ */
7
+ export declare function notEquals(s0: SemVer, s1: SemVer): boolean;
8
+ //# 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/0.220.1/not_equals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAEzD"}
@@ -0,0 +1,9 @@
1
+ import { compare } from "./compare.js";
2
+ /**
3
+ * Not equal comparison
4
+ *
5
+ * This is equal to `compare(s0, s1) !== 0`.
6
+ */
7
+ export function notEquals(s0, s1) {
8
+ return compare(s0, s1) !== 0;
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { SemVer } from "./types.js";
2
+ /**
3
+ * Attempt to parse a string as a semantic version, returning either a `SemVer`
4
+ * object or throws a TypeError.
5
+ * @param version The version string to parse
6
+ * @returns A valid SemVer
7
+ */
8
+ export declare function parse(version: string): SemVer;
9
+ //# sourceMappingURL=parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/semver/0.220.1/parse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIzC;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAkC7C"}
@@ -0,0 +1,34 @@
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
+ * @param version The version string to parse
7
+ * @returns A valid SemVer
8
+ */
9
+ export function parse(version) {
10
+ if (typeof version !== "string") {
11
+ throw new TypeError(`version must be a string`);
12
+ }
13
+ if (version.length > MAX_LENGTH) {
14
+ throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
15
+ }
16
+ version = version.trim();
17
+ const groups = version.match(FULL_REGEXP)?.groups;
18
+ if (!groups)
19
+ throw new TypeError(`Invalid Version: ${version}`);
20
+ const major = parseNumber(groups.major, "Invalid major version");
21
+ const minor = parseNumber(groups.minor, "Invalid minor version");
22
+ const patch = parseNumber(groups.patch, "Invalid patch version");
23
+ const prerelease = groups.prerelease
24
+ ? parsePrerelease(groups.prerelease)
25
+ : [];
26
+ const build = groups.buildmetadata ? parseBuild(groups.buildmetadata) : [];
27
+ return {
28
+ major,
29
+ minor,
30
+ patch,
31
+ prerelease,
32
+ build,
33
+ };
34
+ }
@@ -0,0 +1,8 @@
1
+ import type { Range } from "./types.js";
2
+ /**
3
+ * Parses a range string into a Range object or throws a TypeError.
4
+ * @param range The range set string
5
+ * @returns A valid semantic range
6
+ */
7
+ export declare function parseRange(range: string): Range;
8
+ //# 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/0.220.1/parse_range.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAwB,KAAK,EAAE,MAAM,YAAY,CAAC;AAiX9D;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAM/C"}