Skip to content

@std/cbor: Temporal support #7152

@petamoriken

Description

@petamoriken

Since Deno now supports Temporal, it seems appropriate to add support for Temporal.Instant in @std/cbor. However, since it is still at Stage 4 and there are runtimes where it has not been implemented yet, the code needs to take that into account.

Additionally, since tags were expanded in RFC 8943 (Tags for Date) and RFC 9581 (Tags for Time, Duration, and Period), it might be good to add support for Temporal.PlainDate, Temporal.ZonedDateTime, Temporal.PlainDateTime, and Temporal.Duration.

For reference, here is a comment regarding native CBOR support on ES Discourse:
https://es.discourse.group/t/native-cbor-support/1492/11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions