@fedify/fedify 1.2.6 → 1.2.7

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,15 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.2.7
7
+ -------------
8
+
9
+ Released on December 22, 2024.
10
+
11
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
12
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
13
+
14
+
6
15
  Version 1.2.6
7
16
  -------------
8
17
 
@@ -184,6 +193,15 @@ Released on October 31, 2024.
184
193
  [#118]: https://github.com/dahlia/fedify/issues/118
185
194
 
186
195
 
196
+ Version 1.1.7
197
+ -------------
198
+
199
+ Released on November 22, 2024.
200
+
201
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
202
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
203
+
204
+
187
205
  Version 1.1.6
188
206
  -------------
189
207
 
@@ -406,6 +424,15 @@ Released on October 20, 2024.
406
424
  [#150]: https://github.com/dahlia/fedify/issues/150
407
425
 
408
426
 
427
+ Version 1.0.11
428
+ --------------
429
+
430
+ Released on December 22, 2024.
431
+
432
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
433
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
434
+
435
+
409
436
  Version 1.0.10
410
437
  --------------
411
438
 
@@ -747,10 +774,21 @@ Released on September 26, 2024.
747
774
  [#137]: https://github.com/dahlia/fedify/issues/137
748
775
 
749
776
 
777
+ Version 0.15.9
778
+ --------------
779
+
780
+ Released on November 22, 2024.
781
+
782
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
783
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
784
+
785
+ [#166]: https://github.com/dahlia/fedify/issues/166
786
+
787
+
750
788
  Version 0.15.8
751
789
  --------------
752
790
 
753
- Released on November 159, 2024.
791
+ Released on November 19, 2024.
754
792
 
755
793
  - Fix a bug where `Actor`'s `inbox` and `outbox` properties had not been
756
794
  able to be set to an `OrderedCollectionPage` object, even though it is
@@ -40,7 +40,7 @@ export async function lookupWebFinger(resource) {
40
40
  }
41
41
  if (response.status >= 300 && response.status < 400 &&
42
42
  response.headers.has("Location")) {
43
- url = new URL(response.headers.get("Location"));
43
+ url = new URL(response.headers.get("Location"), response.url == null || response.url === "" ? url : response.url);
44
44
  continue;
45
45
  }
46
46
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/webfinger/lookup.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,GAAG,GAAG,MAAM,GACrB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAgEpC"}
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/webfinger/lookup.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,GAAG,GAAG,MAAM,GACrB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAmEpC"}