Unverified Commit d9ea0319 authored by Hong Minhee's avatar Hong Minhee
Browse files

`Actor.inbox`/`outbox` take `OrderedCollectionPage`

parent 91e55137
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
@@ -8,6 +8,59 @@ Version 0.15.8

To be released.

 -  Fix a bug where `Actor`'s `inbox` and `outbox` properties had not been
    able to be set to an `OrderedCollectionPage` object, even though it is
    a subtype of `OrderedCollection` according to Activity Vocabulary
    specification.  [[#165]]

     -  The type of `Application()` constructor's `inbox` and `outbox` options
        is now `OrderedCollection | OrderedCollectionPage | null | undefined`
        (was `OrderedCollection | null | undefined`).
     -  The type of `Application.clone()` method's `inbox` and `outbox` options
        is now `OrderedCollection | OrderedCollectionPage | null | undefined`
        (was `OrderedCollection | null | undefined`).
     -  The return type of `Application.getInbox()` and
        `Application.getOutbox()` methods is now `OrderedCollection |
        OrderedCollectionPage | null` (was `OrderedCollection | null`).
     -  The type of `Group()` constructor's `inbox` and `outbox` options is
        now `OrderedCollection | OrderedCollectionPage | null | undefined` (was
        `OrderedCollection | null | undefined`).
     -  The type of `Group.clone()` method's `inbox` and `outbox` options is
        now `OrderedCollection | OrderedCollectionPage | null | undefined` (was
        `OrderedCollection | null | undefined`).
     -  The return type of `Group.getInbox()` and `Group.getOutbox()` methods
        is now `OrderedCollection | OrderedCollectionPage | null` (was
        `OrderedCollection | null`).
     -  The type of `Organization()` constructor's `inbox` and `outbox` options
        is now `OrderedCollection | OrderedCollectionPage | null | undefined`
        (was `OrderedCollection | null | undefined`).
     -  The type of `Organization.clone()` method's `inbox` and `outbox` options
        is now `OrderedCollection | OrderedCollectionPage | null | undefined`
        (was `OrderedCollection | null | undefined`).
     -  The return type of `Organization.getInbox()` and
        `Organization.getOutbox()` methods is now `OrderedCollection |
        OrderedCollectionPage | null` (was `OrderedCollection | null`).
     -  The type of `Person()` constructor's `inbox` and `outbox` options is
        now `OrderedCollection | OrderedCollectionPage | null | undefined` (was
        `OrderedCollection | null | undefined`).
     -  The type of `Person.clone()` method's `inbox` and `outbox` options is
        now `OrderedCollection | OrderedCollectionPage | null | undefined` (was
        `OrderedCollection | null | undefined`).
     -  The return type of `Person.getInbox()` and `Person.getOutbox()` methods
        is now `OrderedCollection | OrderedCollectionPage | null` (was
        `OrderedCollection | null`).
     -  The type of `Service()` constructor's `inbox` and `outbox` options is
        now `OrderedCollection | OrderedCollectionPage | null | undefined` (was
        `OrderedCollection | null | undefined`).
     -  The type of `Service.clone()` method's `inbox` and `outbox` options is
        now `OrderedCollection | OrderedCollectionPage | null | undefined` (was
        `OrderedCollection | null | undefined`).
     -  The return type of `Service.getInbox()` and `Service.getOutbox()`
        methods is now `OrderedCollection | OrderedCollectionPage | null` (was
        `OrderedCollection | null`).

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


Version 0.15.7
--------------
+360 −140

File changed.

Preview size limit exceeded, changes collapsed.

+24 −0
Original line number Diff line number Diff line
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "id": "https://example.com/orderedcollectionpage",
  "type": "OrderedCollectionPage",
  "partOf": "https://example.com/orderedcollectionpage",
  "totalItems": 1,
  "orderedItems": [
    {
      "id": "https://example.com/activities/1",
      "type": "Create",
      "published": "2024-11-19T15:24:56Z",
      "actor": "https://example.com/users/1",
      "to": "https://www.w3.org/ns/activitystreams#Public",
      "object": {
        "id": "https://example.com/notes/1",
        "type": "Note",
        "content": "This is a simple note",
        "attributedTo": "https://example.com/users/1",
        "to": "https://www.w3.org/ns/activitystreams#Public",
        "published": "2024-11-19T15:24:56Z"
      }
    }
  ]
}
+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ properties:
    and dropping any activities already seen.
  range:
  - "https://www.w3.org/ns/activitystreams#OrderedCollection"
  - "https://www.w3.org/ns/activitystreams#OrderedCollectionPage"

- singularName: outbox
  functional: true
@@ -115,6 +116,7 @@ properties:
    implementing and deploying the server.
  range:
  - "https://www.w3.org/ns/activitystreams#OrderedCollection"
  - "https://www.w3.org/ns/activitystreams#OrderedCollectionPage"

- singularName: following
  functional: true
+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ properties:
    and dropping any activities already seen.
  range:
  - "https://www.w3.org/ns/activitystreams#OrderedCollection"
  - "https://www.w3.org/ns/activitystreams#OrderedCollectionPage"

- singularName: outbox
  functional: true
@@ -115,6 +116,7 @@ properties:
    implementing and deploying the server.
  range:
  - "https://www.w3.org/ns/activitystreams#OrderedCollection"
  - "https://www.w3.org/ns/activitystreams#OrderedCollectionPage"

- singularName: following
  functional: true
Loading