@fedify/fedify 0.9.0-dev.177 → 0.9.0-dev.179

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 (249) hide show
  1. package/CHANGES.md +2 -0
  2. package/esm/deps/jsr.io/@std/encoding/{0.224.2 → 0.224.3}/base64.js +14 -7
  3. package/esm/deps/jsr.io/@std/encoding/{0.224.2 → 0.224.3}/hex.js +24 -7
  4. package/esm/deps/jsr.io/@std/semver/0.224.1/can_parse.js +30 -0
  5. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/compare.js +17 -0
  6. package/esm/deps/jsr.io/@std/semver/0.224.1/difference.js +37 -0
  7. package/esm/deps/jsr.io/@std/semver/0.224.1/equals.js +27 -0
  8. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/format.js +14 -1
  9. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/format_range.js +9 -1
  10. package/esm/deps/jsr.io/@std/semver/0.224.1/greater_or_equal.js +25 -0
  11. package/esm/deps/jsr.io/@std/semver/0.224.1/greater_than.js +27 -0
  12. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/greater_than_range.js +19 -1
  13. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/increment.js +18 -2
  14. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/is_range.js +10 -0
  15. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/is_semver.js +16 -0
  16. package/esm/deps/jsr.io/@std/semver/0.224.1/less_or_equal.js +25 -0
  17. package/esm/deps/jsr.io/@std/semver/0.224.1/less_than.js +25 -0
  18. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/less_than_range.js +21 -3
  19. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/max_satisfying.js +12 -0
  20. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/min_satisfying.js +12 -0
  21. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/mod.js +3 -2
  22. package/esm/deps/jsr.io/@std/semver/0.224.1/not_equals.js +24 -0
  23. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/parse.js +16 -0
  24. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/parse_range.js +18 -0
  25. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/range_intersects.js +16 -1
  26. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/range_max.js +16 -5
  27. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/range_min.js +16 -5
  28. package/esm/deps/jsr.io/@std/semver/0.224.1/satisfies.js +26 -0
  29. package/esm/deps/jsr.io/@std/semver/0.224.1/test_range.js +28 -0
  30. package/esm/deps/jsr.io/@std/semver/0.224.1/try_parse.js +30 -0
  31. package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/try_parse_range.js +16 -1
  32. package/esm/federation/collection.js +1 -1
  33. package/esm/federation/handler.js +1 -1
  34. package/esm/httpsig/mod.js +1 -1
  35. package/esm/nodeinfo/types.js +1 -1
  36. package/esm/runtime/key.js +1 -1
  37. package/esm/vocab/tombstone.yaml +20 -0
  38. package/esm/vocab/vocab.js +165 -0
  39. package/package.json +1 -1
  40. package/types/deps/jsr.io/@std/assert/0.225.3/assert.d.ts.map +1 -0
  41. package/types/deps/jsr.io/@std/assert/0.225.3/assertion_error.d.ts.map +1 -0
  42. package/types/deps/jsr.io/@std/encoding/{0.224.2/_util.d.ts → 0.224.3/_validate_binary_like.d.ts} +1 -1
  43. package/types/deps/jsr.io/@std/encoding/0.224.3/_validate_binary_like.d.ts.map +1 -0
  44. package/types/deps/jsr.io/@std/encoding/{0.224.2 → 0.224.3}/base64.d.ts +9 -4
  45. package/types/deps/jsr.io/@std/encoding/0.224.3/base64.d.ts.map +1 -0
  46. package/types/deps/jsr.io/@std/encoding/0.224.3/hex.d.ts +37 -0
  47. package/types/deps/jsr.io/@std/encoding/0.224.3/hex.d.ts.map +1 -0
  48. package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/common.d.ts.map +1 -1
  49. package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/encoding.d.ts.map +1 -1
  50. package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/language.d.ts.map +1 -1
  51. package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/media_type.d.ts.map +1 -1
  52. package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/negotiation.d.ts +27 -6
  53. package/types/deps/jsr.io/@std/http/0.224.2/negotiation.d.ts.map +1 -0
  54. package/types/deps/jsr.io/@std/semver/0.224.1/_constants.d.ts.map +1 -0
  55. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_shared.d.ts.map +1 -1
  56. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_test_comparator_set.d.ts.map +1 -1
  57. package/types/deps/jsr.io/@std/semver/0.224.1/can_parse.d.ts +17 -0
  58. package/types/deps/jsr.io/@std/semver/0.224.1/can_parse.d.ts.map +1 -0
  59. package/types/deps/jsr.io/@std/semver/0.224.1/compare.d.ts +28 -0
  60. package/types/deps/jsr.io/@std/semver/0.224.1/compare.d.ts.map +1 -0
  61. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/constants.d.ts.map +1 -1
  62. package/types/deps/jsr.io/@std/semver/0.224.1/difference.d.ts +27 -0
  63. package/types/deps/jsr.io/@std/semver/0.224.1/difference.d.ts.map +1 -0
  64. package/types/deps/jsr.io/@std/semver/0.224.1/equals.d.ts +24 -0
  65. package/types/deps/jsr.io/@std/semver/0.224.1/equals.d.ts.map +1 -0
  66. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/format.d.ts +14 -1
  67. package/types/deps/jsr.io/@std/semver/0.224.1/format.d.ts.map +1 -0
  68. package/types/deps/jsr.io/@std/semver/0.224.1/format_range.d.ts +17 -0
  69. package/types/deps/jsr.io/@std/semver/0.224.1/format_range.d.ts.map +1 -0
  70. package/types/deps/jsr.io/@std/semver/0.224.1/greater_or_equal.d.ts +24 -0
  71. package/types/deps/jsr.io/@std/semver/0.224.1/greater_or_equal.d.ts.map +1 -0
  72. package/types/deps/jsr.io/@std/semver/0.224.1/greater_than.d.ts +24 -0
  73. package/types/deps/jsr.io/@std/semver/0.224.1/greater_than.d.ts.map +1 -0
  74. package/types/deps/jsr.io/@std/semver/0.224.1/greater_than_range.d.ts +22 -0
  75. package/types/deps/jsr.io/@std/semver/0.224.1/greater_than_range.d.ts.map +1 -0
  76. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/increment.d.ts +18 -2
  77. package/types/deps/jsr.io/@std/semver/0.224.1/increment.d.ts.map +1 -0
  78. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/is_range.d.ts +10 -0
  79. package/types/deps/jsr.io/@std/semver/0.224.1/is_range.d.ts.map +1 -0
  80. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/is_semver.d.ts +16 -0
  81. package/types/deps/jsr.io/@std/semver/0.224.1/is_semver.d.ts.map +1 -0
  82. package/types/deps/jsr.io/@std/semver/0.224.1/less_or_equal.d.ts +24 -0
  83. package/types/deps/jsr.io/@std/semver/0.224.1/less_or_equal.d.ts.map +1 -0
  84. package/types/deps/jsr.io/@std/semver/0.224.1/less_than.d.ts +24 -0
  85. package/types/deps/jsr.io/@std/semver/0.224.1/less_than.d.ts.map +1 -0
  86. package/types/deps/jsr.io/@std/semver/0.224.1/less_than_range.d.ts +22 -0
  87. package/types/deps/jsr.io/@std/semver/0.224.1/less_than_range.d.ts.map +1 -0
  88. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/max_satisfying.d.ts +12 -0
  89. package/types/deps/jsr.io/@std/semver/0.224.1/max_satisfying.d.ts.map +1 -0
  90. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/min_satisfying.d.ts +12 -0
  91. package/types/deps/jsr.io/@std/semver/0.224.1/min_satisfying.d.ts.map +1 -0
  92. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/mod.d.ts +3 -2
  93. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/mod.d.ts.map +1 -1
  94. package/types/deps/jsr.io/@std/semver/0.224.1/not_equals.d.ts +23 -0
  95. package/types/deps/jsr.io/@std/semver/0.224.1/not_equals.d.ts.map +1 -0
  96. package/types/deps/jsr.io/@std/semver/0.224.1/parse.d.ts +25 -0
  97. package/types/deps/jsr.io/@std/semver/0.224.1/parse.d.ts.map +1 -0
  98. package/types/deps/jsr.io/@std/semver/0.224.1/parse_range.d.ts +26 -0
  99. package/types/deps/jsr.io/@std/semver/0.224.1/parse_range.d.ts.map +1 -0
  100. package/types/deps/jsr.io/@std/semver/0.224.1/range_intersects.d.ts +24 -0
  101. package/types/deps/jsr.io/@std/semver/0.224.1/range_intersects.d.ts.map +1 -0
  102. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/range_max.d.ts +16 -5
  103. package/types/deps/jsr.io/@std/semver/0.224.1/range_max.d.ts.map +1 -0
  104. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/range_min.d.ts +16 -5
  105. package/types/deps/jsr.io/@std/semver/0.224.1/range_min.d.ts.map +1 -0
  106. package/types/deps/jsr.io/@std/semver/0.224.1/satisfies.d.ts +24 -0
  107. package/types/deps/jsr.io/@std/semver/0.224.1/satisfies.d.ts.map +1 -0
  108. package/types/deps/jsr.io/@std/semver/0.224.1/test_range.d.ts +27 -0
  109. package/types/deps/jsr.io/@std/semver/0.224.1/test_range.d.ts.map +1 -0
  110. package/types/deps/jsr.io/@std/semver/0.224.1/try_parse.d.ts +21 -0
  111. package/types/deps/jsr.io/@std/semver/0.224.1/try_parse.d.ts.map +1 -0
  112. package/types/deps/jsr.io/@std/semver/0.224.1/try_parse_range.d.ts +23 -0
  113. package/types/deps/jsr.io/@std/semver/0.224.1/try_parse_range.d.ts.map +1 -0
  114. package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/types.d.ts +7 -2
  115. package/types/deps/jsr.io/@std/semver/0.224.1/types.d.ts.map +1 -0
  116. package/types/deps/jsr.io/@std/text/{0.224.0 → 0.224.1}/_util.d.ts.map +1 -1
  117. package/types/deps/jsr.io/@std/text/{0.224.0 → 0.224.1}/case.d.ts.map +1 -1
  118. package/types/deps/jsr.io/@std/text/0.224.1/closest_string.d.ts.map +1 -0
  119. package/types/deps/jsr.io/@std/text/0.224.1/compare_similarity.d.ts.map +1 -0
  120. package/types/deps/jsr.io/@std/text/{0.224.0 → 0.224.1}/levenshtein_distance.d.ts.map +1 -1
  121. package/types/deps/jsr.io/@std/text/0.224.1/mod.d.ts.map +1 -0
  122. package/types/deps/jsr.io/@std/text/0.224.1/word_similarity_sort.d.ts.map +1 -0
  123. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_dumper/dumper.d.ts.map +1 -1
  124. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_dumper/dumper_state.d.ts.map +1 -1
  125. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_error.d.ts.map +1 -1
  126. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_loader/loader.d.ts.map +1 -1
  127. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_loader/loader_state.d.ts.map +1 -1
  128. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_mark.d.ts.map +1 -1
  129. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_state.d.ts.map +1 -1
  130. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/binary.d.ts.map +1 -1
  131. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/bool.d.ts.map +1 -1
  132. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/float.d.ts.map +1 -1
  133. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/function.d.ts.map +1 -1
  134. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/int.d.ts.map +1 -1
  135. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/map.d.ts.map +1 -1
  136. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/merge.d.ts.map +1 -1
  137. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/mod.d.ts.map +1 -1
  138. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/nil.d.ts.map +1 -1
  139. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/omap.d.ts.map +1 -1
  140. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/pairs.d.ts.map +1 -1
  141. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/regexp.d.ts.map +1 -1
  142. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/seq.d.ts.map +1 -1
  143. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/set.d.ts.map +1 -1
  144. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/str.d.ts.map +1 -1
  145. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/timestamp.d.ts.map +1 -1
  146. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/_type/undefined.d.ts.map +1 -1
  147. package/types/deps/jsr.io/@std/yaml/0.224.1/_utils.d.ts.map +1 -0
  148. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/mod.d.ts.map +1 -1
  149. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/parse.d.ts.map +1 -1
  150. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema/core.d.ts.map +1 -1
  151. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema/default.d.ts.map +1 -1
  152. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema/extended.d.ts.map +1 -1
  153. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema/failsafe.d.ts.map +1 -1
  154. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema/json.d.ts.map +1 -1
  155. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema/mod.d.ts.map +1 -1
  156. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/schema.d.ts.map +1 -1
  157. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/stringify.d.ts.map +1 -1
  158. package/types/deps/jsr.io/@std/yaml/{0.224.0 → 0.224.1}/type.d.ts.map +1 -1
  159. package/types/nodeinfo/types.d.ts +1 -1
  160. package/types/vocab/vocab.d.ts +143 -0
  161. package/types/vocab/vocab.d.ts.map +1 -1
  162. package/esm/deps/jsr.io/@std/semver/0.224.0/can_parse.js +0 -15
  163. package/esm/deps/jsr.io/@std/semver/0.224.0/difference.js +0 -16
  164. package/esm/deps/jsr.io/@std/semver/0.224.0/equals.js +0 -11
  165. package/esm/deps/jsr.io/@std/semver/0.224.0/greater_or_equal.js +0 -9
  166. package/esm/deps/jsr.io/@std/semver/0.224.0/greater_than.js +0 -11
  167. package/esm/deps/jsr.io/@std/semver/0.224.0/less_or_equal.js +0 -9
  168. package/esm/deps/jsr.io/@std/semver/0.224.0/less_than.js +0 -9
  169. package/esm/deps/jsr.io/@std/semver/0.224.0/not_equals.js +0 -9
  170. package/esm/deps/jsr.io/@std/semver/0.224.0/satisfies.js +0 -11
  171. package/esm/deps/jsr.io/@std/semver/0.224.0/test_range.js +0 -13
  172. package/esm/deps/jsr.io/@std/semver/0.224.0/try_parse.js +0 -17
  173. package/types/deps/jsr.io/@std/encoding/0.224.2/_util.d.ts.map +0 -1
  174. package/types/deps/jsr.io/@std/encoding/0.224.2/base64.d.ts.map +0 -1
  175. package/types/deps/jsr.io/@std/encoding/0.224.2/hex.d.ts +0 -24
  176. package/types/deps/jsr.io/@std/encoding/0.224.2/hex.d.ts.map +0 -1
  177. package/types/deps/jsr.io/@std/http/0.224.1/negotiation.d.ts.map +0 -1
  178. package/types/deps/jsr.io/@std/semver/0.224.0/_constants.d.ts.map +0 -1
  179. package/types/deps/jsr.io/@std/semver/0.224.0/can_parse.d.ts +0 -2
  180. package/types/deps/jsr.io/@std/semver/0.224.0/can_parse.d.ts.map +0 -1
  181. package/types/deps/jsr.io/@std/semver/0.224.0/compare.d.ts +0 -11
  182. package/types/deps/jsr.io/@std/semver/0.224.0/compare.d.ts.map +0 -1
  183. package/types/deps/jsr.io/@std/semver/0.224.0/difference.d.ts +0 -6
  184. package/types/deps/jsr.io/@std/semver/0.224.0/difference.d.ts.map +0 -1
  185. package/types/deps/jsr.io/@std/semver/0.224.0/equals.d.ts +0 -8
  186. package/types/deps/jsr.io/@std/semver/0.224.0/equals.d.ts.map +0 -1
  187. package/types/deps/jsr.io/@std/semver/0.224.0/format.d.ts.map +0 -1
  188. package/types/deps/jsr.io/@std/semver/0.224.0/format_range.d.ts +0 -9
  189. package/types/deps/jsr.io/@std/semver/0.224.0/format_range.d.ts.map +0 -1
  190. package/types/deps/jsr.io/@std/semver/0.224.0/greater_or_equal.d.ts +0 -8
  191. package/types/deps/jsr.io/@std/semver/0.224.0/greater_or_equal.d.ts.map +0 -1
  192. package/types/deps/jsr.io/@std/semver/0.224.0/greater_than.d.ts +0 -8
  193. package/types/deps/jsr.io/@std/semver/0.224.0/greater_than.d.ts.map +0 -1
  194. package/types/deps/jsr.io/@std/semver/0.224.0/greater_than_range.d.ts +0 -4
  195. package/types/deps/jsr.io/@std/semver/0.224.0/greater_than_range.d.ts.map +0 -1
  196. package/types/deps/jsr.io/@std/semver/0.224.0/increment.d.ts.map +0 -1
  197. package/types/deps/jsr.io/@std/semver/0.224.0/is_range.d.ts.map +0 -1
  198. package/types/deps/jsr.io/@std/semver/0.224.0/is_semver.d.ts.map +0 -1
  199. package/types/deps/jsr.io/@std/semver/0.224.0/less_or_equal.d.ts +0 -8
  200. package/types/deps/jsr.io/@std/semver/0.224.0/less_or_equal.d.ts.map +0 -1
  201. package/types/deps/jsr.io/@std/semver/0.224.0/less_than.d.ts +0 -8
  202. package/types/deps/jsr.io/@std/semver/0.224.0/less_than.d.ts.map +0 -1
  203. package/types/deps/jsr.io/@std/semver/0.224.0/less_than_range.d.ts +0 -4
  204. package/types/deps/jsr.io/@std/semver/0.224.0/less_than_range.d.ts.map +0 -1
  205. package/types/deps/jsr.io/@std/semver/0.224.0/max_satisfying.d.ts.map +0 -1
  206. package/types/deps/jsr.io/@std/semver/0.224.0/min_satisfying.d.ts.map +0 -1
  207. package/types/deps/jsr.io/@std/semver/0.224.0/not_equals.d.ts +0 -8
  208. package/types/deps/jsr.io/@std/semver/0.224.0/not_equals.d.ts.map +0 -1
  209. package/types/deps/jsr.io/@std/semver/0.224.0/parse.d.ts +0 -9
  210. package/types/deps/jsr.io/@std/semver/0.224.0/parse.d.ts.map +0 -1
  211. package/types/deps/jsr.io/@std/semver/0.224.0/parse_range.d.ts +0 -8
  212. package/types/deps/jsr.io/@std/semver/0.224.0/parse_range.d.ts.map +0 -1
  213. package/types/deps/jsr.io/@std/semver/0.224.0/range_intersects.d.ts +0 -9
  214. package/types/deps/jsr.io/@std/semver/0.224.0/range_intersects.d.ts.map +0 -1
  215. package/types/deps/jsr.io/@std/semver/0.224.0/range_max.d.ts.map +0 -1
  216. package/types/deps/jsr.io/@std/semver/0.224.0/range_min.d.ts.map +0 -1
  217. package/types/deps/jsr.io/@std/semver/0.224.0/satisfies.d.ts +0 -9
  218. package/types/deps/jsr.io/@std/semver/0.224.0/satisfies.d.ts.map +0 -1
  219. package/types/deps/jsr.io/@std/semver/0.224.0/test_range.d.ts +0 -12
  220. package/types/deps/jsr.io/@std/semver/0.224.0/test_range.d.ts.map +0 -1
  221. package/types/deps/jsr.io/@std/semver/0.224.0/try_parse.d.ts +0 -8
  222. package/types/deps/jsr.io/@std/semver/0.224.0/try_parse.d.ts.map +0 -1
  223. package/types/deps/jsr.io/@std/semver/0.224.0/try_parse_range.d.ts +0 -8
  224. package/types/deps/jsr.io/@std/semver/0.224.0/try_parse_range.d.ts.map +0 -1
  225. package/types/deps/jsr.io/@std/semver/0.224.0/types.d.ts.map +0 -1
  226. package/types/deps/jsr.io/@std/text/0.224.0/closest_string.d.ts.map +0 -1
  227. package/types/deps/jsr.io/@std/text/0.224.0/compare_similarity.d.ts.map +0 -1
  228. package/types/deps/jsr.io/@std/text/0.224.0/mod.d.ts.map +0 -1
  229. package/types/deps/jsr.io/@std/text/0.224.0/word_similarity_sort.d.ts.map +0 -1
  230. package/types/deps/jsr.io/@std/yaml/0.224.0/_utils.d.ts.map +0 -1
  231. /package/esm/deps/jsr.io/@std/encoding/{0.224.2/_util.js → 0.224.3/_validate_binary_like.js} +0 -0
  232. /package/esm/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/common.js +0 -0
  233. /package/esm/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/encoding.js +0 -0
  234. /package/esm/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/language.js +0 -0
  235. /package/esm/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/media_type.js +0 -0
  236. /package/esm/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/negotiation.js +0 -0
  237. /package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_constants.js +0 -0
  238. /package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_shared.js +0 -0
  239. /package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_test_comparator_set.js +0 -0
  240. /package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/constants.js +0 -0
  241. /package/esm/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/types.js +0 -0
  242. /package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/common.d.ts +0 -0
  243. /package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/encoding.d.ts +0 -0
  244. /package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/language.d.ts +0 -0
  245. /package/types/deps/jsr.io/@std/http/{0.224.1 → 0.224.2}/_negotiation/media_type.d.ts +0 -0
  246. /package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_constants.d.ts +0 -0
  247. /package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_shared.d.ts +0 -0
  248. /package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/_test_comparator_set.d.ts +0 -0
  249. /package/types/deps/jsr.io/@std/semver/{0.224.0 → 0.224.1}/constants.d.ts +0 -0
@@ -57,9 +57,24 @@ function comparatorsSatisfiable(comparators) {
57
57
  }
58
58
  /**
59
59
  * The ranges intersect every range of AND comparators intersects with a least one range of OR ranges.
60
+ *
61
+ * @example Usage
62
+ * ```ts
63
+ * import { parseRange, rangeIntersects } from "@std/semver";
64
+ * import { assert, assertFalse } from "@std/assert";
65
+ *
66
+ * const r0 = parseRange(">=1.0.0 <2.0.0");
67
+ * const r1 = parseRange(">=1.0.0 <1.2.3");
68
+ * const r2 = parseRange(">=1.2.3 <2.0.0");
69
+ *
70
+ * assert(rangeIntersects(r0, r1));
71
+ * assert(rangeIntersects(r0, r2));
72
+ * assertFalse(rangeIntersects(r1, r2));
73
+ * ```
74
+ *
60
75
  * @param r0 range 0
61
76
  * @param r1 range 1
62
- * @returns returns true if any
77
+ * @returns returns true if the given ranges intersect, false otherwise
63
78
  */
64
79
  export function rangeIntersects(r0, r1) {
65
80
  return rangesSatisfiable([r0, r1]) &&
@@ -42,15 +42,26 @@ function comparatorMax(comparator) {
42
42
  }
43
43
  }
44
44
  /**
45
+ * The maximum valid SemVer for a given range or INVALID
46
+ *
47
+ * @example Usage
48
+ * ```ts
49
+ * import { parseRange } from "@std/semver/parse-range";
50
+ * import { rangeMax } from "@std/semver/range-max";
51
+ * import { equals } from "@std/semver/equals";
52
+ * import { assert } from "@std/assert/assert";
53
+ *
54
+ * assert(equals(rangeMax(parseRange(">1.0.0 <=2.0.0")), { major: 2, minor: 0, patch: 0 }));
55
+ * ```
56
+ *
57
+ * @param range The range to calculate the max for
58
+ * @returns A valid SemVer or INVALID
59
+ *
45
60
  * @deprecated This will be removed in 1.0.0. Use {@linkcode greaterThanRange} or
46
- * {@linkcode lessThanRange} for comparing ranges and semvers. The maximum
61
+ * {@linkcode lessThanRange} for comparing ranges and SemVers. The maximum
47
62
  * version of a range is often not well defined, and therefore this API
48
63
  * shouldn't be used. See
49
64
  * {@link https://github.com/denoland/deno_std/issues/4365} for details.
50
- *
51
- * The maximum valid SemVer for a given range or INVALID
52
- * @param range The range to calculate the max for
53
- * @returns A valid SemVer or INVALID
54
65
  */
55
66
  export function rangeMax(range) {
56
67
  let max;
@@ -33,15 +33,26 @@ function comparatorMin(comparator) {
33
33
  }
34
34
  }
35
35
  /**
36
+ * The minimum valid SemVer for a given range or INVALID
37
+ *
38
+ * @example Usage
39
+ * ```ts
40
+ * import { parseRange } from "@std/semver/parse-range";
41
+ * import { rangeMin } from "@std/semver/range-min";
42
+ * import { equals } from "@std/semver/equals";
43
+ * import { assert } from "@std/assert/assert";
44
+ *
45
+ * assert(equals(rangeMin(parseRange(">=1.0.0 <2.0.0")), { major: 1, minor: 0, patch: 0 }));
46
+ * ```
47
+ *
48
+ * @param range The range to calculate the min for
49
+ * @returns A valid SemVer or INVALID
50
+ *
36
51
  * @deprecated This will be removed in 1.0.0. Use {@linkcode greaterThanRange} or
37
- * {@linkcode lessThanRange} for comparing ranges and semvers. The minimum
52
+ * {@linkcode lessThanRange} for comparing ranges and SemVers. The minimum
38
53
  * version of a range is often not well defined, and therefore this API
39
54
  * shouldn't be used. See
40
55
  * {@link https://github.com/denoland/deno_std/issues/4365} for details.
41
- *
42
- * The minimum valid SemVer for a given range or INVALID
43
- * @param range The range to calculate the min for
44
- * @returns A valid SemVer or INVALID
45
56
  */
46
57
  export function rangeMin(range) {
47
58
  let min;
@@ -0,0 +1,26 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ import { testComparatorSet } from "./_test_comparator_set.js";
3
+ /**
4
+ * Test to see if the version satisfies the range.
5
+ *
6
+ * @example Usage
7
+ * ```ts
8
+ * import { parse, parseRange, satisfies } from "@std/semver";
9
+ * import { assert, assertFalse } from "@std/assert";
10
+ *
11
+ * const version = parse("1.2.3");
12
+ * const range0 = parseRange(">=1.0.0 <2.0.0");
13
+ * const range1 = parseRange(">=1.0.0 <1.3.0");
14
+ * const range2 = parseRange(">=1.0.0 <1.2.3");
15
+ *
16
+ * assert(satisfies(version, range0));
17
+ * assert(satisfies(version, range1));
18
+ * assertFalse(satisfies(version, range2));
19
+ * ```
20
+ * @param version The version to test
21
+ * @param range The range to check
22
+ * @returns true if the version is in the range
23
+ */
24
+ export function satisfies(version, range) {
25
+ return range.some((set) => testComparatorSet(version, set));
26
+ }
@@ -0,0 +1,28 @@
1
+ import { satisfies } from "./satisfies.js";
2
+ /**
3
+ * Test to see if the version satisfies the range.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { parse, parseRange, testRange } from "@std/semver";
8
+ * import { assert, assertFalse } from "@std/assert";
9
+ *
10
+ * const version = parse("1.2.3");
11
+ * const range0 = parseRange(">=1.0.0 <2.0.0");
12
+ * const range1 = parseRange(">=1.0.0 <1.3.0");
13
+ * const range2 = parseRange(">=1.0.0 <1.2.3");
14
+ *
15
+ * assert(testRange(version, range0));
16
+ * assert(testRange(version, range1));
17
+ * assertFalse(testRange(version, range2));
18
+ * ```
19
+ * @param version The version to test
20
+ * @param range The range to check
21
+ * @returns true if the version is in the range
22
+ *
23
+ * @deprecated This will be removed in 1.0.0. Use {@linkcode satisfies}
24
+ * instead. See https://github.com/denoland/deno_std/pull/4364.
25
+ */
26
+ export function testRange(version, range) {
27
+ return satisfies(version, range);
28
+ }
@@ -0,0 +1,30 @@
1
+ import { parse } from "./parse.js";
2
+ /**
3
+ * Returns the parsed version, or undefined if it's not valid.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { tryParse } from "@std/semver/try-parse";
8
+ * import { assertEquals } from "@std/assert/assert-equals";
9
+ *
10
+ * assertEquals(tryParse("1.2.3"), { major: 1, minor: 2, patch: 3, prerelease: [], build: [] });
11
+ * assertEquals(tryParse("1.2.3-alpha"), { major: 1, minor: 2, patch: 3, prerelease: ["alpha"], build: [] });
12
+ * assertEquals(tryParse("1.2.3+build"), { major: 1, minor: 2, patch: 3, prerelease: [], build: ["build"] });
13
+ * assertEquals(tryParse("1.2.3-alpha.1+build.1"), { major: 1, minor: 2, patch: 3, prerelease: ["alpha", 1], build: ["build", "1"] });
14
+ * assertEquals(tryParse(" invalid "), undefined);
15
+ * ```
16
+ *
17
+ * @param version The version string to parse
18
+ * @returns A valid SemVer or `undefined`
19
+ */
20
+ export function tryParse(version) {
21
+ if (version === undefined) {
22
+ return undefined;
23
+ }
24
+ try {
25
+ return parse(version);
26
+ }
27
+ catch {
28
+ return undefined;
29
+ }
30
+ }
@@ -2,7 +2,22 @@
2
2
  // This module is browser compatible.
3
3
  import { parseRange } from "./parse_range.js";
4
4
  /**
5
- * A tries to parse a valid Range string or returns undefined
5
+ * Parses the given range string and returns a Range object. If the range string
6
+ * is invalid, `undefined` is returned.
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { tryParseRange } from "@std/semver";
11
+ * import { assertEquals } from "@std/assert";
12
+ *
13
+ * assertEquals(tryParseRange(">=1.2.3 <1.2.4"), [
14
+ * [
15
+ * { operator: ">=", major: 1, minor: 2, patch: 3, prerelease: [], build: [] },
16
+ * { operator: "<", major: 1, minor: 2, patch: 4, prerelease: [], build: [] },
17
+ * ],
18
+ * ]);
19
+ * ```
20
+ *
6
21
  * @param range The range string
7
22
  * @returns A Range object if valid otherwise `undefined`
8
23
  */
@@ -1,5 +1,5 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
- import { encodeHex } from "../deps/jsr.io/@std/encoding/0.224.2/hex.js";
2
+ import { encodeHex } from "../deps/jsr.io/@std/encoding/0.224.3/hex.js";
3
3
  /**
4
4
  * Calculates the [partial follower collection digest][1].
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { accepts } from "../deps/jsr.io/@std/http/0.224.1/negotiation.js";
3
+ import { accepts } from "../deps/jsr.io/@std/http/0.224.2/negotiation.js";
4
4
  import { doesActorOwnKey, verify } from "../httpsig/mod.js";
5
5
  import { Activity, Link, Object, OrderedCollection, OrderedCollectionPage, } from "../vocab/vocab.js";
6
6
  export function acceptsJsonLd(request) {
@@ -7,7 +7,7 @@
7
7
  import * as dntShim from "../_dnt.shims.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { equals } from "../deps/jsr.io/@std/bytes/0.224.0/mod.js";
10
- import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.2/base64.js";
10
+ import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
11
11
  import { fetchDocumentLoader, } from "../runtime/docloader.js";
12
12
  import { isActor } from "../vocab/actor.js";
13
13
  import { CryptographicKey, Object as ASObject, } from "../vocab/vocab.js";
@@ -1,4 +1,4 @@
1
- import { format } from "../deps/jsr.io/@std/semver/0.224.0/mod.js";
1
+ import { format } from "../deps/jsr.io/@std/semver/0.224.1/mod.js";
2
2
  /**
3
3
  * Converts a {@link NodeInfo} object to a JSON value.
4
4
  * @param nodeInfo The {@link NodeInfo} object to convert.
@@ -1,5 +1,5 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
- import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.2/base64.js";
2
+ import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
3
3
  /**
4
4
  * Imports a PEM-SPKI formatted public key.
5
5
  * @param pem The PEM-SPKI formatted public key.
@@ -0,0 +1,20 @@
1
+ $schema: ../codegen/schema.yaml
2
+ name: Tombstone
3
+ uri: "https://www.w3.org/ns/activitystreams#Tombstone"
4
+ extends: "https://www.w3.org/ns/activitystreams#Object"
5
+ entity: true
6
+ description: |
7
+ A `Tombstone` represents a content object that has been deleted.
8
+ It can be used in {@link Collection}s to signify that there used to be
9
+ an object at this position, but it has been deleted.
10
+ defaultContext: "https://www.w3.org/ns/activitystreams"
11
+
12
+ properties:
13
+ - singularName: deleted
14
+ functional: true
15
+ uri: "https://www.w3.org/ns/activitystreams#deleted"
16
+ description: |
17
+ On a `Tombstone` object, the `deleted` property is a timestamp for when
18
+ the object was deleted.
19
+ range:
20
+ - "http://www.w3.org/2001/XMLSchema#dateTime"
@@ -2151,6 +2151,10 @@ export class Object {
2151
2151
  delete values["@type"];
2152
2152
  return await Service.fromJsonLd(values, options);
2153
2153
  }
2154
+ if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Tombstone")) {
2155
+ delete values["@type"];
2156
+ return await Tombstone.fromJsonLd(values, options);
2157
+ }
2154
2158
  if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Object")) {
2155
2159
  throw new TypeError("Invalid type: " + values["@type"]);
2156
2160
  }
@@ -2208,6 +2212,7 @@ export class Object {
2208
2212
  "https://www.w3.org/ns/activitystreams#Profile",
2209
2213
  "https://www.w3.org/ns/activitystreams#Relationship",
2210
2214
  "https://www.w3.org/ns/activitystreams#Service",
2215
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2211
2216
  ].some((t) => v["@type"].includes(t))
2212
2217
  ? await _a.fromJsonLd(v, options)
2213
2218
  : typeof v === "object" && "@type" in v &&
@@ -2344,6 +2349,7 @@ export class Object {
2344
2349
  "https://www.w3.org/ns/activitystreams#Profile",
2345
2350
  "https://www.w3.org/ns/activitystreams#Relationship",
2346
2351
  "https://www.w3.org/ns/activitystreams#Service",
2352
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2347
2353
  ].some((t) => v["@type"].includes(t))
2348
2354
  ? await _a.fromJsonLd(v, options)
2349
2355
  : typeof v === "object" && "@type" in v &&
@@ -2435,6 +2441,7 @@ export class Object {
2435
2441
  "https://www.w3.org/ns/activitystreams#Profile",
2436
2442
  "https://www.w3.org/ns/activitystreams#Relationship",
2437
2443
  "https://www.w3.org/ns/activitystreams#Service",
2444
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2438
2445
  ].some((t) => v["@type"].includes(t))
2439
2446
  ? await _a.fromJsonLd(v, options)
2440
2447
  : typeof v === "object" && "@type" in v &&
@@ -2526,6 +2533,7 @@ export class Object {
2526
2533
  "https://www.w3.org/ns/activitystreams#Profile",
2527
2534
  "https://www.w3.org/ns/activitystreams#Relationship",
2528
2535
  "https://www.w3.org/ns/activitystreams#Service",
2536
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2529
2537
  ].some((t) => v["@type"].includes(t))
2530
2538
  ? await _a.fromJsonLd(v, options)
2531
2539
  : typeof v === "object" && "@type" in v &&
@@ -2593,6 +2601,7 @@ export class Object {
2593
2601
  "https://www.w3.org/ns/activitystreams#Profile",
2594
2602
  "https://www.w3.org/ns/activitystreams#Relationship",
2595
2603
  "https://www.w3.org/ns/activitystreams#Service",
2604
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2596
2605
  ].some((t) => v["@type"].includes(t))
2597
2606
  ? await _a.fromJsonLd(v, options)
2598
2607
  : typeof v === "object" && "@type" in v &&
@@ -2668,6 +2677,7 @@ export class Object {
2668
2677
  "https://www.w3.org/ns/activitystreams#Profile",
2669
2678
  "https://www.w3.org/ns/activitystreams#Relationship",
2670
2679
  "https://www.w3.org/ns/activitystreams#Service",
2680
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2671
2681
  ].some((t) => v["@type"].includes(t))
2672
2682
  ? await _a.fromJsonLd(v, options)
2673
2683
  : undefined;
@@ -2770,6 +2780,7 @@ export class Object {
2770
2780
  "https://www.w3.org/ns/activitystreams#Profile",
2771
2781
  "https://www.w3.org/ns/activitystreams#Relationship",
2772
2782
  "https://www.w3.org/ns/activitystreams#Service",
2783
+ "https://www.w3.org/ns/activitystreams#Tombstone",
2773
2784
  ].some((t) => v["@type"].includes(t))
2774
2785
  ? await _a.fromJsonLd(v, options)
2775
2786
  : typeof v === "object" && "@type" in v &&
@@ -7058,6 +7069,7 @@ export class Collection extends Object {
7058
7069
  "https://www.w3.org/ns/activitystreams#Profile",
7059
7070
  "https://www.w3.org/ns/activitystreams#Relationship",
7060
7071
  "https://www.w3.org/ns/activitystreams#Service",
7072
+ "https://www.w3.org/ns/activitystreams#Tombstone",
7061
7073
  ].some((t) => v["@type"].includes(t))
7062
7074
  ? await Object.fromJsonLd(v, options)
7063
7075
  : typeof v === "object" && "@type" in v &&
@@ -10246,6 +10258,7 @@ export class Link {
10246
10258
  "https://www.w3.org/ns/activitystreams#Profile",
10247
10259
  "https://www.w3.org/ns/activitystreams#Relationship",
10248
10260
  "https://www.w3.org/ns/activitystreams#Service",
10261
+ "https://www.w3.org/ns/activitystreams#Tombstone",
10249
10262
  ].some((t) => v["@type"].includes(t))
10250
10263
  ? await Object.fromJsonLd(v, options)
10251
10264
  : undefined;
@@ -15912,6 +15925,158 @@ export class Service extends Object {
15912
15925
  return "Service " + inspect(proxy, options);
15913
15926
  }
15914
15927
  }
15928
+ /** A `Tombstone` represents a content object that has been deleted.
15929
+ * It can be used in {@link Collection}s to signify that there used to be
15930
+ * an object at this position, but it has been deleted.
15931
+ */
15932
+ export class Tombstone extends Object {
15933
+ /**
15934
+ * The type URI of {@link Tombstone}: `https://www.w3.org/ns/activitystreams#Tombstone`.
15935
+ */
15936
+ static get typeId() {
15937
+ return new URL("https://www.w3.org/ns/activitystreams#Tombstone");
15938
+ }
15939
+ #_8g8g4LiVMhFTXskuDEqx4ascxUr = [];
15940
+ /**
15941
+ * Constructs a new instance of Tombstone with the given values.
15942
+ * @param values The values to initialize the instance with.
15943
+ * @param options The options to use for initialization.
15944
+ */
15945
+ constructor(values, { documentLoader, contextLoader, } = {}) {
15946
+ super(values, { documentLoader, contextLoader });
15947
+ if ("deleted" in values && values.deleted != null) {
15948
+ this.#_8g8g4LiVMhFTXskuDEqx4ascxUr = [values.deleted];
15949
+ }
15950
+ }
15951
+ /**
15952
+ * Clones this instance, optionally updating it with the given values.
15953
+ * @param values The values to update the clone with.
15954
+ * @options The options to use for cloning.
15955
+ * @returns The cloned instance.
15956
+ */
15957
+ clone(values = {}, options = {}) {
15958
+ const clone = super.clone(values, options);
15959
+ clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr;
15960
+ if ("deleted" in values && values.deleted != null) {
15961
+ clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr = [values.deleted];
15962
+ }
15963
+ return clone;
15964
+ }
15965
+ /** On a `Tombstone` object, the `deleted` property is a timestamp for when
15966
+ * the object was deleted.
15967
+ */
15968
+ get deleted() {
15969
+ if (this.#_8g8g4LiVMhFTXskuDEqx4ascxUr.length < 1)
15970
+ return null;
15971
+ return this.#_8g8g4LiVMhFTXskuDEqx4ascxUr[0];
15972
+ }
15973
+ /**
15974
+ * Converts this object to a JSON-LD structure.
15975
+ * @returns The JSON-LD representation of this object.
15976
+ */
15977
+ async toJsonLd(options = {}) {
15978
+ options = {
15979
+ ...options,
15980
+ contextLoader: options.contextLoader ?? fetchDocumentLoader,
15981
+ };
15982
+ // deno-lint-ignore no-unused-vars prefer-const
15983
+ let array;
15984
+ const baseValues = await super.toJsonLd({
15985
+ ...options,
15986
+ expand: true,
15987
+ });
15988
+ const values = baseValues[0];
15989
+ array = [];
15990
+ for (const v of this.#_8g8g4LiVMhFTXskuDEqx4ascxUr) {
15991
+ array.push({
15992
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
15993
+ "@value": v.toString(),
15994
+ });
15995
+ }
15996
+ if (array.length > 0) {
15997
+ values["https://www.w3.org/ns/activitystreams#deleted"] = array;
15998
+ }
15999
+ values["@type"] = ["https://www.w3.org/ns/activitystreams#Tombstone"];
16000
+ if (this.id)
16001
+ values["@id"] = this.id.href;
16002
+ if (options.expand) {
16003
+ return await jsonld.expand(values, { documentLoader: options.contextLoader });
16004
+ }
16005
+ return await jsonld.compact(values, "https://www.w3.org/ns/activitystreams", { documentLoader: options.contextLoader });
16006
+ }
16007
+ /**
16008
+ * Converts a JSON-LD structure to an object of this type.
16009
+ * @param json The JSON-LD structure to convert.
16010
+ * @returns The object of this type.
16011
+ * @throws {TypeError} If the given `json` is invalid.
16012
+ */
16013
+ static async fromJsonLd(json, options = {}) {
16014
+ if (typeof json === "undefined") {
16015
+ throw new TypeError("Invalid JSON-LD: undefined.");
16016
+ }
16017
+ else if (json === null)
16018
+ throw new TypeError("Invalid JSON-LD: null.");
16019
+ options = {
16020
+ ...options,
16021
+ documentLoader: options.documentLoader ?? fetchDocumentLoader,
16022
+ contextLoader: options.contextLoader ?? fetchDocumentLoader,
16023
+ };
16024
+ // deno-lint-ignore no-explicit-any
16025
+ let values;
16026
+ if (globalThis.Object.keys(json).length == 0) {
16027
+ values = {};
16028
+ }
16029
+ else {
16030
+ const expanded = await jsonld.expand(json, {
16031
+ documentLoader: options.contextLoader,
16032
+ keepFreeFloatingNodes: true,
16033
+ });
16034
+ values =
16035
+ // deno-lint-ignore no-explicit-any
16036
+ (expanded[0] ?? {});
16037
+ }
16038
+ if ("@type" in values) {
16039
+ if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Tombstone")) {
16040
+ throw new TypeError("Invalid type: " + values["@type"]);
16041
+ }
16042
+ }
16043
+ const instance = await super.fromJsonLd(values, options);
16044
+ if (!(instance instanceof Tombstone)) {
16045
+ throw new TypeError("Unexpected type: " + instance.constructor.name);
16046
+ }
16047
+ const _8g8g4LiVMhFTXskuDEqx4ascxUr = [];
16048
+ for (const v of values["https://www.w3.org/ns/activitystreams#deleted"] ?? []) {
16049
+ if (v == null)
16050
+ continue;
16051
+ _8g8g4LiVMhFTXskuDEqx4ascxUr.push(dntShim.Temporal.Instant.from(v["@value"]));
16052
+ }
16053
+ instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr = _8g8g4LiVMhFTXskuDEqx4ascxUr;
16054
+ return instance;
16055
+ }
16056
+ _getCustomInspectProxy() {
16057
+ const proxy = super._getCustomInspectProxy();
16058
+ const _8g8g4LiVMhFTXskuDEqx4ascxUr = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr
16059
+ // deno-lint-ignore no-explicit-any
16060
+ .map((v) => v instanceof URL
16061
+ ? {
16062
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
16063
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
16064
+ }
16065
+ : v);
16066
+ if (_8g8g4LiVMhFTXskuDEqx4ascxUr.length == 1) {
16067
+ proxy.deleted = _8g8g4LiVMhFTXskuDEqx4ascxUr[0];
16068
+ }
16069
+ return proxy;
16070
+ }
16071
+ [Symbol.for("Deno.customInspect")](inspect, options) {
16072
+ const proxy = this._getCustomInspectProxy();
16073
+ return "Tombstone " + inspect(proxy, options);
16074
+ }
16075
+ [Symbol.for("nodejs.util.inspect.custom")](_depth, options, inspect) {
16076
+ const proxy = this._getCustomInspectProxy();
16077
+ return "Tombstone " + inspect(proxy, options);
16078
+ }
16079
+ }
15915
16080
  /** Indicates that the `actor` is undoing the `object`. In most cases,
15916
16081
  * the `object` will be an {@link Activity} describing some previously performed
15917
16082
  * action (for instance, a person may have previously "liked" an article but,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.9.0-dev.177+a1fe6aa8",
3
+ "version": "0.9.0-dev.179+b03181c1",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.225.3/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.225.3/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,iCAAiC;gBACrB,OAAO,EAAE,MAAM;CAI5B"}
@@ -1,2 +1,2 @@
1
1
  export declare function validateBinaryLike(source: unknown): Uint8Array;
2
- //# sourceMappingURL=_util.d.ts.map
2
+ //# sourceMappingURL=_validate_binary_like.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
@@ -6,11 +6,12 @@
6
6
  * @param data The data to encode.
7
7
  * @returns The base64-encoded string.
8
8
  *
9
- * @example
9
+ * @example Usage
10
10
  * ```ts
11
11
  * import { encodeBase64 } from "@std/encoding/base64";
12
+ * import { assertEquals } from "@std/assert/assert-equals";
12
13
  *
13
- * encodeBase64("foobar"); // "Zm9vYmFy"
14
+ * assertEquals(encodeBase64("foobar"), "Zm9vYmFy");
14
15
  * ```
15
16
  */
16
17
  export declare function encodeBase64(data: ArrayBuffer | Uint8Array | string): string;
@@ -22,11 +23,15 @@ export declare function encodeBase64(data: ArrayBuffer | Uint8Array | string): s
22
23
  * @param b64 The base64-encoded string to decode.
23
24
  * @returns The decoded data.
24
25
  *
25
- * @example
26
+ * @example Usage
26
27
  * ```ts
27
28
  * import { decodeBase64 } from "@std/encoding/base64";
29
+ * import { assertEquals } from "@std/assert/assert-equals";
28
30
  *
29
- * decodeBase64("Zm9vYmFy"); // Uint8Array(6) [ 102, 111, 111, 98, 97, 114 ]
31
+ * assertEquals(
32
+ * decodeBase64("Zm9vYmFy"),
33
+ * new TextEncoder().encode("foobar")
34
+ * );
30
35
  * ```
31
36
  */
32
37
  export declare function decodeBase64(b64: string): Uint8Array;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/base64.ts"],"names":[],"mappings":"AA+FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Converts data into a hex-encoded string.
3
+ *
4
+ * @param src The data to encode.
5
+ *
6
+ * @returns The hex-encoded string.
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { encodeHex } from "@std/encoding/hex";
11
+ * import { assertEquals } from "@std/assert/assert-equals";
12
+ *
13
+ * assertEquals(encodeHex("abc"), "616263");
14
+ * ```
15
+ */
16
+ export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): string;
17
+ /**
18
+ * Decodes the given hex-encoded string. If the input is malformed, an error is
19
+ * thrown.
20
+ *
21
+ * @param src The hex-encoded string to decode.
22
+ *
23
+ * @returns The decoded data.
24
+ *
25
+ * @example Usage
26
+ * ```ts
27
+ * import { decodeHex } from "@std/encoding/hex";
28
+ * import { assertEquals } from "@std/assert/assert-equals";
29
+ *
30
+ * assertEquals(
31
+ * decodeHex("616263"),
32
+ * new TextEncoder().encode("abc"),
33
+ * );
34
+ * ```
35
+ */
36
+ export declare function decodeHex(src: string): Uint8Array;
37
+ //# sourceMappingURL=hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/0.224.3/hex.ts"],"names":[],"mappings":"AAwDA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAUxE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAiBjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.1/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.2/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.1/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA4GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
1
+ {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.2/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA4GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.1/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
1
+ {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.2/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.1/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
1
+ {"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/0.224.2/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}