@fedify/fedify 0.14.3 → 0.14.5
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 +29 -0
- package/esm/federation/middleware.js +9 -0
- package/esm/vocab/vocab.js +293 -89
- package/package.json +1 -1
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +63 -0
- package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -3,6 +3,25 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 0.14.5
|
7
|
+
--------------
|
8
|
+
|
9
|
+
Released on September 26, 2024.
|
10
|
+
|
11
|
+
- Fixed a bug of `Object.toJsonLd()` method where it had not fall back to
|
12
|
+
the proper compact form when the heuristic compact form was not available.
|
13
|
+
|
14
|
+
|
15
|
+
Version 0.14.4
|
16
|
+
--------------
|
17
|
+
|
18
|
+
Released on September 6, 2024.
|
19
|
+
|
20
|
+
- Fixed a bug of `Object.fromJsonLd()` method where it had thrown
|
21
|
+
a `TypeError` when the given JSON-LD object had an `@id` property
|
22
|
+
with an empty string.
|
23
|
+
|
24
|
+
|
6
25
|
Version 0.14.3
|
7
26
|
--------------
|
8
27
|
|
@@ -128,6 +147,16 @@ Released on August 27, 2024.
|
|
128
147
|
[#115]: https://github.com/dahlia/fedify/issues/115
|
129
148
|
|
130
149
|
|
150
|
+
Version 0.13.5
|
151
|
+
--------------
|
152
|
+
|
153
|
+
Released on September 6, 2024.
|
154
|
+
|
155
|
+
- Fixed a bug of `Object.fromJsonLd()` method where it had thrown
|
156
|
+
a `TypeError` when the given JSON-LD object had an `@id` property
|
157
|
+
with an empty string.
|
158
|
+
|
159
|
+
|
131
160
|
Version 0.13.4
|
132
161
|
--------------
|
133
162
|
|
@@ -323,6 +323,15 @@ class FederationImpl {
|
|
323
323
|
if (actor == null)
|
324
324
|
return null;
|
325
325
|
const logger = getLogger(["fedify", "federation", "actor"]);
|
326
|
+
if (actor.id == null) {
|
327
|
+
logger.warn("Actor dispatcher returned an actor without an id property. " +
|
328
|
+
"Set the property with Context.getActorUri(handle).");
|
329
|
+
}
|
330
|
+
else if (actor.id.href != context.getActorUri(handle).href) {
|
331
|
+
logger.warn("Actor dispatcher returned an actor with an id property that " +
|
332
|
+
"does not match the actor URI. Set the property with " +
|
333
|
+
"Context.getActorUri(handle).");
|
334
|
+
}
|
326
335
|
if (this.followingCallbacks != null &&
|
327
336
|
this.followingCallbacks.dispatcher != null) {
|
328
337
|
if (actor.followingId == null) {
|