@fedify/fedify 0.15.0-dev.378 → 0.15.0-dev.381

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -29,6 +29,16 @@ To be released.
29
29
  object.
30
30
 
31
31
 
32
+ Version 0.14.4
33
+ --------------
34
+
35
+ Released on September 6, 2024.
36
+
37
+ - Fixed a bug of `Object.fromJsonLd()` method where it had thrown
38
+ a `TypeError` when the given JSON-LD object had an `@id` property
39
+ with an empty string.
40
+
41
+
32
42
  Version 0.14.3
33
43
  --------------
34
44
 
@@ -154,6 +164,16 @@ Released on August 27, 2024.
154
164
  [#115]: https://github.com/dahlia/fedify/issues/115
155
165
 
156
166
 
167
+ Version 0.13.5
168
+ --------------
169
+
170
+ Released on September 6, 2024.
171
+
172
+ - Fixed a bug of `Object.fromJsonLd()` method where it had thrown
173
+ a `TypeError` when the given JSON-LD object had an `@id` property
174
+ with an empty string.
175
+
176
+
157
177
  Version 0.13.4
158
178
  --------------
159
179
 
@@ -4695,7 +4695,8 @@ export class Object {
4695
4695
  if (v == null)
4696
4696
  continue;
4697
4697
  const decoded = typeof v === "object" && "@id" in v &&
4698
- typeof v["@id"] === "string"
4698
+ typeof v["@id"] === "string" &&
4699
+ v["@id"] !== "" && v["@id"] !== "/"
4699
4700
  ? new URL(v["@id"])
4700
4701
  : typeof v === "object" && "@type" in v &&
4701
4702
  Array.isArray(v["@type"]) &&
@@ -28989,7 +28990,8 @@ export class Place extends Object {
28989
28990
  v["@value"] == "m" || v["@value"] == "miles")
28990
28991
  ? v["@value"]
28991
28992
  : typeof v === "object" && "@id" in v &&
28992
- typeof v["@id"] === "string"
28993
+ typeof v["@id"] === "string" &&
28994
+ v["@id"] !== "" && v["@id"] !== "/"
28993
28995
  ? new URL(v["@id"])
28994
28996
  : undefined;
28995
28997
  if (typeof decoded === "undefined")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.15.0-dev.378+4fe33d04",
3
+ "version": "0.15.0-dev.381+af99094c",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",