@fedify/fedify 1.2.20 → 1.2.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 +58 -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.2.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.2.20
|
7
29
|
--------------
|
8
30
|
|
@@ -369,6 +391,28 @@ Released on October 31, 2024.
|
|
369
391
|
[#118]: https://github.com/dahlia/fedify/issues/118
|
370
392
|
|
371
393
|
|
394
|
+
Version 1.1.21
|
395
|
+
--------------
|
396
|
+
|
397
|
+
Released on April 8, 2025.
|
398
|
+
|
399
|
+
- Activity Vocabulary API became to accept [RFC 3339] date-time strings
|
400
|
+
without a timezone offset. This is not a bug fix, but improves
|
401
|
+
interoperability with some implementations that do not include a timezone
|
402
|
+
offset in their date-time strings including WordPress. [[#226]]
|
403
|
+
|
404
|
+
- Added the following default context to `Undo` class:
|
405
|
+
|
406
|
+
~~~~ json
|
407
|
+
{
|
408
|
+
"litepub": "http://litepub.social/ns#",
|
409
|
+
"toot": "http://joinmastodon.org/ns#",
|
410
|
+
"EmojiReact": "litepub:EmojiReact",
|
411
|
+
"Emoji": "toot:Emoji"
|
412
|
+
}
|
413
|
+
~~~~
|
414
|
+
|
415
|
+
|
372
416
|
Version 1.1.20
|
373
417
|
--------------
|
374
418
|
|
@@ -776,6 +820,20 @@ Released on October 20, 2024.
|
|
776
820
|
[#150]: https://github.com/dahlia/fedify/issues/150
|
777
821
|
|
778
822
|
|
823
|
+
Version 1.0.24
|
824
|
+
--------------
|
825
|
+
|
826
|
+
Released on April 8, 2025.
|
827
|
+
|
828
|
+
- Activity Vocabulary API became to accept [RFC 3339] date-time strings
|
829
|
+
without a timezone offset. This is not a bug fix, but improves
|
830
|
+
interoperability with some implementations that do not include a timezone
|
831
|
+
offset in their date-time strings including WordPress. [[#226]]
|
832
|
+
|
833
|
+
[RFC 3339]: https://datatracker.ietf.org/doc/html/rfc3339
|
834
|
+
[#226]: https://github.com/fedify-dev/fedify/issues/226
|
835
|
+
|
836
|
+
|
779
837
|
Version 1.0.23
|
780
838
|
--------------
|
781
839
|
|
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) {
|
@@ -34289,8 +34299,12 @@ export class Question extends IntransitiveActivity {
|
|
34289
34299
|
continue;
|
34290
34300
|
const decoded = typeof v === "object" && "@type" in v &&
|
34291
34301
|
"@value" in v && typeof v["@value"] === "string" &&
|
34292
|
-
v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime"
|
34293
|
-
|
34302
|
+
v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" &&
|
34303
|
+
// Check if the value is a valid RFC 3339 date-time string
|
34304
|
+
new Date(v["@value"]).toString() !== "Invalid Date"
|
34305
|
+
? dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
34306
|
+
? v["@value"]
|
34307
|
+
: v["@value"] + "Z")
|
34294
34308
|
: typeof v === "object" && "@value" in v &&
|
34295
34309
|
typeof v["@value"] === "boolean"
|
34296
34310
|
? v["@value"]
|
@@ -39953,7 +39967,9 @@ export class Tombstone extends Object {
|
|
39953
39967
|
: _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
|
39954
39968
|
if (v == null)
|
39955
39969
|
continue;
|
39956
|
-
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(dntShim.Temporal.Instant.from(v["@value"]))
|
39970
|
+
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
|
39971
|
+
? v["@value"]
|
39972
|
+
: v["@value"] + "Z"));
|
39957
39973
|
}
|
39958
39974
|
instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted =
|
39959
39975
|
_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
@@ -40230,6 +40246,12 @@ export class Undo extends Activity {
|
|
40230
40246
|
"https://w3id.org/security/data-integrity/v1",
|
40231
40247
|
"https://www.w3.org/ns/did/v1",
|
40232
40248
|
"https://w3id.org/security/multikey/v1",
|
40249
|
+
{
|
40250
|
+
"litepub": "http://litepub.social/ns#",
|
40251
|
+
"toot": "http://joinmastodon.org/ns#",
|
40252
|
+
"EmojiReact": "litepub:EmojiReact",
|
40253
|
+
"Emoji": "toot:Emoji",
|
40254
|
+
},
|
40233
40255
|
];
|
40234
40256
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
40235
40257
|
if (docContext != null) {
|