Skip to content

Conversation

confusingstraw
Copy link
Contributor

This PR adds support for a new useDate option: temporal. When used, it will cause the generated code to use the new Temporal.Instant object.

The advantages of supporting the new API include higher precision timestamps (up to nanosecond precision, which aligns with the Protobuf spec), as well as a variety of Temporal-related utilities, such as Duration. In a future update, it may be useful to add a similar flag for using the Temporal.Duration object for Duration representation.

Copy link
Owner

@stephenh stephenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love to see temporal support; thank you @confusingstraw !

Looks like there was a lint error; can you take a look at that, and then I'll hit merge?

@confusingstraw
Copy link
Contributor Author

Should be fixed. Hopefully adding a global type polyfill for the integration test environment is acceptable.

@stephenh
Copy link
Owner

Yep, lgtm; thank you!

@stephenh stephenh merged commit c46c020 into stephenh:main Oct 21, 2025
6 checks passed
stephenh pushed a commit that referenced this pull request Oct 21, 2025
# [2.8.0](v2.7.7...v2.8.0) (2025-10-21)

### Features

* add option for using Temporal timestamp representation ([#1219](#1219)) ([c46c020](c46c020))
@stephenh
Copy link
Owner

🎉 This issue has been resolved in version 2.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants