@fedify/fedify 1.1.20 → 1.1.21
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 +36 -0
- package/esm/vocab/undo.yaml +4 -0
- package/esm/vocab/vocab.js +30 -8
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -3,6 +3,28 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.1.21
|
7
|
+
--------------
|
8
|
+
|
9
|
+
Released on April 8, 2025.
|
10
|
+
|
11
|
+
- Activity Vocabulary API became to accept [RFC 3339] date-time strings
|
12
|
+
without a timezone offset. This is not a bug fix, but improves
|
13
|
+
interoperability with some implementations that do not include a timezone
|
14
|
+
offset in their date-time strings including WordPress. [[#226]]
|
15
|
+
|
16
|
+
- Added the following default context to `Undo` class:
|
17
|
+
|
18
|
+
~~~~ json
|
19
|
+
{
|
20
|
+
"litepub": "http://litepub.social/ns#",
|
21
|
+
"toot": "http://joinmastodon.org/ns#",
|
22
|
+
"EmojiReact": "litepub:EmojiReact",
|
23
|
+
"Emoji": "toot:Emoji"
|
24
|
+
}
|
25
|
+
~~~~
|
26
|
+
|
27
|
+
|
6
28
|
Version 1.1.20
|
7
29
|
--------------
|
8
30
|
|
@@ -410,6 +432,20 @@ Released on October 20, 2024.
|
|
410
432
|
[#150]: https://github.com/dahlia/fedify/issues/150
|
411
433
|
|
412
434
|
|
435
|
+
Version 1.0.24
|
436
|
+
--------------
|
437
|
+
|
438
|
+
Released on April 8, 2025.
|
439
|
+
|
440
|
+
- Activity Vocabulary API became to accept [RFC 3339] date-time strings
|
441
|
+
without a timezone offset. This is not a bug fix, but improves
|
442
|
+
interoperability with some implementations that do not include a timezone
|
443
|
+
offset in their date-time strings including WordPress. [[#226]]
|
444
|
+
|
445
|
+
[RFC 3339]: https://datatracker.ietf.org/doc/html/rfc3339
|
446
|
+
[#226]: https://github.com/fedify-dev/fedify/issues/226
|
447
|
+
|
448
|
+
|
413
449
|
Version 1.0.23
|
414
450
|
--------------
|
415
451
|
|
package/esm/vocab/undo.yaml
CHANGED
@@ -19,4 +19,8 @@ defaultContext:
|
|
19
19
|
- "https://w3id.org/security/data-integrity/v1"
|
20
20
|
- "https://www.w3.org/ns/did/v1"
|
21
21
|
- "https://w3id.org/security/multikey/v1"
|
22
|
+
- litepub: "http://litepub.social/ns#"
|
23
|
+
toot: "http://joinmastodon.org/ns#"
|
24
|
+
EmojiReact: "litepub:EmojiReact"
|
25
|
+
Emoji: "toot:Emoji"
|
22
26
|
properties: []
|
package/esm/vocab/vocab.js
CHANGED
@@ -4216,7 +4216,9 @@ export class Object {
|
|
4216
4216
|
: _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array) {
|
4217
4217
|
if (v == null)
|
4218
4218
|
continue;
|
4219
|
-
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(dntShim.Temporal.Instant.from(v["@value"]))
|
4219
|
+
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
4220
|
+
? v["@value"]
|
4221
|
+
: v["@value"] + "Z"));
|
4220
4222
|
}
|
4221
4223
|
instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime =
|
4222
4224
|
_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
@@ -4640,7 +4642,9 @@ export class Object {
|
|
4640
4642
|
: _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array) {
|
4641
4643
|
if (v == null)
|
4642
4644
|
continue;
|
4643
|
-
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(dntShim.Temporal.Instant.from(v["@value"]))
|
4645
|
+
_5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
4646
|
+
? v["@value"]
|
4647
|
+
: v["@value"] + "Z"));
|
4644
4648
|
}
|
4645
4649
|
instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published =
|
4646
4650
|
_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
@@ -4675,7 +4679,9 @@ export class Object {
|
|
4675
4679
|
: _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array) {
|
4676
4680
|
if (v == null)
|
4677
4681
|
continue;
|
4678
|
-
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(dntShim.Temporal.Instant.from(v["@value"]))
|
4682
|
+
_2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
4683
|
+
? v["@value"]
|
4684
|
+
: v["@value"] + "Z"));
|
4679
4685
|
}
|
4680
4686
|
instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime =
|
4681
4687
|
_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
@@ -4805,7 +4811,9 @@ export class Object {
|
|
4805
4811
|
: _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array) {
|
4806
4812
|
if (v == null)
|
4807
4813
|
continue;
|
4808
|
-
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(dntShim.Temporal.Instant.from(v["@value"]))
|
4814
|
+
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
4815
|
+
? v["@value"]
|
4816
|
+
: v["@value"] + "Z"));
|
4809
4817
|
}
|
4810
4818
|
instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated =
|
4811
4819
|
_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
@@ -8858,7 +8866,9 @@ export class DataIntegrityProof {
|
|
8858
8866
|
: _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
|
8859
8867
|
if (v == null)
|
8860
8868
|
continue;
|
8861
|
-
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"]))
|
8869
|
+
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
8870
|
+
? v["@value"]
|
8871
|
+
: v["@value"] + "Z"));
|
8862
8872
|
}
|
8863
8873
|
instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
8864
8874
|
if (!("_fromSubclass" in options) || !options._fromSubclass) {
|
@@ -33953,8 +33963,12 @@ export class Question extends IntransitiveActivity {
|
|
33953
33963
|
continue;
|
33954
33964
|
const decoded = typeof v === "object" && "@type" in v &&
|
33955
33965
|
"@value" in v && typeof v["@value"] === "string" &&
|
33956
|
-
v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime"
|
33957
|
-
|
33966
|
+
v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" &&
|
33967
|
+
// Check if the value is a valid RFC 3339 date-time string
|
33968
|
+
new Date(v["@value"]).toString() !== "Invalid Date"
|
33969
|
+
? dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
33970
|
+
? v["@value"]
|
33971
|
+
: v["@value"] + "Z")
|
33958
33972
|
: typeof v === "object" && "@value" in v &&
|
33959
33973
|
typeof v["@value"] === "boolean"
|
33960
33974
|
? v["@value"]
|
@@ -39533,7 +39547,9 @@ export class Tombstone extends Object {
|
|
39533
39547
|
: _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
|
39534
39548
|
if (v == null)
|
39535
39549
|
continue;
|
39536
|
-
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(dntShim.Temporal.Instant.from(v["@value"]))
|
39550
|
+
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
39551
|
+
? v["@value"]
|
39552
|
+
: v["@value"] + "Z"));
|
39537
39553
|
}
|
39538
39554
|
instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted =
|
39539
39555
|
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
@@ -39810,6 +39826,12 @@ export class Undo extends Activity {
|
|
39810
39826
|
"https://w3id.org/security/data-integrity/v1",
|
39811
39827
|
"https://www.w3.org/ns/did/v1",
|
39812
39828
|
"https://w3id.org/security/multikey/v1",
|
39829
|
+
{
|
39830
|
+
"litepub": "http://litepub.social/ns#",
|
39831
|
+
"toot": "http://joinmastodon.org/ns#",
|
39832
|
+
"EmojiReact": "litepub:EmojiReact",
|
39833
|
+
"Emoji": "toot:Emoji",
|
39834
|
+
},
|
39813
39835
|
];
|
39814
39836
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
39815
39837
|
if (docContext != null) {
|