ssbc / ssb-meta-feeds

10 stars 0 forks source link

tidy the API results #95

Closed staltz closed 2 years ago

staltz commented 2 years ago

Problem

There are a couple legacy decisions in this library that are still haunting us. Like feedpurpose instead of purpose, it's cemented in the spec and not worth changing it. But also details.subfeed. The worst is when details refers to the root metafeed, and thus details.subfeed is the id of the root metafeed. Disgusting! Someone will definitely feel confused by this API.

Also, the branches as tuples [id, details] was getting really obnoxious to work with, when it could just be details.id etc.

Solution

We can keep the spec untouched while making this library return more reasonable.

:bomb: This is a breaking change.