@fedify/fedify 1.3.0-dev.514 → 1.3.0-dev.522

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. package/CHANGES.md +39 -1
  2. package/esm/deno.js +1 -1
  3. package/esm/federation/handler.js +1 -1
  4. package/esm/vocab/lookup.js +1 -1
  5. package/esm/webfinger/lookup.js +1 -1
  6. package/package.json +1 -1
  7. package/types/deps/jsr.io/@std/async/{1.0.8 → 1.0.9}/delay.d.ts.map +1 -1
  8. package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/common.d.ts.map +1 -1
  9. package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/encoding.d.ts.map +1 -1
  10. package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/language.d.ts.map +1 -1
  11. package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/media_type.d.ts.map +1 -1
  12. package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/negotiation.d.ts.map +1 -1
  13. package/types/webfinger/lookup.d.ts.map +1 -1
  14. /package/esm/deps/jsr.io/@std/async/{1.0.8 → 1.0.9}/delay.js +0 -0
  15. /package/esm/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/common.js +0 -0
  16. /package/esm/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/encoding.js +0 -0
  17. /package/esm/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/language.js +0 -0
  18. /package/esm/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/media_type.js +0 -0
  19. /package/esm/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/negotiation.js +0 -0
  20. /package/types/deps/jsr.io/@std/async/{1.0.8 → 1.0.9}/delay.d.ts +0 -0
  21. /package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/common.d.ts +0 -0
  22. /package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/encoding.d.ts +0 -0
  23. /package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/language.d.ts +0 -0
  24. /package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/_negotiation/media_type.d.ts +0 -0
  25. /package/types/deps/jsr.io/@std/http/{1.0.10 → 1.0.11}/negotiation.d.ts +0 -0
package/CHANGES.md CHANGED
@@ -68,6 +68,15 @@ To be released.
68
68
  [#162]: https://github.com/dahlia/fedify/issues/162
69
69
 
70
70
 
71
+ Version 1.2.7
72
+ -------------
73
+
74
+ Released on December 22, 2024.
75
+
76
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
77
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
78
+
79
+
71
80
  Version 1.2.6
72
81
  -------------
73
82
 
@@ -249,6 +258,15 @@ Released on October 31, 2024.
249
258
  [#118]: https://github.com/dahlia/fedify/issues/118
250
259
 
251
260
 
261
+ Version 1.1.7
262
+ -------------
263
+
264
+ Released on November 22, 2024.
265
+
266
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
267
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
268
+
269
+
252
270
  Version 1.1.6
253
271
  -------------
254
272
 
@@ -471,6 +489,15 @@ Released on October 20, 2024.
471
489
  [#150]: https://github.com/dahlia/fedify/issues/150
472
490
 
473
491
 
492
+ Version 1.0.11
493
+ --------------
494
+
495
+ Released on December 22, 2024.
496
+
497
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
498
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
499
+
500
+
474
501
  Version 1.0.10
475
502
  --------------
476
503
 
@@ -812,10 +839,21 @@ Released on September 26, 2024.
812
839
  [#137]: https://github.com/dahlia/fedify/issues/137
813
840
 
814
841
 
842
+ Version 0.15.9
843
+ --------------
844
+
845
+ Released on November 22, 2024.
846
+
847
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
848
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
849
+
850
+ [#166]: https://github.com/dahlia/fedify/issues/166
851
+
852
+
815
853
  Version 0.15.8
816
854
  --------------
817
855
 
818
- Released on November 159, 2024.
856
+ Released on November 19, 2024.
819
857
 
820
858
  - Fix a bug where `Actor`'s `inbox` and `outbox` properties had not been
821
859
  able to be set to an `OrderedCollectionPage` object, even though it is
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.3.0-dev.514+006c410a",
3
+ "version": "1.3.0-dev.522+d72d1e95",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { accepts } from "../deps/jsr.io/@std/http/1.0.10/negotiation.js";
3
+ import { accepts } from "../deps/jsr.io/@std/http/1.0.11/negotiation.js";
4
4
  import { verifyRequest } from "../sig/http.js";
5
5
  import { detachSignature, verifyJsonLd } from "../sig/ld.js";
6
6
  import { doesActorOwnKey } from "../sig/owner.js";
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { delay } from "../deps/jsr.io/@std/async/1.0.8/delay.js";
3
+ import { delay } from "../deps/jsr.io/@std/async/1.0.9/delay.js";
4
4
  import { getDocumentLoader, } from "../runtime/docloader.js";
5
5
  import { lookupWebFinger } from "../webfinger/lookup.js";
6
6
  import { Object } from "./vocab.js";
@@ -47,7 +47,7 @@ export async function lookupWebFinger(resource, options = {}) {
47
47
  }
48
48
  if (response.status >= 300 && response.status < 400 &&
49
49
  response.headers.has("Location")) {
50
- url = new URL(response.headers.get("Location"));
50
+ url = new URL(response.headers.get("Location"), response.url == null || response.url === "" ? url : response.url);
51
51
  continue;
52
52
  }
53
53
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.3.0-dev.514+006c410a",
3
+ "version": "1.3.0-dev.522+d72d1e95",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.8/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
1
+ {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.9/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.10/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.11/_negotiation/common.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM,CAQnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.10/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA8GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
1
+ {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.11/_negotiation/encoding.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA8GH;;qCAEqC;AACrC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.10/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
1
+ {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.11/_negotiation/language.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkGH,wBAAgB,kBAAkB,CAChC,MAAM,SAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAiBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.10/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
1
+ {"version":3,"file":"media_type.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/http/1.0.11/_negotiation/media_type.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAiJH,wBAAgB,mBAAmB,CACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,MAAM,EAAE,CAkBV"}
@@ -1 +1 @@
1
- {"version":3,"file":"negotiation.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/http/1.0.10/negotiation.ts"],"names":[],"mappings":";AAcA;;;;;;;;;;;;;;;;;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CAqEpC"}
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/webfinger/lookup.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAC;CAC1C;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,GAAG,GAAG,MAAM,EACtB,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAwEpC"}