@fedify/fedify 1.0.16 → 1.0.18
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 +28 -0
- package/esm/runtime/key.js +1 -1
- package/esm/vocab/application.yaml +1 -0
- package/esm/vocab/follow.yaml +3 -0
- package/esm/vocab/group.yaml +1 -0
- package/esm/vocab/organization.yaml +1 -0
- package/esm/vocab/person.yaml +1 -0
- package/esm/vocab/service.yaml +1 -0
- package/esm/vocab/undo.yaml +3 -0
- package/esm/vocab/update.yaml +3 -0
- package/esm/vocab/vocab.js +19 -0
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -3,6 +3,34 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.0.18
|
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.0.17
|
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.0.16
|
7
35
|
--------------
|
8
36
|
|
package/esm/runtime/key.js
CHANGED
@@ -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"]);
|
package/esm/vocab/follow.yaml
CHANGED
@@ -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: []
|
package/esm/vocab/group.yaml
CHANGED
package/esm/vocab/person.yaml
CHANGED
package/esm/vocab/service.yaml
CHANGED
package/esm/vocab/undo.yaml
CHANGED
@@ -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: []
|
package/esm/vocab/update.yaml
CHANGED
@@ -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
|
- toot: "http://joinmastodon.org/ns#"
|
18
21
|
schema: "http://schema.org#"
|
19
22
|
misskey: "https://misskey-hub.net/ns#"
|
package/esm/vocab/vocab.js
CHANGED
@@ -11694,6 +11694,7 @@ export class Application extends Object {
|
|
11694
11694
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
11695
11695
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
11696
11696
|
"toot": "http://joinmastodon.org/ns#",
|
11697
|
+
"Emoji": "toot:Emoji",
|
11697
11698
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
11698
11699
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
11699
11700
|
"discoverable": "toot:discoverable",
|
@@ -11943,6 +11944,7 @@ export class Application extends Object {
|
|
11943
11944
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
11944
11945
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
11945
11946
|
"toot": "http://joinmastodon.org/ns#",
|
11947
|
+
"Emoji": "toot:Emoji",
|
11946
11948
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
11947
11949
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
11948
11950
|
"discoverable": "toot:discoverable",
|
@@ -17283,7 +17285,10 @@ export class Follow extends Activity {
|
|
17283
17285
|
[
|
17284
17286
|
"https://w3id.org/identity/v1",
|
17285
17287
|
"https://www.w3.org/ns/activitystreams",
|
17288
|
+
"https://w3id.org/security/v1",
|
17286
17289
|
"https://w3id.org/security/data-integrity/v1",
|
17290
|
+
"https://www.w3.org/ns/did/v1",
|
17291
|
+
"https://w3id.org/security/multikey/v1",
|
17287
17292
|
];
|
17288
17293
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
17289
17294
|
if (docContext != null) {
|
@@ -19231,6 +19236,7 @@ export class Group extends Object {
|
|
19231
19236
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
19232
19237
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
19233
19238
|
"toot": "http://joinmastodon.org/ns#",
|
19239
|
+
"Emoji": "toot:Emoji",
|
19234
19240
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
19235
19241
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
19236
19242
|
"discoverable": "toot:discoverable",
|
@@ -19480,6 +19486,7 @@ export class Group extends Object {
|
|
19480
19486
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
19481
19487
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
19482
19488
|
"toot": "http://joinmastodon.org/ns#",
|
19489
|
+
"Emoji": "toot:Emoji",
|
19483
19490
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
19484
19491
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
19485
19492
|
"discoverable": "toot:discoverable",
|
@@ -25982,6 +25989,7 @@ export class Organization extends Object {
|
|
25982
25989
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
25983
25990
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
25984
25991
|
"toot": "http://joinmastodon.org/ns#",
|
25992
|
+
"Emoji": "toot:Emoji",
|
25985
25993
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
25986
25994
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
25987
25995
|
"discoverable": "toot:discoverable",
|
@@ -26231,6 +26239,7 @@ export class Organization extends Object {
|
|
26231
26239
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
26232
26240
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
26233
26241
|
"toot": "http://joinmastodon.org/ns#",
|
26242
|
+
"Emoji": "toot:Emoji",
|
26234
26243
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
26235
26244
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
26236
26245
|
"discoverable": "toot:discoverable",
|
@@ -29021,6 +29030,7 @@ export class Person extends Object {
|
|
29021
29030
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
29022
29031
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
29023
29032
|
"toot": "http://joinmastodon.org/ns#",
|
29033
|
+
"Emoji": "toot:Emoji",
|
29024
29034
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
29025
29035
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
29026
29036
|
"discoverable": "toot:discoverable",
|
@@ -29270,6 +29280,7 @@ export class Person extends Object {
|
|
29270
29280
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
29271
29281
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
29272
29282
|
"toot": "http://joinmastodon.org/ns#",
|
29283
|
+
"Emoji": "toot:Emoji",
|
29273
29284
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
29274
29285
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
29275
29286
|
"discoverable": "toot:discoverable",
|
@@ -34756,6 +34767,7 @@ export class Service extends Object {
|
|
34756
34767
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
34757
34768
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
34758
34769
|
"toot": "http://joinmastodon.org/ns#",
|
34770
|
+
"Emoji": "toot:Emoji",
|
34759
34771
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
34760
34772
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
34761
34773
|
"discoverable": "toot:discoverable",
|
@@ -35005,6 +35017,7 @@ export class Service extends Object {
|
|
35005
35017
|
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
35006
35018
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
35007
35019
|
"toot": "http://joinmastodon.org/ns#",
|
35020
|
+
"Emoji": "toot:Emoji",
|
35008
35021
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
35009
35022
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
35010
35023
|
"discoverable": "toot:discoverable",
|
@@ -36954,7 +36967,10 @@ export class Undo extends Activity {
|
|
36954
36967
|
[
|
36955
36968
|
"https://w3id.org/identity/v1",
|
36956
36969
|
"https://www.w3.org/ns/activitystreams",
|
36970
|
+
"https://w3id.org/security/v1",
|
36957
36971
|
"https://w3id.org/security/data-integrity/v1",
|
36972
|
+
"https://www.w3.org/ns/did/v1",
|
36973
|
+
"https://w3id.org/security/multikey/v1",
|
36958
36974
|
];
|
36959
36975
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
36960
36976
|
if (docContext != null) {
|
@@ -37116,7 +37132,10 @@ export class Update extends Activity {
|
|
37116
37132
|
[
|
37117
37133
|
"https://w3id.org/identity/v1",
|
37118
37134
|
"https://www.w3.org/ns/activitystreams",
|
37135
|
+
"https://w3id.org/security/v1",
|
37119
37136
|
"https://w3id.org/security/data-integrity/v1",
|
37137
|
+
"https://www.w3.org/ns/did/v1",
|
37138
|
+
"https://w3id.org/security/multikey/v1",
|
37120
37139
|
{
|
37121
37140
|
"toot": "http://joinmastodon.org/ns#",
|
37122
37141
|
"schema": "http://schema.org#",
|