Skip to content

Upgrade to ts-rs 11.0 for TS type fixes #7581

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 13 commits into from
Jun 24, 2025
Merged

Upgrade to ts-rs 11.0 for TS type fixes #7581

merged 13 commits into from
Jun 24, 2025

Conversation

jtran
Copy link
Contributor

@jtran jtran commented Jun 23, 2025

Depends on KittyCAD/modeling-api#898. Replaces #7573.

https://github.com/Aleph-Alpha/ts-rs/blob/main/CHANGELOG.md#1100

Before this change, a lot of serialized values from Rust omit fields if they are the default. This results in a runtime undefined value, when the TS type doesn't expect it. This PR fixes the TS types to accurately model the optional fields.

Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 6:31pm

@jtran jtran force-pushed the jtran/upgrade-ts-rs-11 branch from dbdd2d0 to 96d98c8 Compare June 24, 2025 16:30
@jtran jtran marked this pull request as ready for review June 24, 2025 16:31
@jtran jtran requested review from a team as code owners June 24, 2025 16:31
Copy link

codspeed-hq bot commented Jun 24, 2025

CodSpeed Instrumentation Performance Report

Merging #7581 will not alter performance

Comparing jtran/upgrade-ts-rs-11 (d18eb86) with main (e4941cb)

Summary

✅ 85 untouched benchmarks

@jtran jtran enabled auto-merge (squash) June 24, 2025 18:06
@jtran jtran merged commit c7f0a6c into main Jun 24, 2025
78 checks passed
@jtran jtran deleted the jtran/upgrade-ts-rs-11 branch June 24, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants