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

chore(deps): Bump ts-rs from 9.0.1 to 10.0.0 #420

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 19, 2024

Bumps ts-rs from 9.0.1 to 10.0.0.

Release notes

Sourced from ts-rs's releases.

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<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 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

New Contributors

Changelog

Sourced from ts-rs's changelog.

master

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)
Commits
  • 0d92a2b release v10.0
  • 9763ca0 Support #[ts(as = "...")] and #[ts(type = "...")] on enum variants (#284)
  • 6651d92 Fix smol_str-impl feature name in lib.rs
  • fb47428 Fix smol_str-impl feature name in test
  • 61a6d6a Fix smol_str-impl feature name
  • 7577aca feature: support smol_str (#350)
  • 78591a2 Always use forward slash on import paths (#346)
  • 5cbc740 feat: Allow multiple types to set #[ts(export_to = "...")] to the same file...
  • 5c3b8c9 Fix error in internally tagged enums with flattened fields (#344)
  • 7ee0cbc Update CHANGELOG
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ts-rs](https://github.com/Aleph-Alpha/ts-rs) from 9.0.1 to 10.0.0.
- [Release notes](https://github.com/Aleph-Alpha/ts-rs/releases)
- [Changelog](https://github.com/Aleph-Alpha/ts-rs/blob/main/CHANGELOG.md)
- [Commits](Aleph-Alpha/ts-rs@v9.0.1...v10.0.0)

---
updated-dependencies:
- dependency-name: ts-rs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 19, 2024
@jsinger67 jsinger67 merged commit 21897c8 into main Sep 20, 2024
2 checks passed
@jsinger67 jsinger67 deleted the dependabot/cargo/ts-rs-10.0.0 branch September 20, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant