denoland / denoland/std

@std/cbor: Temporal support

Open
#7,152 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

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](https://www.rfc-editor.org/rfc/rfc8943.html) (Tags for Date) and [RFC 9581](https://www.rfc-editor.org/rfc/rfc9581.html) (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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.