@fedify/fedify 1.3.20 → 1.3.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.3.21
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.3.20
7
18
  --------------
8
19
 
@@ -383,6 +394,17 @@ Released on November 30, 2024.
383
394
  [#193]: https://github.com/fedify-dev/fedify/issues/193
384
395
 
385
396
 
397
+ Version 1.2.24
398
+ --------------
399
+
400
+ Released on August 25, 2025.
401
+
402
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
403
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
404
+ whitespace before the self-closing slash (`/>`), improving compatibility
405
+ with XHTML documents that follow the self-closing tag format.
406
+
407
+
386
408
  Version 1.2.23
387
409
  --------------
388
410
 
@@ -796,6 +818,17 @@ Released on October 31, 2024.
796
818
  [#118]: https://github.com/fedify-dev/fedify/issues/118
797
819
 
798
820
 
821
+ Version 1.1.24
822
+ --------------
823
+
824
+ Released on August 25, 2025.
825
+
826
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
827
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
828
+ whitespace before the self-closing slash (`/>`), improving compatibility
829
+ with XHTML documents that follow the self-closing tag format.
830
+
831
+
799
832
  Version 1.1.23
800
833
  --------------
801
834
 
@@ -1250,6 +1283,17 @@ Released on October 20, 2024.
1250
1283
  [#150]: https://github.com/fedify-dev/fedify/issues/150
1251
1284
 
1252
1285
 
1286
+ Version 1.0.27
1287
+ --------------
1288
+
1289
+ Released on August 25, 2025.
1290
+
1291
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
1292
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
1293
+ whitespace before the self-closing slash (`/>`), improving compatibility
1294
+ with XHTML documents that follow the self-closing tag format.
1295
+
1296
+
1253
1297
  Version 1.0.26
1254
1298
  --------------
1255
1299
 
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.3.20",
3
+ "version": "1.3.21",
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;