Closed rmedaer closed 2 years ago
RFC 7049 was deprecated one year ago. The current standard of CBOR is RFC 8949.
My bad. I update the issue.
I'm not sure I understand the request. CBOR only makes sense for us to support as part of something else. Is there a concrete proposal for JS API somewhere that you want us to evaluate?
As far as I know, there is currently not any standardized JS API specification for CBOR encoding/decoding. However @cabo says on his website:
Many implementations use a simple API of the form:
encoded = CBOR.encode(data)
➔data = CBOR.decode(encoded)
There is more than one "something else", so it would be useful to have a common way to operate on CBOR encoded data. The very simple interface described here is fine if the platform can map the CBOR generic data model (including, e.g., tags); it is probably worth to describe how that is done in general. You probably also want to provide a similar interface for RFC8742 CBOR Sequences.
To be clear, this is a place to ask Mozilla for its position on a standard or proposal, not to create a proposal. For that you want https://wicg.io/ or equivalent. I suggest we mark this as defer
.
defer
seems fine.
I suppose we could offer an opinion on CBOR per se, but that seems kind of redundant given that it's widely deployed.
To be clear, we ship it already in Firefox. It's part of WebAuthn. So this is somewhat moot.
Many thanks for your feedback. As you can see in the history of this issue, I submitted a proposal through the WICG/proposals repository.
Request for Mozilla Position on an Emerging Web Specification
Other information
Similar to JSON library, would it be possible to implement both
CBOR.encode
andCBOR.decode
?Edit: RFC 7049 was deprecated, replacing by RFC 8949.