@fedify/fedify 1.4.0-dev.596 → 1.4.0-dev.599
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 +23 -0
- package/LICENSE +1 -1
- package/esm/deno.js +1 -1
- package/esm/runtime/contexts.js +33 -0
- package/esm/vocab/object.yaml +32 -0
- package/esm/vocab/vocab.js +560 -174
- package/package.json +1 -1
- package/types/runtime/contexts.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +262 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -17,6 +17,20 @@ To be released.
|
|
17
17
|
- Added `ActorCallbackSetters.mapAlias()` method.
|
18
18
|
- Added `ActorAliasMapper` type.
|
19
19
|
|
20
|
+
- Added `shares` property to `Object` class in Activity Vocabulary API.
|
21
|
+
|
22
|
+
- Added `Object.sharesId` property.
|
23
|
+
- Added `Object.getShares()` method.
|
24
|
+
- `new Object()` constructor now accepts `shares` option.
|
25
|
+
- `Object.clone()` method now accepts `shares` option.
|
26
|
+
|
27
|
+
- Added `likes` property to `Object` class in Activity Vocabulary API.
|
28
|
+
|
29
|
+
- Added `Object.likesId` property.
|
30
|
+
- Added `Object.getLikes()` method.
|
31
|
+
- `new Object()` constructor now accepts `likes` option.
|
32
|
+
- `Object.clone()` method now accepts `likes` option.
|
33
|
+
|
20
34
|
- Added `emojiReactions` property to `Object` class in Activity Vocabulary
|
21
35
|
API.
|
22
36
|
|
@@ -34,6 +48,15 @@ To be released.
|
|
34
48
|
[#195]: https://github.com/dahlia/fedify/issues/195
|
35
49
|
|
36
50
|
|
51
|
+
Version 1.3.3
|
52
|
+
-------------
|
53
|
+
|
54
|
+
Released on December 30, 2024.
|
55
|
+
|
56
|
+
- The `fetchDocumentLoader()` function now preloads the following JSON-LD
|
57
|
+
context: <https://gotosocial.org/ns>.
|
58
|
+
|
59
|
+
|
37
60
|
Version 1.3.2
|
38
61
|
-------------
|
39
62
|
|
package/LICENSE
CHANGED
package/esm/deno.js
CHANGED
package/esm/runtime/contexts.js
CHANGED
@@ -4154,5 +4154,38 @@ const preloadedContexts = {
|
|
4154
4154
|
"yield": { "@id": "schema:yield" },
|
4155
4155
|
},
|
4156
4156
|
},
|
4157
|
+
"https://gotosocial.org/ns": {
|
4158
|
+
"@context": {
|
4159
|
+
"gts": "https://gotosocial.org/ns#",
|
4160
|
+
"interactionPolicy": {
|
4161
|
+
"@id": "gts:interactionPolicy",
|
4162
|
+
"@type": "@id",
|
4163
|
+
},
|
4164
|
+
"canLike": {
|
4165
|
+
"@id": "gts:canLike",
|
4166
|
+
"@type": "@id",
|
4167
|
+
},
|
4168
|
+
"canReply": {
|
4169
|
+
"@id": "gts:canReply",
|
4170
|
+
"@type": "@id",
|
4171
|
+
},
|
4172
|
+
"canAnnounce": {
|
4173
|
+
"@id": "gts:canAnnounce",
|
4174
|
+
"@type": "@id",
|
4175
|
+
},
|
4176
|
+
"always": {
|
4177
|
+
"@id": "gts:always",
|
4178
|
+
"@type": "@id",
|
4179
|
+
},
|
4180
|
+
"approvalRequired": {
|
4181
|
+
"@id": "gts:approvalRequired",
|
4182
|
+
"@type": "@id",
|
4183
|
+
},
|
4184
|
+
"approvedBy": {
|
4185
|
+
"@id": "gts:approvedBy",
|
4186
|
+
"@type": "@id",
|
4187
|
+
},
|
4188
|
+
},
|
4189
|
+
},
|
4157
4190
|
};
|
4158
4191
|
export default preloadedContexts;
|
package/esm/vocab/object.yaml
CHANGED
@@ -202,6 +202,38 @@ properties:
|
|
202
202
|
range:
|
203
203
|
- "https://www.w3.org/ns/activitystreams#Collection"
|
204
204
|
|
205
|
+
- singularName: shares
|
206
|
+
functional: true
|
207
|
+
compactName: shares
|
208
|
+
uri: "https://www.w3.org/ns/activitystreams#shares"
|
209
|
+
description: |
|
210
|
+
Every object *may* have a `shares` collection. This is a list of all
|
211
|
+
{@link Announce} activities with this object as the `object` property,
|
212
|
+
added as a [side effect]. The `shares` collection *must* be either
|
213
|
+
an {@link OrderedCollection} or a {@link Collection} and *may* be filtered
|
214
|
+
on privileges of an authenticated user or as appropriate
|
215
|
+
when no authentication is given.
|
216
|
+
|
217
|
+
[side effect]: https://www.w3.org/TR/activitypub/#announce-activity-inbox
|
218
|
+
range:
|
219
|
+
- "https://www.w3.org/ns/activitystreams#Collection"
|
220
|
+
|
221
|
+
- singularName: likes
|
222
|
+
functional: true
|
223
|
+
compactName: likes
|
224
|
+
uri: "https://www.w3.org/ns/activitystreams#likes"
|
225
|
+
description: |
|
226
|
+
Every object *may* have a `likes` collection. This is a list of all
|
227
|
+
{@link Like} activities with this object as the `object` property,
|
228
|
+
added as a [side effect]. The `likes` collection *must* be either
|
229
|
+
an {@link OrderedCollection} or a {@link Collection} and *may* be filtered
|
230
|
+
on privileges of an authenticated user or as appropriate
|
231
|
+
when no authentication is given.
|
232
|
+
|
233
|
+
[side effect]: https://www.w3.org/TR/activitypub/#announce-activity-inbox
|
234
|
+
range:
|
235
|
+
- "https://www.w3.org/ns/activitystreams#Collection"
|
236
|
+
|
205
237
|
- singularName: emojiReactions
|
206
238
|
functional: true
|
207
239
|
compactName: emojiReactions
|