Skip to content

Integrate MonthCode into public API and related adjustments #208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 23, 2025

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Feb 23, 2025

This change integrate MonthCode into the public API of the partial fields and month_code methods in order to better represent PrepareCalendarFields conversion.

This does also add a host of public APIs to MonthCode for interacting with it and adjusts the general validation methods (although, I do suspect this will need to be iterated on in the future to better support more calendars).

CC: @Manishearth as this includes updates to temporal_capi

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Looks good! I think it's a plus that we're not exposing TinyStr directly, so that's good.

@nekevss nekevss merged commit f2b335c into main Feb 23, 2025
7 checks passed
@nekevss nekevss deleted the month-code-adjustments branch February 23, 2025 22:39
nekevss added a commit that referenced this pull request Feb 23, 2025
This change integrate `MonthCode` into the public API of the partial
fields and `month_code` methods in order to better represent
[PrepareCalendarFields](https://tc39.es/proposal-temporal/#sec-temporal-preparecalendarfields)
conversion.

This does also add a host of public APIs to `MonthCode` for interacting
with it and adjusts the general validation methods (although, I do
suspect this will need to be iterated on in the future to better support
more calendars).

CC: @Manishearth as this includes updates to `temporal_capi`
nekevss added a commit that referenced this pull request Feb 24, 2025
This PR is a follow up to #208 and adds `MonthCode` validation on the
ISO calendar path.
@jedel1043 jedel1043 added C-api Changes related to the public API C-enhancement New feature or request labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-api Changes related to the public API C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants