@fedify/fedify 1.5.0-dev.667 → 1.5.0-dev.678

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.
package/CHANGES.md CHANGED
@@ -16,6 +16,9 @@ To be released.
16
16
  - Added `importPkcs1()` function.
17
17
  - Added `importPem()` function.
18
18
 
19
+ - The `fetchKey()` function became to choose the public key of the actor
20
+ if `keyId` has no fragment and the actor has only one public key. [[#211]]
21
+
19
22
  - Fixed a bug of the `fedify inbox` command where it had failed to render
20
23
  the web interface when the `fedify` command was installed using
21
24
  `deno install` command from JSR.
@@ -27,6 +30,20 @@ To be released.
27
30
  - You can easily copy the fediverse handle of the ephemeral actor.
28
31
 
29
32
  [#209]: https://github.com/fedify-dev/fedify/issues/209
33
+ [#211]: https://github.com/fedify-dev/fedify/issues/211
34
+
35
+
36
+ Version 1.4.3
37
+ -------------
38
+
39
+ Released on February 22, 2025.
40
+
41
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
42
+ classes:
43
+
44
+ - <https://w3id.org/security/v1>
45
+ - <https://www.w3.org/ns/did/v1>
46
+ - <https://w3id.org/security/multikey/v1>
30
47
 
31
48
 
32
49
  Version 1.4.2
@@ -140,6 +157,19 @@ Released on February 5, 2025.
140
157
  [#195]: https://github.com/fedify-dev/fedify/issues/195
141
158
 
142
159
 
160
+ Version 1.3.10
161
+ --------------
162
+
163
+ Released on February 22, 2025.
164
+
165
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
166
+ classes:
167
+
168
+ - <https://w3id.org/security/v1>
169
+ - <https://www.w3.org/ns/did/v1>
170
+ - <https://w3id.org/security/multikey/v1>
171
+
172
+
143
173
  Version 1.3.9
144
174
  -------------
145
175
 
@@ -367,6 +397,19 @@ Released on November 30, 2024.
367
397
  [#193]: https://github.com/fedify-dev/fedify/issues/193
368
398
 
369
399
 
400
+ Version 1.2.14
401
+ --------------
402
+
403
+ Released on February 22, 2025.
404
+
405
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
406
+ classes:
407
+
408
+ - <https://w3id.org/security/v1>
409
+ - <https://www.w3.org/ns/did/v1>
410
+ - <https://w3id.org/security/multikey/v1>
411
+
412
+
370
413
  Version 1.2.13
371
414
  --------------
372
415
 
@@ -640,6 +683,19 @@ Released on October 31, 2024.
640
683
  [#118]: https://github.com/fedify-dev/fedify/issues/118
641
684
 
642
685
 
686
+ Version 1.1.14
687
+ --------------
688
+
689
+ Released on February 22, 2025.
690
+
691
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
692
+ classes:
693
+
694
+ - <https://w3id.org/security/v1>
695
+ - <https://www.w3.org/ns/did/v1>
696
+ - <https://w3id.org/security/multikey/v1>
697
+
698
+
643
699
  Version 1.1.13
644
700
  --------------
645
701
 
@@ -954,6 +1010,19 @@ Released on October 20, 2024.
954
1010
  [#150]: https://github.com/fedify-dev/fedify/issues/150
955
1011
 
956
1012
 
1013
+ Version 1.0.17
1014
+ --------------
1015
+
1016
+ Released on February 22, 2025.
1017
+
1018
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
1019
+ classes:
1020
+
1021
+ - <https://w3id.org/security/v1>
1022
+ - <https://www.w3.org/ns/did/v1>
1023
+ - <https://w3id.org/security/multikey/v1>
1024
+
1025
+
957
1026
  Version 1.0.16
958
1027
  --------------
959
1028
 
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.5.0-dev.667+4eb092ee",
3
+ "version": "1.5.0-dev.678+863a24d4",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
package/esm/sig/key.js CHANGED
@@ -208,12 +208,20 @@ cls, { documentLoader, contextLoader, keyCache, tracerProvider } = {}) {
208
208
  contextLoader,
209
209
  tracerProvider,
210
210
  });
211
+ let length = 0;
212
+ let lastKey = null;
211
213
  for await (const k of keys) {
214
+ length++;
215
+ lastKey = k;
212
216
  if (k.id?.href === keyId) {
213
217
  key = k;
214
218
  break;
215
219
  }
216
220
  }
221
+ const keyIdUrl = new URL(keyId);
222
+ if (key == null && keyIdUrl.hash === "" && length === 1) {
223
+ key = lastKey;
224
+ }
217
225
  if (key == null) {
218
226
  logger.debug("Failed to verify; object {keyId} returned an {actorType}, " +
219
227
  "but has no key matching {keyId}.", { keyId, actorType: object.constructor.name });
@@ -12,5 +12,8 @@ description: |
12
12
  defaultContext:
13
13
  - "https://w3id.org/identity/v1"
14
14
  - "https://www.w3.org/ns/activitystreams"
15
+ - "https://w3id.org/security/v1"
15
16
  - "https://w3id.org/security/data-integrity/v1"
17
+ - "https://www.w3.org/ns/did/v1"
18
+ - "https://w3id.org/security/multikey/v1"
16
19
  properties: []
@@ -15,5 +15,8 @@ description: |
15
15
  defaultContext:
16
16
  - "https://w3id.org/identity/v1"
17
17
  - "https://www.w3.org/ns/activitystreams"
18
+ - "https://w3id.org/security/v1"
18
19
  - "https://w3id.org/security/data-integrity/v1"
20
+ - "https://www.w3.org/ns/did/v1"
21
+ - "https://w3id.org/security/multikey/v1"
19
22
  properties: []
@@ -13,7 +13,10 @@ description: |
13
13
  defaultContext:
14
14
  - "https://w3id.org/identity/v1"
15
15
  - "https://www.w3.org/ns/activitystreams"
16
+ - "https://w3id.org/security/v1"
16
17
  - "https://w3id.org/security/data-integrity/v1"
18
+ - "https://www.w3.org/ns/did/v1"
19
+ - "https://w3id.org/security/multikey/v1"
17
20
  - alsoKnownAs:
18
21
  "@id": "as:alsoKnownAs"
19
22
  "@type": "@id"