fix(deps): update rust crate ts-rs to v10 #256
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.0
->10.0
Release Notes
Aleph-Alpha/ts-rs (ts-rs)
v10.0.0
Compare Source
While v10.0.0 is a technically breaking change, we expect it to be a drop-in replacement for almost all users.
Changes to
HashMap<K, V>
(& friends)In this release, we've changed how
HashMap<K, V>
is represented in TypeScript.Before v10, ts-rs generated
{ [key: K]: V }
. This was never technically correct, resulting intsc
accepting some code which it should not have. Additionally, this resulted in issues when e.g trying to use anenum
as key.With v10, we now generate
{ [key in K]?: V }
instead.What's New?
#[ts(export_to = "..")]
#[ts(as = "..")]
and#[ts(type = "..")]
now also work on enum variantsbson
,smol_str
)Full changelog
HashMap
to export mapped types by @gustavo-shigueo in https://github.com/Aleph-Alpha/ts-rs/pull/339#[ts(export_to = "...")]
to the same file by @escritorio-gustavo in https://github.com/Aleph-Alpha/ts-rs/pull/316#[ts(as = "...")]
and#[ts(type = "...")]
on enum variants by @escritorio-gustavo in https://github.com/Aleph-Alpha/ts-rs/pull/284New Contributors
Configuration
📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.