@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 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
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright 2024 Hong Minhee
3
+ Copyright 2024–2025 Hong Minhee
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.4.0-dev.596+acf76ef5",
3
+ "version": "1.4.0-dev.599+72b4d6d0",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -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;
@@ -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