Unverified Commit c64cc70e authored by Hong Minhee's avatar Hong Minhee
Browse files
parent a0f2bec9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -8,12 +8,16 @@ Version 0.9.0

To be released.

 -  Added `Hashtag` class to Activity Vocabulary API.  [[#48]]

 -  Added more log messages using the [LogTape] library.  Currently the below
    logger categories are used:

     -  `["fedify", "federation", "actor"]`
     -  `["fedify", "federation", "http"]`

[#48]: https://github.com/dahlia/fedify/issues/48


Version 0.8.0
-------------
+1197 −1022

File changed.

Preview size limit exceeded, changes collapsed.

+28 −4
Original line number Diff line number Diff line
@@ -394,7 +394,13 @@ Deno.test("handleObject()", async () => {
    "application/activity+json",
  );
  assertEquals(await response.json(), {
    "@context": "https://www.w3.org/ns/activitystreams",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        Hashtag: "as:Hashtag",
        sensitive: "as:sensitive",
      },
    ],
    id: "https://example.com/users/someone/notes/123",
    summary: "Hello, world!",
    type: "Note",
@@ -480,7 +486,13 @@ Deno.test("handleObject()", async () => {
    "application/activity+json",
  );
  assertEquals(await response.json(), {
    "@context": "https://www.w3.org/ns/activitystreams",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        Hashtag: "as:Hashtag",
        sensitive: "as:sensitive",
      },
    ],
    id: "https://example.com/users/someone/notes/123",
    summary: "Hello, world!",
    type: "Note",
@@ -850,7 +862,13 @@ Deno.test("respondWithObject()", async () => {
    "application/activity+json",
  );
  assertEquals(await response.json(), {
    "@context": "https://www.w3.org/ns/activitystreams",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        Hashtag: "as:Hashtag",
        sensitive: "as:sensitive",
      },
    ],
    id: "https://example.com/notes/1",
    type: "Note",
    content: "Hello, world!",
@@ -876,7 +894,13 @@ Deno.test("respondWithObjectIfAcceptable", async () => {
    "application/activity+json",
  );
  assertEquals(await response.json(), {
    "@context": "https://www.w3.org/ns/activitystreams",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        Hashtag: "as:Hashtag",
        sensitive: "as:sensitive",
      },
    ],
    id: "https://example.com/notes/1",
    type: "Note",
    content: "Hello, world!",
+58 −0
Original line number Diff line number Diff line
@@ -2033,6 +2033,64 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = `
}'
`;

snapshot[`Deno.inspect(Hashtag) [auto] 1`] = `
'Hashtag {
  id: URL "https://example.com/",
  href: URL "https://example.com/",
  rel: "hello",
  mediaType: "hello",
  names: [ "hello", <en> "hello" ],
  language: LanguageTag {
    core: [ "en", undefined, undefined, undefined ],
    _extensions: {},
    _privateUse: "",
    _extlangs: [],
    _compact: "en"
  },
  height: 123,
  width: 123,
  previews: [ Link {}, Object {} ]
}'
`;

snapshot[`Deno.inspect(Hashtag) [auto] 2`] = `
'Hashtag {
  href: URL "https://example.com/",
  rel: "hello",
  mediaType: "hello",
  names: [ "hello", <en> "hello" ],
  language: LanguageTag {
    core: [ "en", undefined, undefined, undefined ],
    _extensions: {},
    _privateUse: "",
    _extlangs: [],
    _compact: "en"
  },
  height: 123,
  width: 123,
  previews: [ URL "https://example.com/" ]
}'
`;

snapshot[`Deno.inspect(Hashtag) [auto] 3`] = `
'Hashtag {
  href: URL "https://example.com/",
  rels: [ "hello", "hello" ],
  mediaType: "hello",
  names: [ "hello", "hello" ],
  language: LanguageTag {
    core: [ "en", undefined, undefined, undefined ],
    _extensions: {},
    _privateUse: "",
    _extlangs: [],
    _compact: "en"
  },
  height: 123,
  width: 123,
  previews: [ Link {}, Link {} ]
}'
`;

snapshot[`Deno.inspect(Ignore) [auto] 1`] = `
'Ignore {
  id: URL "https://example.com/",
+4 −1
Original line number Diff line number Diff line
@@ -7,5 +7,8 @@ description: |
  Indicates that the `actor` is calling the `target`'s attention the `object`.

  The `origin` typically has no defined meaning.
defaultContext: "https://www.w3.org/ns/activitystreams"
defaultContext:
- "https://www.w3.org/ns/activitystreams"
- sensitive: "as:sensitive"
  Hashtag: "as:Hashtag"
properties: []
Loading