Unverified Commit 1711224a authored by Hong Minhee's avatar Hong Minhee
Browse files

Remove deprecated APIs

parent 410cc775
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -77,6 +77,16 @@ To be released.
 -  The last parameter of `Federation.sendActivity()` method is no longer
    optional.  Also, it now takes the required `contextData` option.

 -  Removed `Context.getHandleFromActorUri()` method which was deprecated in
    version 0.9.0.  Use `Context.parseUri()` method instead.

 -  Removed `@fedify/fedify/httpsig` module which was deprecated in version
    0.9.0.  Use `@fedify/fedify/sig` module instead.

     -  Removed `sign()` function.
     -  Removed `verify()` function.
     -  Removed `VerifyOptions` interface.

 -  Fixed a SSRF vulnerability in the built-in document loader.
    [[CVE-2024-39687]]

+0 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
  "exports": {
    ".": "./mod.ts",
    "./federation": "./federation/mod.ts",
    "./httpsig": "./httpsig/mod.ts",
    "./nodeinfo": "./nodeinfo/mod.ts",
    "./runtime": "./runtime/mod.ts",
    "./sig": "./sig/mod.ts",
+0 −9
Original line number Diff line number Diff line
@@ -165,15 +165,6 @@ The `["fedify", "federation", "queue"]` category is used for logging messages
related to the task queue.  When you are curious about the task queue, you can
check the log messages in this category with the `"debug"` level.

### `["fedify", "httpsig", "verify"]`

*This category is available since Fedify 0.8.0.*

The `["fedify", "httpsig", "verify"]` category is used for logging messages
related to the verification of HTTP Signatures.  When you are curious about
the verification process, you can check the log messages in this category with
the `"debug"` level.

### `["fedify", "runtime", "docloader"]`

*This category is available since Fedify 0.8.0.*
+0 −8
Original line number Diff line number Diff line
@@ -154,14 +154,6 @@ export interface Context<TContextData> {
   */
  parseUri(uri: URL): ParseUriResult | null;

  /**
   * Extracts the actor's handle from an actor URI, if it is a valid actor URI.
   * @param actorUri The actor's URI.
   * @returns The actor's handle, or `null` if the URI is not a valid actor URI.
   * @deprecated Use {@link Context.parseUri} instead.
   */
  getHandleFromActorUri(actorUri: URL): string | null;

  /**
   * Gets the key pairs for an actor.
   * @param handle The actor's handle.
+0 −12
Original line number Diff line number Diff line
@@ -83,10 +83,6 @@ test("Federation.createContext()", async (t) => {
    assertThrows(() => ctx.getFeaturedUri("handle"), RouterError);
    assertThrows(() => ctx.getFeaturedTagsUri("handle"), RouterError);
    assertEquals(ctx.parseUri(new URL("https://example.com/")), null);
    assertEquals(
      ctx.getHandleFromActorUri(new URL("https://example.com/")),
      null,
    );
    assertEquals(await ctx.getActorKeyPairs("handle"), []);
    assertEquals(await ctx.getActorKey("handle"), null);
    assertRejects(
@@ -140,14 +136,6 @@ test("Federation.createContext()", async (t) => {
      ctx.parseUri(new URL("https://example.com/users/handle")),
      { type: "actor", handle: "handle" },
    );
    assertEquals(
      ctx.getHandleFromActorUri(new URL("https://example.com/")),
      null,
    );
    assertEquals(
      ctx.getHandleFromActorUri(new URL("https://example.com/users/handle")),
      "handle",
    );
    assertEquals(
      await ctx.getActorKeyPairs("handle"),
      [
Loading