@fedify/fedify 1.5.5 → 1.5.6

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.5.6
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.5.5
7
18
  -------------
8
19
 
@@ -190,6 +201,17 @@ Released on March 28, 2025.
190
201
  [multibase]: https://github.com/multiformats/js-multibase
191
202
 
192
203
 
204
+ Version 1.4.14
205
+ --------------
206
+
207
+ Released on August 25, 2025.
208
+
209
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
210
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
211
+ whitespace before the self-closing slash (`/>`), improving compatibility
212
+ with XHTML documents that follow the self-closing tag format.
213
+
214
+
193
215
  Version 1.4.13
194
216
  --------------
195
217
 
@@ -452,6 +474,17 @@ Released on February 5, 2025.
452
474
  [#195]: https://github.com/fedify-dev/fedify/issues/195
453
475
 
454
476
 
477
+ Version 1.3.21
478
+ --------------
479
+
480
+ Released on August 25, 2025.
481
+
482
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
483
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
484
+ whitespace before the self-closing slash (`/>`), improving compatibility
485
+ with XHTML documents that follow the self-closing tag format.
486
+
487
+
455
488
  Version 1.3.20
456
489
  --------------
457
490
 
@@ -832,6 +865,17 @@ Released on November 30, 2024.
832
865
  [#193]: https://github.com/fedify-dev/fedify/issues/193
833
866
 
834
867
 
868
+ Version 1.2.24
869
+ --------------
870
+
871
+ Released on August 25, 2025.
872
+
873
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
874
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
875
+ whitespace before the self-closing slash (`/>`), improving compatibility
876
+ with XHTML documents that follow the self-closing tag format.
877
+
878
+
835
879
  Version 1.2.23
836
880
  --------------
837
881
 
@@ -1245,6 +1289,17 @@ Released on October 31, 2024.
1245
1289
  [#118]: https://github.com/fedify-dev/fedify/issues/118
1246
1290
 
1247
1291
 
1292
+ Version 1.1.24
1293
+ --------------
1294
+
1295
+ Released on August 25, 2025.
1296
+
1297
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
1298
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
1299
+ whitespace before the self-closing slash (`/>`), improving compatibility
1300
+ with XHTML documents that follow the self-closing tag format.
1301
+
1302
+
1248
1303
  Version 1.1.23
1249
1304
  --------------
1250
1305
 
@@ -1699,6 +1754,17 @@ Released on October 20, 2024.
1699
1754
  [#150]: https://github.com/fedify-dev/fedify/issues/150
1700
1755
 
1701
1756
 
1757
+ Version 1.0.27
1758
+ --------------
1759
+
1760
+ Released on August 25, 2025.
1761
+
1762
+ - Fixed a bug where ActivityPub Discovery failed to recognize XHTML
1763
+ self-closing `<link>` tags. The HTML/XHTML parser now correctly handles
1764
+ whitespace before the self-closing slash (`/>`), improving compatibility
1765
+ with XHTML documents that follow the self-closing tag format.
1766
+
1767
+
1702
1768
  Version 1.0.26
1703
1769
  --------------
1704
1770
 
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
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;