FruitieX / homectl-server

A simple home automation server written in Rust
MIT License
79 stars 10 forks source link

fix(deps): update rust crate ts-rs to v10 #441

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Type Update Change
ts-rs dependencies major =9.0.1 -> =10.0.0

Release Notes

Aleph-Alpha/ts-rs (ts-rs) ### [`v10.0.0`](https://redirect.github.com/Aleph-Alpha/ts-rs/releases/tag/v10.0.0) [Compare Source](https://redirect.github.com/Aleph-Alpha/ts-rs/compare/v9.0.1...v10.0.0) 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` (& friends) In this release, we've changed how `HashMap` is represented in TypeScript.\ Before v10, ts-rs generated `{ [key: K]: V }`. This was never technically correct, resulting in `tsc` accepting some code which it should not have. Additionally, this resulted in issues when e.g trying to use an `enum` as key.\ With v10, we now generate `{ [key in K]?: V }` instead. #### What's New? - Multiple types can be exported to the same file using `#[ts(export_to = "..")]` - `#[ts(as = "..")]` and `#[ts(type = "..")]` now also work on enum variants - Support for more crates (`bson`, `smol_str`) #### Full changelog - Change `HashMap` to export mapped types by [@​gustavo-shigueo](https://redirect.github.com/gustavo-shigueo) in [https://github.com/Aleph-Alpha/ts-rs/pull/339](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/339) - feat: add bson ObjectId impl by [@​ShaunSHamilton](https://redirect.github.com/ShaunSHamilton) in [https://github.com/Aleph-Alpha/ts-rs/pull/340](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/340) - Fix JSDoc formatting for Rust block comments by [@​gustavo-shigueo](https://redirect.github.com/gustavo-shigueo) in [https://github.com/Aleph-Alpha/ts-rs/pull/342](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/342) - Fix error in internally tagged enums with flattened fields by [@​gustavo-shigueo](https://redirect.github.com/gustavo-shigueo) in [https://github.com/Aleph-Alpha/ts-rs/pull/344](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/344) - feat: Allow multiple types to set `#[ts(export_to = "...")]` to the same file by [@​escritorio-gustavo](https://redirect.github.com/escritorio-gustavo) in [https://github.com/Aleph-Alpha/ts-rs/pull/316](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/316) - Always use forward slash on import paths by [@​gustavo-shigueo](https://redirect.github.com/gustavo-shigueo) in [https://github.com/Aleph-Alpha/ts-rs/pull/346](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/346) - feature: support smol_str by [@​corvusrabus](https://redirect.github.com/corvusrabus) in [https://github.com/Aleph-Alpha/ts-rs/pull/350](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/350) - Support `#[ts(as = "...")]` and `#[ts(type = "...")]` on enum variants by [@​escritorio-gustavo](https://redirect.github.com/escritorio-gustavo) in [https://github.com/Aleph-Alpha/ts-rs/pull/284](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/284) #### New Contributors - [@​ShaunSHamilton](https://redirect.github.com/ShaunSHamilton) made their first contribution in [https://github.com/Aleph-Alpha/ts-rs/pull/340](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/340) - [@​corvusrabus](https://redirect.github.com/corvusrabus) made their first contribution in [https://github.com/Aleph-Alpha/ts-rs/pull/350](https://redirect.github.com/Aleph-Alpha/ts-rs/pull/350)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.