@fedify/fedify 1.5.0 → 1.5.2

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 (120) hide show
  1. package/CHANGES.md +139 -0
  2. package/README.md +5 -1
  3. package/SPONSORS.md +6 -1
  4. package/esm/deno.js +1 -1
  5. package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_constants.js +0 -10
  6. package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/satisfies.js +1 -0
  7. package/esm/federation/handler.js +1 -1
  8. package/esm/nodeinfo/client.js +1 -1
  9. package/esm/nodeinfo/mod.js +1 -1
  10. package/esm/nodeinfo/types.js +1 -1
  11. package/esm/sig/key.js +4 -1
  12. package/esm/vocab/undo.yaml +4 -0
  13. package/esm/vocab/vocab.js +338 -184
  14. package/package.json +1 -1
  15. package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/common.d.ts.map +1 -1
  16. package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/encoding.d.ts.map +1 -1
  17. package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/language.d.ts.map +1 -1
  18. package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/media_type.d.ts.map +1 -1
  19. package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/negotiation.d.ts.map +1 -1
  20. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_constants.d.ts +0 -4
  21. package/types/deps/jsr.io/@std/semver/1.0.5/_constants.d.ts.map +1 -0
  22. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_shared.d.ts.map +1 -1
  23. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_test_comparator_set.d.ts.map +1 -1
  24. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/can_parse.d.ts.map +1 -1
  25. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/compare.d.ts.map +1 -1
  26. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/difference.d.ts.map +1 -1
  27. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/equals.d.ts.map +1 -1
  28. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
  29. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/format_range.d.ts.map +1 -1
  30. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_or_equal.d.ts.map +1 -1
  31. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_than.d.ts.map +1 -1
  32. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_than_range.d.ts.map +1 -1
  33. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/increment.d.ts.map +1 -1
  34. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/is_range.d.ts.map +1 -1
  35. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/is_semver.d.ts.map +1 -1
  36. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_or_equal.d.ts.map +1 -1
  37. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_than.d.ts.map +1 -1
  38. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_than_range.d.ts.map +1 -1
  39. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/max_satisfying.d.ts.map +1 -1
  40. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/min_satisfying.d.ts.map +1 -1
  41. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/mod.d.ts.map +1 -1
  42. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/not_equals.d.ts.map +1 -1
  43. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/parse.d.ts.map +1 -1
  44. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/parse_range.d.ts.map +1 -1
  45. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/range_intersects.d.ts.map +1 -1
  46. package/types/deps/jsr.io/@std/semver/1.0.5/satisfies.d.ts.map +1 -0
  47. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/try_parse.d.ts.map +1 -1
  48. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/try_parse_range.d.ts.map +1 -1
  49. package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
  50. package/types/nodeinfo/mod.d.ts +1 -1
  51. package/types/nodeinfo/types.d.ts +1 -1
  52. package/types/sig/key.d.ts.map +1 -1
  53. package/types/vocab/vocab.d.ts.map +1 -1
  54. package/types/deps/jsr.io/@std/semver/1.0.4/_constants.d.ts.map +0 -1
  55. package/types/deps/jsr.io/@std/semver/1.0.4/satisfies.d.ts.map +0 -1
  56. /package/esm/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/common.js +0 -0
  57. /package/esm/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/encoding.js +0 -0
  58. /package/esm/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/language.js +0 -0
  59. /package/esm/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/media_type.js +0 -0
  60. /package/esm/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/negotiation.js +0 -0
  61. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_shared.js +0 -0
  62. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_test_comparator_set.js +0 -0
  63. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/can_parse.js +0 -0
  64. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/compare.js +0 -0
  65. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/difference.js +0 -0
  66. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/equals.js +0 -0
  67. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/format.js +0 -0
  68. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/format_range.js +0 -0
  69. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_or_equal.js +0 -0
  70. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_than.js +0 -0
  71. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_than_range.js +0 -0
  72. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/increment.js +0 -0
  73. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/is_range.js +0 -0
  74. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/is_semver.js +0 -0
  75. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_or_equal.js +0 -0
  76. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_than.js +0 -0
  77. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_than_range.js +0 -0
  78. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/max_satisfying.js +0 -0
  79. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/min_satisfying.js +0 -0
  80. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/mod.js +0 -0
  81. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/not_equals.js +0 -0
  82. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/parse.js +0 -0
  83. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/parse_range.js +0 -0
  84. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/range_intersects.js +0 -0
  85. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/try_parse.js +0 -0
  86. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/try_parse_range.js +0 -0
  87. /package/esm/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/types.js +0 -0
  88. /package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/common.d.ts +0 -0
  89. /package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/encoding.d.ts +0 -0
  90. /package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/language.d.ts +0 -0
  91. /package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/_negotiation/media_type.d.ts +0 -0
  92. /package/types/deps/jsr.io/@std/http/{1.0.13 → 1.0.15}/negotiation.d.ts +0 -0
  93. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_shared.d.ts +0 -0
  94. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/_test_comparator_set.d.ts +0 -0
  95. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/can_parse.d.ts +0 -0
  96. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/compare.d.ts +0 -0
  97. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/difference.d.ts +0 -0
  98. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/equals.d.ts +0 -0
  99. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/format.d.ts +0 -0
  100. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/format_range.d.ts +0 -0
  101. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_or_equal.d.ts +0 -0
  102. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_than.d.ts +0 -0
  103. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/greater_than_range.d.ts +0 -0
  104. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/increment.d.ts +0 -0
  105. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/is_range.d.ts +0 -0
  106. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/is_semver.d.ts +0 -0
  107. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_or_equal.d.ts +0 -0
  108. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_than.d.ts +0 -0
  109. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/less_than_range.d.ts +0 -0
  110. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/max_satisfying.d.ts +0 -0
  111. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/min_satisfying.d.ts +0 -0
  112. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/mod.d.ts +0 -0
  113. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/not_equals.d.ts +0 -0
  114. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/parse.d.ts +0 -0
  115. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/parse_range.d.ts +0 -0
  116. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/range_intersects.d.ts +0 -0
  117. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/satisfies.d.ts +0 -0
  118. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/try_parse.d.ts +0 -0
  119. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/try_parse_range.d.ts +0 -0
  120. /package/types/deps/jsr.io/@std/semver/{1.0.4 → 1.0.5}/types.d.ts +0 -0
package/CHANGES.md CHANGED
@@ -3,6 +3,43 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.5.2
7
+ -------------
8
+
9
+ Released on May 11, 2025.
10
+
11
+ - Fixed the `fedify init` command to install the correct version of
12
+ *@fedify/express* package. [[#230], [#231] by Emelia Smith]
13
+
14
+ - The `exportJwk()` function now populates the `alg` property of a returned
15
+ `JsonWebKey` object with `"Ed25519"` if the input key is an Ed25519 key.
16
+
17
+ [#230]: https://github.com/fedify-dev/fedify/issues/230
18
+ [#231]: https://github.com/fedify-dev/fedify/pull/231
19
+
20
+
21
+ Version 1.5.1
22
+ -------------
23
+
24
+ Released on April 8, 2025.
25
+
26
+ - Activity Vocabulary API became to accept [RFC 3339] date-time strings
27
+ without a timezone offset. This is not a bug fix, but improves
28
+ interoperability with some implementations that do not include a timezone
29
+ offset in their date-time strings including WordPress. [[#226]]
30
+
31
+ - Added the following default context to `Undo` class:
32
+
33
+ ~~~~ json
34
+ {
35
+ "litepub": "http://litepub.social/ns#",
36
+ "toot": "http://joinmastodon.org/ns#",
37
+ "EmojiReact": "litepub:EmojiReact",
38
+ "Emoji": "toot:Emoji"
39
+ }
40
+ ~~~~
41
+
42
+
6
43
  Version 1.5.0
7
44
  -------------
8
45
 
@@ -115,6 +152,28 @@ Released on March 28, 2025.
115
152
  [multibase]: https://github.com/multiformats/js-multibase
116
153
 
117
154
 
155
+ Version 1.4.10
156
+ --------------
157
+
158
+ Released on April 8, 2025.
159
+
160
+ - Activity Vocabulary API became to accept [RFC 3339] date-time strings
161
+ without a timezone offset. This is not a bug fix, but improves
162
+ interoperability with some implementations that do not include a timezone
163
+ offset in their date-time strings including WordPress. [[#226]]
164
+
165
+ - Added the following default context to `Undo` class:
166
+
167
+ ~~~~ json
168
+ {
169
+ "litepub": "http://litepub.social/ns#",
170
+ "toot": "http://joinmastodon.org/ns#",
171
+ "EmojiReact": "litepub:EmojiReact",
172
+ "Emoji": "toot:Emoji"
173
+ }
174
+ ~~~~
175
+
176
+
118
177
  Version 1.4.9
119
178
  -------------
120
179
 
@@ -317,6 +376,28 @@ Released on February 5, 2025.
317
376
  [#195]: https://github.com/fedify-dev/fedify/issues/195
318
377
 
319
378
 
379
+ Version 1.3.17
380
+ --------------
381
+
382
+ Released on April 8, 2025.
383
+
384
+ - Activity Vocabulary API became to accept [RFC 3339] date-time strings
385
+ without a timezone offset. This is not a bug fix, but improves
386
+ interoperability with some implementations that do not include a timezone
387
+ offset in their date-time strings including WordPress. [[#226]]
388
+
389
+ - Added the following default context to `Undo` class:
390
+
391
+ ~~~~ json
392
+ {
393
+ "litepub": "http://litepub.social/ns#",
394
+ "toot": "http://joinmastodon.org/ns#",
395
+ "EmojiReact": "litepub:EmojiReact",
396
+ "Emoji": "toot:Emoji"
397
+ }
398
+ ~~~~
399
+
400
+
320
401
  Version 1.3.16
321
402
  --------------
322
403
 
@@ -635,6 +716,28 @@ Released on November 30, 2024.
635
716
  [#193]: https://github.com/fedify-dev/fedify/issues/193
636
717
 
637
718
 
719
+ Version 1.2.21
720
+ --------------
721
+
722
+ Released on April 8, 2025.
723
+
724
+ - Activity Vocabulary API became to accept [RFC 3339] date-time strings
725
+ without a timezone offset. This is not a bug fix, but improves
726
+ interoperability with some implementations that do not include a timezone
727
+ offset in their date-time strings including WordPress. [[#226]]
728
+
729
+ - Added the following default context to `Undo` class:
730
+
731
+ ~~~~ json
732
+ {
733
+ "litepub": "http://litepub.social/ns#",
734
+ "toot": "http://joinmastodon.org/ns#",
735
+ "EmojiReact": "litepub:EmojiReact",
736
+ "Emoji": "toot:Emoji"
737
+ }
738
+ ~~~~
739
+
740
+
638
741
  Version 1.2.20
639
742
  --------------
640
743
 
@@ -1001,6 +1104,28 @@ Released on October 31, 2024.
1001
1104
  [#118]: https://github.com/fedify-dev/fedify/issues/118
1002
1105
 
1003
1106
 
1107
+ Version 1.1.21
1108
+ --------------
1109
+
1110
+ Released on April 8, 2025.
1111
+
1112
+ - Activity Vocabulary API became to accept [RFC 3339] date-time strings
1113
+ without a timezone offset. This is not a bug fix, but improves
1114
+ interoperability with some implementations that do not include a timezone
1115
+ offset in their date-time strings including WordPress. [[#226]]
1116
+
1117
+ - Added the following default context to `Undo` class:
1118
+
1119
+ ~~~~ json
1120
+ {
1121
+ "litepub": "http://litepub.social/ns#",
1122
+ "toot": "http://joinmastodon.org/ns#",
1123
+ "EmojiReact": "litepub:EmojiReact",
1124
+ "Emoji": "toot:Emoji"
1125
+ }
1126
+ ~~~~
1127
+
1128
+
1004
1129
  Version 1.1.20
1005
1130
  --------------
1006
1131
 
@@ -1408,6 +1533,20 @@ Released on October 20, 2024.
1408
1533
  [#150]: https://github.com/fedify-dev/fedify/issues/150
1409
1534
 
1410
1535
 
1536
+ Version 1.0.24
1537
+ --------------
1538
+
1539
+ Released on April 8, 2025.
1540
+
1541
+ - Activity Vocabulary API became to accept [RFC 3339] date-time strings
1542
+ without a timezone offset. This is not a bug fix, but improves
1543
+ interoperability with some implementations that do not include a timezone
1544
+ offset in their date-time strings including WordPress. [[#226]]
1545
+
1546
+ [RFC 3339]: https://datatracker.ietf.org/doc/html/rfc3339
1547
+ [#226]: https://github.com/fedify-dev/fedify/issues/226
1548
+
1549
+
1411
1550
  Version 1.0.23
1412
1551
  --------------
1413
1552
 
package/README.md CHANGED
@@ -92,6 +92,10 @@ financial contributors:[^2]
92
92
  <!-- cSpell: disable -->
93
93
  <!-- DO NOT EDIT(h3): this section is automatically generated by the script -->
94
94
 
95
+ ### Corporate sponsors
96
+
97
+ - [<img src="https://images.opencollective.com/ghost/avatar/128.png" width="64" height="64"> Ghost](https://ghost.org)
98
+
95
99
  ### Supporters
96
100
 
97
101
  - [Daniel Supernault](https://pixelfed.org/)
@@ -100,7 +104,7 @@ financial contributors:[^2]
100
104
 
101
105
  ### Backers
102
106
 
103
- yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
107
+ yamanoku, taye, Encyclia, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
104
108
 
105
109
  ### One-time donations
106
110
 
package/SPONSORS.md CHANGED
@@ -10,6 +10,11 @@ financial contributors:[^1]
10
10
  <!-- cSpell: disable -->
11
11
  <!-- DO NOT EDIT(h2): this section is automatically generated by the script -->
12
12
 
13
+ Corporate sponsors
14
+ ------------------
15
+
16
+ - [<img src="https://images.opencollective.com/ghost/avatar/128.png" width="64" height="64"> Ghost](https://ghost.org)
17
+
13
18
  Supporters
14
19
  ----------
15
20
 
@@ -20,7 +25,7 @@ Supporters
20
25
  Backers
21
26
  -------
22
27
 
23
- yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
28
+ yamanoku, taye, Encyclia, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
24
29
 
25
30
  One-time donations
26
31
  ------------------
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -1,14 +1,4 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
- /**
3
- * The minimum valid SemVer object. Equivalent to `0.0.0`.
4
- */
5
- export const MIN = {
6
- major: 0,
7
- minor: 0,
8
- patch: 0,
9
- prerelease: [],
10
- build: [],
11
- };
12
2
  /**
13
3
  * ANY is a sentinel value used by some range calculations. It is not a valid
14
4
  * SemVer object and should not be used directly.
@@ -1,4 +1,5 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
2
3
  import { testComparatorSet } from "./_test_comparator_set.js";
3
4
  /**
4
5
  * Test to see if the SemVer satisfies the range.
@@ -1,6 +1,6 @@
1
1
  import { getLogger } from "@logtape/logtape";
2
2
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
3
- import { accepts } from "../deps/jsr.io/@std/http/1.0.13/negotiation.js";
3
+ import { accepts } from "../deps/jsr.io/@std/http/1.0.15/negotiation.js";
4
4
  import metadata from "../deno.js";
5
5
  import { verifyRequest } from "../sig/http.js";
6
6
  import { detachSignature, verifyJsonLd } from "../sig/ld.js";
@@ -1,5 +1,5 @@
1
1
  import { getLogger } from "@logtape/logtape";
2
- import { parse } from "../deps/jsr.io/@std/semver/1.0.4/mod.js";
2
+ import { parse } from "../deps/jsr.io/@std/semver/1.0.5/mod.js";
3
3
  import { getUserAgent, } from "../runtime/docloader.js";
4
4
  const logger = getLogger(["fedify", "nodeinfo", "client"]);
5
5
  export async function getNodeInfo(url, options = {}) {
@@ -5,6 +5,6 @@
5
5
  * @module
6
6
  * @since 0.2.0
7
7
  */
8
- export { format as formatSemVer, parse as parseSemVer, } from "../deps/jsr.io/@std/semver/1.0.4/mod.js";
8
+ export { format as formatSemVer, parse as parseSemVer, } from "../deps/jsr.io/@std/semver/1.0.5/mod.js";
9
9
  export { getNodeInfo, parseNodeInfo, } from "./client.js";
10
10
  export * from "./types.js";
@@ -1,4 +1,4 @@
1
- import { format } from "../deps/jsr.io/@std/semver/1.0.4/mod.js";
1
+ import { format } from "../deps/jsr.io/@std/semver/1.0.5/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.
package/esm/sig/key.js CHANGED
@@ -70,7 +70,10 @@ export function generateCryptoKeyPair(algorithm) {
70
70
  */
71
71
  export async function exportJwk(key) {
72
72
  validateCryptoKey(key);
73
- return await dntShim.crypto.subtle.exportKey("jwk", key);
73
+ const jwk = await dntShim.crypto.subtle.exportKey("jwk", key);
74
+ if (jwk.crv === "Ed25519")
75
+ jwk.alg = "Ed25519";
76
+ return jwk;
74
77
  }
75
78
  /**
76
79
  * Imports a key from JWK format.
@@ -19,4 +19,8 @@ defaultContext:
19
19
  - "https://w3id.org/security/data-integrity/v1"
20
20
  - "https://www.w3.org/ns/did/v1"
21
21
  - "https://w3id.org/security/multikey/v1"
22
+ - litepub: "http://litepub.social/ns#"
23
+ toot: "http://joinmastodon.org/ns#"
24
+ EmojiReact: "litepub:EmojiReact"
25
+ Emoji: "toot:Emoji"
22
26
  properties: []