You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A page with guidance for library authors could include:
What types should my library accept as input, and in what use cases?
What types should my library emit as output, and in what use cases?
Be careful of implicit assumptions, especially around time zones. For example, Brazil's missing midnight after a DST transition. In a future where a date-picker library is built using Temporal, it might seem fine for it to accept and/or return a DateTime because no time zone is shown or accepted in the UI. But if the library's implementation is making assumptions that require a time zone, then using ZonedDateTime might be more appropriate for the use case.
Serialization and deserialization, including custom formats and interop with other systems. This includes parsing and formatting guidance, but also includes guidance for how to handle limitations and incompatibility between Temporal and other platforms. For example, if your library pulls an OffsetDateTime from a Java or .NET web service, how should that value be represented in Temporal?
How to migrate the implementation of a library from moment, date-fns, legacy Date, etc. ? What changes and problems to expect?
There's some overlap with user-facing guidance, but I suspect that some of the issues that library authors run into (e.g. how to pick types properly to minimize their users running into errors) might be unique to libraries.
The text was updated successfully, but these errors were encountered:
Originally from tc39/proposal-temporal#861
A page with guidance for library authors could include:
There's some overlap with user-facing guidance, but I suspect that some of the issues that library authors run into (e.g. how to pick types properly to minimize their users running into errors) might be unique to libraries.
The text was updated successfully, but these errors were encountered: