ssbc / ssb-uri2

Utilities for recognizing and converting SSB URIs
GNU Lesser General Public License v3.0
10 stars 3 forks source link

deprecate ssb:feed/ed25519 and add ssb:feed/classic #10

Closed staltz closed 2 years ago

staltz commented 2 years ago

Support ssb-uri-spec version 1.1, which means that we added support for ssb:feed/classic as first-class URIs, while ssb:feed/ed25519 is still supported, but is deprecated. (Similarly for ssb:message/classic and ssb:message/ed25519, ssb:blob/classic and ssb:blob/ed25519.)

compose({type: 'feed', format: 'ed25519', data}) is still going to return the deprecated URI ssb:feed/ed25519/${data}, but decompose(uri) will return {type: 'feed', format: 'classic', data}.

Breaking change:

Pending on https://github.com/ssbc/ssb-uri-spec/pull/13 reviewed and merged first.