@fedify/fedify 1.4.13 → 1.4.14

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,17 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.4.14
7
+ --------------
8
+
9
+ Released on August 25, 2025.
10
+
11
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
12
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
13
+ whitespace before the self-closing slash (`/>`), improving compatibility
14
+ with XHTML documents that follow the self-closing tag format.
15
+
16
+
6
17
  Version 1.4.13
7
18
  --------------
8
19
 
@@ -265,6 +276,17 @@ Released on February 5, 2025.
265
276
  [#195]: https://github.com/fedify-dev/fedify/issues/195
266
277
 
267
278
 
279
+ Version 1.3.21
280
+ --------------
281
+
282
+ Released on August 25, 2025.
283
+
284
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
285
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
286
+ whitespace before the self-closing slash (`/>`), improving compatibility
287
+ with XHTML documents that follow the self-closing tag format.
288
+
289
+
268
290
  Version 1.3.20
269
291
  --------------
270
292
 
@@ -645,6 +667,17 @@ Released on November 30, 2024.
645
667
  [#193]: https://github.com/fedify-dev/fedify/issues/193
646
668
 
647
669
 
670
+ Version 1.2.24
671
+ --------------
672
+
673
+ Released on August 25, 2025.
674
+
675
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
676
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
677
+ whitespace before the self-closing slash (`/>`), improving compatibility
678
+ with XHTML documents that follow the self-closing tag format.
679
+
680
+
648
681
  Version 1.2.23
649
682
  --------------
650
683
 
@@ -1058,6 +1091,17 @@ Released on October 31, 2024.
1058
1091
  [#118]: https://github.com/fedify-dev/fedify/issues/118
1059
1092
 
1060
1093
 
1094
+ Version 1.1.24
1095
+ --------------
1096
+
1097
+ Released on August 25, 2025.
1098
+
1099
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
1100
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
1101
+ whitespace before the self-closing slash (`/>`), improving compatibility
1102
+ with XHTML documents that follow the self-closing tag format.
1103
+
1104
+
1061
1105
  Version 1.1.23
1062
1106
  --------------
1063
1107
 
@@ -1512,6 +1556,17 @@ Released on October 20, 2024.
1512
1556
  [#150]: https://github.com/fedify-dev/fedify/issues/150
1513
1557
 
1514
1558
 
1559
+ Version 1.0.27
1560
+ --------------
1561
+
1562
+ Released on August 25, 2025.
1563
+
1564
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
1565
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
1566
+ whitespace before the self-closing slash (`/>`), improving compatibility
1567
+ with XHTML documents that follow the self-closing tag format.
1568
+
1569
+
1515
1570
  Version 1.0.26
1516
1571
  --------------
1517
1572
 
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -108,7 +108,7 @@ async function getRemoteDocument(url, response, fetch) {
108
108
  (contentType === "text/html" || contentType?.startsWith("text/html;") ||
109
109
  contentType === "application/xhtml+xml" ||
110
110
  contentType?.startsWith("application/xhtml+xml;"))) {
111
- const p = /<(a|link)((\s+[a-z][a-z:_-]*=("[^"]*"|'[^']*'|[^\s>]+))+)\/?>/ig;
111
+ const p = /<(a|link)((\s+[a-z][a-z:_-]*=("[^"]*"|'[^']*'|[^\s>]+))+)\s*\/?>/ig;
112
112
  const p2 = /\s+([a-z][a-z:_-]*)=("([^"]*)"|'([^']*)'|([^\s>]+))/ig;
113
113
  const html = await response.text();
114
114
  let m;