@fedify/fedify 1.0.23 → 1.0.24

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
@@ -3,6 +3,20 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.0.24
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
+ [RFC 3339]: https://datatracker.ietf.org/doc/html/rfc3339
17
+ [#226]: https://github.com/fedify-dev/fedify/issues/226
18
+
19
+
6
20
  Version 1.0.23
7
21
  --------------
8
22
 
@@ -4211,7 +4211,9 @@ export class Object {
4211
4211
  : _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime__array) {
4212
4212
  if (v == null)
4213
4213
  continue;
4214
- _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(dntShim.Temporal.Instant.from(v["@value"]));
4214
+ _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
4215
+ ? v["@value"]
4216
+ : v["@value"] + "Z"));
4215
4217
  }
4216
4218
  instance.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime =
4217
4219
  _219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
@@ -4631,7 +4633,9 @@ export class Object {
4631
4633
  : _5e258TDXtuhaFRPZiGoDfEpjdMr_published__array) {
4632
4634
  if (v == null)
4633
4635
  continue;
4634
- _5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(dntShim.Temporal.Instant.from(v["@value"]));
4636
+ _5e258TDXtuhaFRPZiGoDfEpjdMr_published.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
4637
+ ? v["@value"]
4638
+ : v["@value"] + "Z"));
4635
4639
  }
4636
4640
  instance.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published =
4637
4641
  _5e258TDXtuhaFRPZiGoDfEpjdMr_published;
@@ -4666,7 +4670,9 @@ export class Object {
4666
4670
  : _2w3Jmue4up8iVDUA51WZqomEF438_startTime__array) {
4667
4671
  if (v == null)
4668
4672
  continue;
4669
- _2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(dntShim.Temporal.Instant.from(v["@value"]));
4673
+ _2w3Jmue4up8iVDUA51WZqomEF438_startTime.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
4674
+ ? v["@value"]
4675
+ : v["@value"] + "Z"));
4670
4676
  }
4671
4677
  instance.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime =
4672
4678
  _2w3Jmue4up8iVDUA51WZqomEF438_startTime;
@@ -4795,7 +4801,9 @@ export class Object {
4795
4801
  : _385aB7ySixcf5Un6z3VsWmThgCzQ_updated__array) {
4796
4802
  if (v == null)
4797
4803
  continue;
4798
- _385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(dntShim.Temporal.Instant.from(v["@value"]));
4804
+ _385aB7ySixcf5Un6z3VsWmThgCzQ_updated.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
4805
+ ? v["@value"]
4806
+ : v["@value"] + "Z"));
4799
4807
  }
4800
4808
  instance.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated =
4801
4809
  _385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
@@ -6789,7 +6797,9 @@ export class DataIntegrityProof {
6789
6797
  : _3qzP3ukEZoUziK5FEiA1RhU4aqac__array) {
6790
6798
  if (v == null)
6791
6799
  continue;
6792
- _3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"]));
6800
+ _3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
6801
+ ? v["@value"]
6802
+ : v["@value"] + "Z"));
6793
6803
  }
6794
6804
  instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
6795
6805
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
@@ -31561,8 +31571,12 @@ export class Question extends IntransitiveActivity {
31561
31571
  continue;
31562
31572
  const decoded = typeof v === "object" && "@type" in v &&
31563
31573
  "@value" in v && typeof v["@value"] === "string" &&
31564
- v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime"
31565
- ? dntShim.Temporal.Instant.from(v["@value"])
31574
+ v["@type"] === "http://www.w3.org/2001/XMLSchema#dateTime" &&
31575
+ // Check if the value is a valid RFC 3339 date-time string
31576
+ new Date(v["@value"]).toString() !== "Invalid Date"
31577
+ ? dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
31578
+ ? v["@value"]
31579
+ : v["@value"] + "Z")
31566
31580
  : typeof v === "object" && "@value" in v &&
31567
31581
  typeof v["@value"] === "boolean"
31568
31582
  ? v["@value"]
@@ -36694,7 +36708,9 @@ export class Tombstone extends Object {
36694
36708
  : _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted__array) {
36695
36709
  if (v == null)
36696
36710
  continue;
36697
- _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(dntShim.Temporal.Instant.from(v["@value"]));
36711
+ _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.push(dntShim.Temporal.Instant.from(v["@value"].substring(19).match(/[Z+-]/)
36712
+ ? v["@value"]
36713
+ : v["@value"] + "Z"));
36698
36714
  }
36699
36715
  instance.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted =
36700
36716
  _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",