@fedify/fedify 1.2.13 → 1.2.15

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
@@ -3,6 +3,34 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.2.15
7
+ --------------
8
+
9
+ Released on February 25, 2025.
10
+
11
+ - Added the following default context to `Application`, `Group`,
12
+ `Organization`, `Person`, and `Service` classes:
13
+
14
+ ~~~~ json
15
+ {
16
+ "Emoji": "http://joinmastodon.org/ns#Emoji"
17
+ }
18
+ ~~~~
19
+
20
+
21
+ Version 1.2.14
22
+ --------------
23
+
24
+ Released on February 22, 2025.
25
+
26
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
27
+ classes:
28
+
29
+ - <https://w3id.org/security/v1>
30
+ - <https://www.w3.org/ns/did/v1>
31
+ - <https://w3id.org/security/multikey/v1>
32
+
33
+
6
34
  Version 1.2.13
7
35
  --------------
8
36
 
@@ -276,6 +304,34 @@ Released on October 31, 2024.
276
304
  [#118]: https://github.com/dahlia/fedify/issues/118
277
305
 
278
306
 
307
+ Version 1.1.15
308
+ --------------
309
+
310
+ Released on February 25, 2025.
311
+
312
+ - Added the following default context to `Application`, `Group`,
313
+ `Organization`, `Person`, and `Service` classes:
314
+
315
+ ~~~~ json
316
+ {
317
+ "Emoji": "http://joinmastodon.org/ns#Emoji"
318
+ }
319
+ ~~~~
320
+
321
+
322
+ Version 1.1.14
323
+ --------------
324
+
325
+ Released on February 22, 2025.
326
+
327
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
328
+ classes:
329
+
330
+ - <https://w3id.org/security/v1>
331
+ - <https://www.w3.org/ns/did/v1>
332
+ - <https://w3id.org/security/multikey/v1>
333
+
334
+
279
335
  Version 1.1.13
280
336
  --------------
281
337
 
@@ -590,6 +646,34 @@ Released on October 20, 2024.
590
646
  [#150]: https://github.com/dahlia/fedify/issues/150
591
647
 
592
648
 
649
+ Version 1.0.18
650
+ --------------
651
+
652
+ Released on February 25, 2025.
653
+
654
+ - Added the following default context to `Application`, `Group`,
655
+ `Organization`, `Person`, and `Service` classes:
656
+
657
+ ~~~~ json
658
+ {
659
+ "Emoji": "http://joinmastodon.org/ns#Emoji"
660
+ }
661
+ ~~~~
662
+
663
+
664
+ Version 1.0.17
665
+ --------------
666
+
667
+ Released on February 22, 2025.
668
+
669
+ - Added the following default contexts to `Follow`, `Undo`, and `Update`
670
+ classes:
671
+
672
+ - <https://w3id.org/security/v1>
673
+ - <https://www.w3.org/ns/did/v1>
674
+ - <https://w3id.org/security/multikey/v1>
675
+
676
+
593
677
  Version 1.0.16
594
678
  --------------
595
679
 
@@ -72,7 +72,7 @@ export async function importMultibaseKey(key) {
72
72
  type: "pkcs1",
73
73
  });
74
74
  const spki = keyObject.export({ type: "spki", format: "der" }).buffer;
75
- return await dntShim.crypto.subtle.importKey("spki", spki, { name: "RSASSA-PKCS1-v1_5", hash: "SHA-256" }, true, ["verify"]);
75
+ return await dntShim.crypto.subtle.importKey("spki", new Uint8Array(spki), { name: "RSASSA-PKCS1-v1_5", hash: "SHA-256" }, true, ["verify"]);
76
76
  }
77
77
  else if (code === 0xed) { // ed25519-pub
78
78
  return await dntShim.crypto.subtle.importKey("raw", content, "Ed25519", true, ["verify"]);
@@ -19,6 +19,7 @@ defaultContext:
19
19
  "@id": "as:movedTo"
20
20
  "@type": "@id"
21
21
  toot: "http://joinmastodon.org/ns#"
22
+ Emoji: "toot:Emoji"
22
23
  featured:
23
24
  "@id": "toot:featured"
24
25
  "@type": "@id"
@@ -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: []
@@ -19,6 +19,7 @@ defaultContext:
19
19
  "@id": "as:movedTo"
20
20
  "@type": "@id"
21
21
  toot: "http://joinmastodon.org/ns#"
22
+ Emoji: "toot:Emoji"
22
23
  featured:
23
24
  "@id": "toot:featured"
24
25
  "@type": "@id"
@@ -19,6 +19,7 @@ defaultContext:
19
19
  "@id": "as:movedTo"
20
20
  "@type": "@id"
21
21
  toot: "http://joinmastodon.org/ns#"
22
+ Emoji: "toot:Emoji"
22
23
  featured:
23
24
  "@id": "toot:featured"
24
25
  "@type": "@id"
@@ -19,6 +19,7 @@ defaultContext:
19
19
  "@id": "as:movedTo"
20
20
  "@type": "@id"
21
21
  toot: "http://joinmastodon.org/ns#"
22
+ Emoji: "toot:Emoji"
22
23
  featured:
23
24
  "@id": "toot:featured"
24
25
  "@type": "@id"
@@ -19,6 +19,7 @@ defaultContext:
19
19
  "@id": "as:movedTo"
20
20
  "@type": "@id"
21
21
  toot: "http://joinmastodon.org/ns#"
22
+ Emoji: "toot:Emoji"
22
23
  featured:
23
24
  "@id": "toot:featured"
24
25
  "@type": "@id"
@@ -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"
@@ -12655,6 +12655,7 @@ export class Application extends Object {
12655
12655
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
12656
12656
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
12657
12657
  "toot": "http://joinmastodon.org/ns#",
12658
+ "Emoji": "toot:Emoji",
12658
12659
  "featured": { "@id": "toot:featured", "@type": "@id" },
12659
12660
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
12660
12661
  "discoverable": "toot:discoverable",
@@ -12945,6 +12946,7 @@ export class Application extends Object {
12945
12946
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
12946
12947
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
12947
12948
  "toot": "http://joinmastodon.org/ns#",
12949
+ "Emoji": "toot:Emoji",
12948
12950
  "featured": { "@id": "toot:featured", "@type": "@id" },
12949
12951
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
12950
12952
  "discoverable": "toot:discoverable",
@@ -18414,7 +18416,10 @@ export class Follow extends Activity {
18414
18416
  [
18415
18417
  "https://w3id.org/identity/v1",
18416
18418
  "https://www.w3.org/ns/activitystreams",
18419
+ "https://w3id.org/security/v1",
18417
18420
  "https://w3id.org/security/data-integrity/v1",
18421
+ "https://www.w3.org/ns/did/v1",
18422
+ "https://w3id.org/security/multikey/v1",
18418
18423
  ];
18419
18424
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
18420
18425
  if (docContext != null) {
@@ -20725,6 +20730,7 @@ export class Group extends Object {
20725
20730
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
20726
20731
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
20727
20732
  "toot": "http://joinmastodon.org/ns#",
20733
+ "Emoji": "toot:Emoji",
20728
20734
  "featured": { "@id": "toot:featured", "@type": "@id" },
20729
20735
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
20730
20736
  "discoverable": "toot:discoverable",
@@ -21015,6 +21021,7 @@ export class Group extends Object {
21015
21021
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
21016
21022
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
21017
21023
  "toot": "http://joinmastodon.org/ns#",
21024
+ "Emoji": "toot:Emoji",
21018
21025
  "featured": { "@id": "toot:featured", "@type": "@id" },
21019
21026
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
21020
21027
  "discoverable": "toot:discoverable",
@@ -28011,6 +28018,7 @@ export class Organization extends Object {
28011
28018
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
28012
28019
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
28013
28020
  "toot": "http://joinmastodon.org/ns#",
28021
+ "Emoji": "toot:Emoji",
28014
28022
  "featured": { "@id": "toot:featured", "@type": "@id" },
28015
28023
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
28016
28024
  "discoverable": "toot:discoverable",
@@ -28301,6 +28309,7 @@ export class Organization extends Object {
28301
28309
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
28302
28310
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
28303
28311
  "toot": "http://joinmastodon.org/ns#",
28312
+ "Emoji": "toot:Emoji",
28304
28313
  "featured": { "@id": "toot:featured", "@type": "@id" },
28305
28314
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
28306
28315
  "discoverable": "toot:discoverable",
@@ -31581,6 +31590,7 @@ export class Person extends Object {
31581
31590
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
31582
31591
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
31583
31592
  "toot": "http://joinmastodon.org/ns#",
31593
+ "Emoji": "toot:Emoji",
31584
31594
  "featured": { "@id": "toot:featured", "@type": "@id" },
31585
31595
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
31586
31596
  "discoverable": "toot:discoverable",
@@ -31871,6 +31881,7 @@ export class Person extends Object {
31871
31881
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
31872
31882
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
31873
31883
  "toot": "http://joinmastodon.org/ns#",
31884
+ "Emoji": "toot:Emoji",
31874
31885
  "featured": { "@id": "toot:featured", "@type": "@id" },
31875
31886
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
31876
31887
  "discoverable": "toot:discoverable",
@@ -37847,6 +37858,7 @@ export class Service extends Object {
37847
37858
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
37848
37859
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
37849
37860
  "toot": "http://joinmastodon.org/ns#",
37861
+ "Emoji": "toot:Emoji",
37850
37862
  "featured": { "@id": "toot:featured", "@type": "@id" },
37851
37863
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
37852
37864
  "discoverable": "toot:discoverable",
@@ -38137,6 +38149,7 @@ export class Service extends Object {
38137
38149
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
38138
38150
  "movedTo": { "@id": "as:movedTo", "@type": "@id" },
38139
38151
  "toot": "http://joinmastodon.org/ns#",
38152
+ "Emoji": "toot:Emoji",
38140
38153
  "featured": { "@id": "toot:featured", "@type": "@id" },
38141
38154
  "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
38142
38155
  "discoverable": "toot:discoverable",
@@ -40213,7 +40226,10 @@ export class Undo extends Activity {
40213
40226
  [
40214
40227
  "https://w3id.org/identity/v1",
40215
40228
  "https://www.w3.org/ns/activitystreams",
40229
+ "https://w3id.org/security/v1",
40216
40230
  "https://w3id.org/security/data-integrity/v1",
40231
+ "https://www.w3.org/ns/did/v1",
40232
+ "https://w3id.org/security/multikey/v1",
40217
40233
  ];
40218
40234
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
40219
40235
  if (docContext != null) {
@@ -40375,7 +40391,10 @@ export class Update extends Activity {
40375
40391
  [
40376
40392
  "https://w3id.org/identity/v1",
40377
40393
  "https://www.w3.org/ns/activitystreams",
40394
+ "https://w3id.org/security/v1",
40378
40395
  "https://w3id.org/security/data-integrity/v1",
40396
+ "https://www.w3.org/ns/did/v1",
40397
+ "https://w3id.org/security/multikey/v1",
40379
40398
  {
40380
40399
  "alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
40381
40400
  "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",