@fedify/fedify 1.0.16 → 1.0.17
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 +13 -0
- package/esm/runtime/key.js +1 -1
- package/esm/vocab/follow.yaml +3 -0
- package/esm/vocab/undo.yaml +3 -0
- package/esm/vocab/update.yaml +3 -0
- package/esm/vocab/vocab.js +9 -0
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -3,6 +3,19 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.0.17
|
7
|
+
--------------
|
8
|
+
|
9
|
+
Released on February 22, 2025.
|
10
|
+
|
11
|
+
- Added the following default contexts to `Follow`, `Undo`, and `Update`
|
12
|
+
classes:
|
13
|
+
|
14
|
+
- <https://w3id.org/security/v1>
|
15
|
+
- <https://www.w3.org/ns/did/v1>
|
16
|
+
- <https://w3id.org/security/multikey/v1>
|
17
|
+
|
18
|
+
|
6
19
|
Version 1.0.16
|
7
20
|
--------------
|
8
21
|
|
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/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
@@ -17283,7 +17283,10 @@ export class Follow extends Activity {
|
|
17283
17283
|
[
|
17284
17284
|
"https://w3id.org/identity/v1",
|
17285
17285
|
"https://www.w3.org/ns/activitystreams",
|
17286
|
+
"https://w3id.org/security/v1",
|
17286
17287
|
"https://w3id.org/security/data-integrity/v1",
|
17288
|
+
"https://www.w3.org/ns/did/v1",
|
17289
|
+
"https://w3id.org/security/multikey/v1",
|
17287
17290
|
];
|
17288
17291
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
17289
17292
|
if (docContext != null) {
|
@@ -36954,7 +36957,10 @@ export class Undo extends Activity {
|
|
36954
36957
|
[
|
36955
36958
|
"https://w3id.org/identity/v1",
|
36956
36959
|
"https://www.w3.org/ns/activitystreams",
|
36960
|
+
"https://w3id.org/security/v1",
|
36957
36961
|
"https://w3id.org/security/data-integrity/v1",
|
36962
|
+
"https://www.w3.org/ns/did/v1",
|
36963
|
+
"https://w3id.org/security/multikey/v1",
|
36958
36964
|
];
|
36959
36965
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
36960
36966
|
if (docContext != null) {
|
@@ -37116,7 +37122,10 @@ export class Update extends Activity {
|
|
37116
37122
|
[
|
37117
37123
|
"https://w3id.org/identity/v1",
|
37118
37124
|
"https://www.w3.org/ns/activitystreams",
|
37125
|
+
"https://w3id.org/security/v1",
|
37119
37126
|
"https://w3id.org/security/data-integrity/v1",
|
37127
|
+
"https://www.w3.org/ns/did/v1",
|
37128
|
+
"https://w3id.org/security/multikey/v1",
|
37120
37129
|
{
|
37121
37130
|
"toot": "http://joinmastodon.org/ns#",
|
37122
37131
|
"schema": "http://schema.org#",
|