Skip to content

bump specta to 2.0.0-rc.25 + specta-typescript to 0.0.12#9

Merged
johncarmack1984 merged 1 commit into
mainfrom
john/specta-rc25
May 7, 2026
Merged

bump specta to 2.0.0-rc.25 + specta-typescript to 0.0.12#9
johncarmack1984 merged 1 commit into
mainfrom
john/specta-rc25

Conversation

@johncarmack1984
Copy link
Copy Markdown
Collaborator

Summary

Bumps the specta + specta-typescript pins to the rc.25 / 0.0.12 line. Required to unblock the cascading bump in fltsci's main repo (which currently can't move past rc.24 because this fork's exact-version pin holds it back).

API rewrite

specta rc.25 reshapes NamedDataType::init_with_sentinel:

  • sentinel moves from arg position 5 to arg 1
  • new has_const_param: bool and passthrough: bool (replaces inline)
  • splits the old single build_ndt closure into two: build_ndt (now sets name / module_path via direct field assignment, since the setters were removed) and build_ty (returns the alias body separately)

specta_compat::JsonValue::definition is rewritten against the new signature. Behavior is unchanged -- emits the same recursive JsonValue TS alias.

Test plan

  • cargo build --all-features
  • cargo test --all-features --no-fail-fast (37 / 37 passing, 11 ignored as before)
  • cargo clippy --all-features --all-targets -- -D warnings
  • cargo fmt --all -- --check

specta rc.25 reshapes `NamedDataType::init_with_sentinel`:
- `sentinel` moves from arg position 5 to arg 1
- new `has_const_param: bool` and `passthrough: bool` (replaces `inline`)
- splits the old single `build_ndt` closure into two: `build_ndt`
  (now sets `name`/`module_path` via direct field assignment, since
  the setters were removed) and `build_ty` (returns the alias body
  separately)

Rewrite `specta_compat::JsonValue::definition` against the new
signature. Behavior is unchanged.
@johncarmack1984 johncarmack1984 merged commit c084392 into main May 7, 2026
4 checks passed
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