Skip to content
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

Update Rust crate ts-rs to v10 #237

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Update Rust crate ts-rs to v10 #237

merged 1 commit into from
Jan 25, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 25, 2025

This PR contains the following updates:

Package Type Update Change
ts-rs workspace.dependencies major 8.0.0 -> 10.0.0

Release Notes

Aleph-Alpha/ts-rs (ts-rs)

v10.1.0

Compare Source

Features
  • Add support for synchronization primitives from tokio (feature tokio-impl)
Fixes
  • Fix incorrect behavior of the tag attribute for structs without any fields declared with braces
  • Fix representation of serde_json::Value

v10.0.0

Compare Source

Breaking
  • Change how HashMap<K, V> is represented in TypeScript. The resulting bindings ({ [key in K]?: V } instead of { [key: K]: V }) are more accurate and flexible.
Features
  • Allow multile types to have the same #[ts(export_to = "...")] attribute and be exported to the same file (#​316)
  • The bson-uuid-impl feature now supports bson::oid::ObjectId as well (#​340)
  • Add support for types from smol_str behind cargo feature smol_str-impl (#​350)
  • Support #[ts(as = "...")] and #[ts(type = "...")] on enum variants (#​384)
Fixes
  • Properly handle block doc comments (#​342)
  • Fix error in internally tagged enums with flattened fields (#​344)
  • Always use forward slash on import paths (#​346)

v9.0.1

Compare Source

Fixes
  • Allow using #[ts(flatten)] on fields using generic parameters (#​336)

v9.0.0

Compare Source

Breaking
  • #[serde(with = "...")] requires the use of #[ts(as = "...")] or #[ts(type = "...")] (#​280)
  • Fix incompatibility with serde for snake_case, kebab-case and SCREAMING_SNAKE_CASE (#​298)
  • #[ts(rename_all = "...")] no longer accepts variations in the string's casing, dashes and underscores to make behavior consistent with serde (#​298)
  • Remove TypeList, and replace TS::dependency_types/TS::generics with TS::visit_dependencies/TS::visit_generics.
    This finally resolves "overflow evaluating the requirement", "reached the recursion limit" errors.
    Also, compile times should benefit. This is a technically breaking change for those interacting with the TS trait
    directly. For those just using #[derive(TS)] and #[ts(...)], nothing changes!
Features
  • Add support for #[ts(type = "..")] directly on structs and enums (#​286)
  • Add support for #[ts(as = "..")] directly on structs and enums (#​288)
  • Add support for #[ts(rename_all = "SCREAMING-KEBAB-CASE")] (#​298)
  • Support _ in #[ts(type = "..")] to refer to the type of the field (#​299)
Fixes
  • Fix #[ts(rename_all_fields = "...")] on enums containing tuple or unit variants (#​287)
  • Fix "overflow evaluating the requirement" and "reached the recursion limit" errors in some cases (#​293)
  • Fix ambiguity causing "multiple applicable items in scope" errors in some cases (#​309)
  • Fix issues with absolute TS_RS_EXPORT_DIR paths (#​323)
  • Add newlines to the end of exported files (#​321)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from drewvolz, hawkrives and rye as code owners January 25, 2025 19:52
@hawkrives hawkrives enabled auto-merge January 25, 2025 19:52
@hawkrives hawkrives added this pull request to the merge queue Jan 25, 2025
Merged via the queue into main with commit 1821048 Jan 25, 2025
4 checks passed
@hawkrives hawkrives deleted the renovate/ts-rs-10.x branch January 25, 2025 19:54
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.

1 participant