Skip to content

Bump tsify from 0.5.6 to 0.5.8 - #222

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/tsify-0.5.8
Open

Bump tsify from 0.5.6 to 0.5.8#222
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/tsify-0.5.8

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 27, 2026

Copy link
Copy Markdown
Contributor

Bumps tsify from 0.5.6 to 0.5.8.

Changelog

Sourced from tsify's changelog.

v0.5.8

  • Added #[tsify(rename = "...")], which renames the generated TypeScript declaration and nothing else — references from other types still emit the Rust ident, so point them at the new name with #[tsify(type = "...")] at each reference site. Cannot be combined with type_prefix or type_suffix. Resolves #70, which had been blocking the 0.4 → 0.5 upgrade for anyone with two same-named types in different modules
  • type_prefix and type_suffix no longer rename type parameters. A type parameter has no declaration for the affix to rename, so #[tsify(type_prefix = "Ts")] struct Wrapper<T> { x: T } declared export interface TsWrapper { x: TsT; } — the parameter dropped, and TsT never declared anywhere. It now declares export interface TsWrapper<T> { x: T; }. If you use either attribute on a generic type, its .d.ts changes. There was no correct way to use the affix on a generic type before this, so nothing that type-checked without skipLibCheck is affected
  • type_prefix and type_suffix no longer reach the tag literal of an internally-tagged type. That value comes from serde, which was never told about the affix, so #[serde(tag = "kind")] #[tsify(type_prefix = "A")] struct Config declared kind: "AConfig" where serde has always serialized "Config". It now declares kind: "Config". If you narrowed on the old literal, that code compiled and never matched at runtime; it is now a compile error. Applying either attribute to only some of your types still emits references to names that were never declared — that half of #94 is still open

v0.5.7

  • Added Ts<T>, a wrapper for #[wasm_bindgen] parameters and return types. #[tsify(from_wasm_abi)] deserializes at the ABI boundary, which cannot report failure, so bad input from JavaScript ends in wasm_bindgen::throw_str — a catchable JS exception that skips destructors, leaking a little on every failure until the instance dies. Ts<T> keeps the boundary infallible and moves the conversion into the function body, where it is an ordinary Result. Addresses #65, #47 and #86. @​cormacrelf contributed #71
  • Deprecated into_wasm_abi and from_wasm_abi in favour of Ts<T>. into_wasm_abi panics rather than leaks on failure, but it has the same root cause and the same fix. The attributes still work, and no removal is planned; see the README for details
  • Ts<T> can now be returned from async fn. @​hgiesel contributed #84
  • #[tsify(namespace)] enums now emit export type E = E.A | E.B instead of repeating each variant's shape in the union. @​hgiesel contributed #78
  • Fixed raw string artifacts in doc comments copied into the generated TypeScript. @​samkearney contributed the fix
Commits

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 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 [tsify](https://github.com/madonoharu/tsify) from 0.5.6 to 0.5.8.
- [Changelog](https://github.com/madonoharu/tsify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/madonoharu/tsify/commits/v0.5.8)

---
updated-dependencies:
- dependency-name: tsify
  dependency-version: 0.5.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 27, 2026
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 rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants