@fedify/fedify 1.0.25 → 1.0.26
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 +11 -0
- package/esm/federation/handler.js +1 -1
- package/esm/vocab/announce.yaml +3 -1
- package/esm/vocab/create.yaml +3 -1
- package/esm/vocab/delete.yaml +3 -1
- package/esm/vocab/question.yaml +75 -73
- package/esm/vocab/update.yaml +3 -1
- package/esm/vocab/vocab.js +20 -5
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/encoding.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/language.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/media_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/negotiation.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/common.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/encoding.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/language.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/media_type.js +0 -0
- /package/esm/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/negotiation.js +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/encoding.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/language.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/_negotiation/media_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.16 → 1.0.18}/negotiation.d.ts +0 -0
package/CHANGES.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.0.26
|
7
|
+
--------------
|
8
|
+
|
9
|
+
Released on June 30, 2025.
|
10
|
+
|
11
|
+
- Fixed JSON-LD serialization of the `Question.voters` property to correctly
|
12
|
+
serialize as a plain number (e.g., `"votersCount": 123`) instead of as a
|
13
|
+
typed literal object (e.g., `"votersCount":{"type":"xsd:nonNegativeInteger",
|
14
|
+
"@value":123}`).
|
15
|
+
|
16
|
+
|
6
17
|
Version 1.0.25
|
7
18
|
--------------
|
8
19
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
|
-
import { accepts } from "../deps/jsr.io/@std/http/1.0.
|
3
|
+
import { accepts } from "../deps/jsr.io/@std/http/1.0.18/negotiation.js";
|
4
4
|
import { verifyRequest } from "../sig/http.js";
|
5
5
|
import { detachSignature, verifyJsonLd } from "../sig/ld.js";
|
6
6
|
import { doesActorOwnKey } from "../sig/owner.js";
|
package/esm/vocab/announce.yaml
CHANGED
@@ -16,7 +16,9 @@ defaultContext:
|
|
16
16
|
misskey: "https://misskey-hub.net/ns#"
|
17
17
|
fedibird: "http://fedibird.com/ns#"
|
18
18
|
sensitive: "as:sensitive"
|
19
|
-
votersCount:
|
19
|
+
votersCount:
|
20
|
+
"@id": "toot:votersCount"
|
21
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
20
22
|
Emoji: "toot:Emoji"
|
21
23
|
Hashtag: "as:Hashtag"
|
22
24
|
quoteUrl: "as:quoteUrl"
|
package/esm/vocab/create.yaml
CHANGED
@@ -13,7 +13,9 @@ defaultContext:
|
|
13
13
|
misskey: "https://misskey-hub.net/ns#"
|
14
14
|
fedibird: "http://fedibird.com/ns#"
|
15
15
|
sensitive: "as:sensitive"
|
16
|
-
votersCount:
|
16
|
+
votersCount:
|
17
|
+
"@id": "toot:votersCount"
|
18
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
17
19
|
Emoji: "toot:Emoji"
|
18
20
|
Hashtag: "as:Hashtag"
|
19
21
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
package/esm/vocab/delete.yaml
CHANGED
@@ -15,7 +15,9 @@ defaultContext:
|
|
15
15
|
misskey: "https://misskey-hub.net/ns#"
|
16
16
|
fedibird: "http://fedibird.com/ns#"
|
17
17
|
sensitive: "as:sensitive"
|
18
|
-
votersCount:
|
18
|
+
votersCount:
|
19
|
+
"@id": "toot:votersCount"
|
20
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
19
21
|
Emoji: "toot:Emoji"
|
20
22
|
Hashtag: "as:Hashtag"
|
21
23
|
ChatMessage: "http://litepub.social/ns#ChatMessage"
|
package/esm/vocab/question.yaml
CHANGED
@@ -14,85 +14,87 @@ description: |
|
|
14
14
|
used to express possible answers, but a Question object *must not* have both
|
15
15
|
properties.
|
16
16
|
defaultContext:
|
17
|
-
- "https://w3id.org/identity/v1"
|
18
|
-
- "https://www.w3.org/ns/activitystreams"
|
19
|
-
- "https://w3id.org/security/data-integrity/v1"
|
20
|
-
- toot: "http://joinmastodon.org/ns#"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
17
|
+
- "https://w3id.org/identity/v1"
|
18
|
+
- "https://www.w3.org/ns/activitystreams"
|
19
|
+
- "https://w3id.org/security/data-integrity/v1"
|
20
|
+
- toot: "http://joinmastodon.org/ns#"
|
21
|
+
misskey: "https://misskey-hub.net/ns#"
|
22
|
+
fedibird: "http://fedibird.com/ns#"
|
23
|
+
sensitive: "as:sensitive"
|
24
|
+
votersCount:
|
25
|
+
"@id": "toot:votersCount"
|
26
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
27
|
+
Emoji: "toot:Emoji"
|
28
|
+
Hashtag: "as:Hashtag"
|
29
|
+
quoteUrl: "as:quoteUrl"
|
30
|
+
_misskey_quote: "misskey:_misskey_quote"
|
31
|
+
quoteUri: "fedibird:quoteUri"
|
30
32
|
|
31
33
|
properties:
|
32
|
-
- pluralName: exclusiveOptions
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
34
|
+
- pluralName: exclusiveOptions
|
35
|
+
singularName: exclusiveOption
|
36
|
+
singularAccessor: false
|
37
|
+
compactName: oneOf
|
38
|
+
uri: "https://www.w3.org/ns/activitystreams#oneOf"
|
39
|
+
description: |
|
40
|
+
Identifies an exclusive option for a Question. Use of `exclusiveOptions`
|
41
|
+
implies that the Question can have only a single answer. To indicate that
|
42
|
+
a Question can have multiple answers, use `inclusiveOptions`.
|
43
|
+
range:
|
44
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
43
45
|
|
44
|
-
- pluralName: inclusiveOptions
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
- pluralName: inclusiveOptions
|
47
|
+
singularName: inclusiveOption
|
48
|
+
singularAccessor: false
|
49
|
+
compactName: anyOf
|
50
|
+
uri: "https://www.w3.org/ns/activitystreams#anyOf"
|
51
|
+
description: |
|
52
|
+
Identifies an inclusive option for a Question. Use of `inclusiveOptions`
|
53
|
+
implies that the Question can have multiple answers. To indicate that
|
54
|
+
a Question can have only one answer, use `exclusiveOptions`.
|
55
|
+
range:
|
56
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
55
57
|
|
56
|
-
- singularName: closed
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
58
|
+
- singularName: closed
|
59
|
+
functional: true
|
60
|
+
compactName: closed
|
61
|
+
uri: "https://www.w3.org/ns/activitystreams#closed"
|
62
|
+
description: |
|
63
|
+
Indicates that a question has been closed, and answers are no longer
|
64
|
+
accepted.
|
65
|
+
range:
|
66
|
+
- "http://www.w3.org/2001/XMLSchema#dateTime"
|
67
|
+
- "http://www.w3.org/2001/XMLSchema#boolean"
|
66
68
|
|
67
|
-
- singularName: voters
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
69
|
+
- singularName: voters
|
70
|
+
functional: true
|
71
|
+
compactName: votersCount
|
72
|
+
uri: "http://joinmastodon.org/ns#votersCount"
|
73
|
+
description: |
|
74
|
+
How many people have voted in the poll. Distinct from how many votes have
|
75
|
+
been cast (in the case of multiple-choice polls).
|
76
|
+
range:
|
77
|
+
- "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
76
78
|
|
77
|
-
- singularName: quoteUrl
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
79
|
+
- singularName: quoteUrl
|
80
|
+
functional: true
|
81
|
+
compactName: quoteUrl
|
82
|
+
uri: "https://www.w3.org/ns/activitystreams#quoteUrl"
|
83
|
+
redundantProperties:
|
84
|
+
- compactName: _misskey_quote
|
85
|
+
uri: "https://misskey-hub.net/ns#_misskey_quote"
|
86
|
+
- compactName: quoteUri
|
87
|
+
uri: "http://fedibird.com/ns#quoteUri"
|
88
|
+
description: |
|
89
|
+
The URI of the ActivityStreams object that this object quotes.
|
88
90
|
|
89
|
-
|
91
|
+
This property sets three JSON-LD properties at once under the hood:
|
90
92
|
|
91
|
-
|
92
|
-
|
93
|
-
|
93
|
+
1. https://www.w3.org/ns/activitystreams#quoteUrl
|
94
|
+
2. https://misskey-hub.net/ns#_misskey_quote
|
95
|
+
3. http://fedibird.com/ns#quoteUri
|
94
96
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
97
|
+
When a JSON-LD object is parsed, this property is filled with one of
|
98
|
+
the values of those three properties in order.
|
99
|
+
range:
|
100
|
+
- "fedify:url"
|
package/esm/vocab/update.yaml
CHANGED
@@ -24,7 +24,9 @@ defaultContext:
|
|
24
24
|
PropertyValue: "schema:PropertyValue"
|
25
25
|
value: "schema:value"
|
26
26
|
sensitive: "as:sensitive"
|
27
|
-
votersCount:
|
27
|
+
votersCount:
|
28
|
+
"@id": "toot:votersCount"
|
29
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
28
30
|
featured:
|
29
31
|
"@id": "toot:featured"
|
30
32
|
"@type": "@id"
|
package/esm/vocab/vocab.js
CHANGED
@@ -9770,7 +9770,10 @@ export class Announce extends Activity {
|
|
9770
9770
|
"misskey": "https://misskey-hub.net/ns#",
|
9771
9771
|
"fedibird": "http://fedibird.com/ns#",
|
9772
9772
|
"sensitive": "as:sensitive",
|
9773
|
-
"votersCount":
|
9773
|
+
"votersCount": {
|
9774
|
+
"@id": "toot:votersCount",
|
9775
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
9776
|
+
},
|
9774
9777
|
"Emoji": "toot:Emoji",
|
9775
9778
|
"Hashtag": "as:Hashtag",
|
9776
9779
|
"quoteUrl": "as:quoteUrl",
|
@@ -15833,7 +15836,10 @@ export class Create extends Activity {
|
|
15833
15836
|
"misskey": "https://misskey-hub.net/ns#",
|
15834
15837
|
"fedibird": "http://fedibird.com/ns#",
|
15835
15838
|
"sensitive": "as:sensitive",
|
15836
|
-
"votersCount":
|
15839
|
+
"votersCount": {
|
15840
|
+
"@id": "toot:votersCount",
|
15841
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
15842
|
+
},
|
15837
15843
|
"Emoji": "toot:Emoji",
|
15838
15844
|
"Hashtag": "as:Hashtag",
|
15839
15845
|
"ChatMessage": "http://litepub.social/ns#ChatMessage",
|
@@ -16007,7 +16013,10 @@ export class Delete extends Activity {
|
|
16007
16013
|
"misskey": "https://misskey-hub.net/ns#",
|
16008
16014
|
"fedibird": "http://fedibird.com/ns#",
|
16009
16015
|
"sensitive": "as:sensitive",
|
16010
|
-
"votersCount":
|
16016
|
+
"votersCount": {
|
16017
|
+
"@id": "toot:votersCount",
|
16018
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
16019
|
+
},
|
16011
16020
|
"Emoji": "toot:Emoji",
|
16012
16021
|
"Hashtag": "as:Hashtag",
|
16013
16022
|
"ChatMessage": "http://litepub.social/ns#ChatMessage",
|
@@ -31539,7 +31548,10 @@ export class Question extends IntransitiveActivity {
|
|
31539
31548
|
"misskey": "https://misskey-hub.net/ns#",
|
31540
31549
|
"fedibird": "http://fedibird.com/ns#",
|
31541
31550
|
"sensitive": "as:sensitive",
|
31542
|
-
"votersCount":
|
31551
|
+
"votersCount": {
|
31552
|
+
"@id": "toot:votersCount",
|
31553
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
31554
|
+
},
|
31543
31555
|
"Emoji": "toot:Emoji",
|
31544
31556
|
"Hashtag": "as:Hashtag",
|
31545
31557
|
"quoteUrl": "as:quoteUrl",
|
@@ -37280,7 +37292,10 @@ export class Update extends Activity {
|
|
37280
37292
|
"PropertyValue": "schema:PropertyValue",
|
37281
37293
|
"value": "schema:value",
|
37282
37294
|
"sensitive": "as:sensitive",
|
37283
|
-
"votersCount":
|
37295
|
+
"votersCount": {
|
37296
|
+
"@id": "toot:votersCount",
|
37297
|
+
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
37298
|
+
},
|
37284
37299
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
37285
37300
|
"featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
|
37286
37301
|
"discoverable": "toot:discoverable",
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.18/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.18/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA8GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.18/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.
|
1
|
+
{"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.18/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/1.0.
|
1
|
+
{"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/1.0.18/negotiation.ts"],"names":[],"mappings":";AAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC;AACrE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EACjC,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC;AAatB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC;AAC9E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EACjC,GAAG,SAAS,EAAE,MAAM,EAAE,GACrB,MAAM,GAAG,SAAS,CAAC;AAetB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC;AAC9E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EACjC,GAAG,KAAK,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAAC"}
|