Skip to content

1.3.3

Choose a tag to compare

@solidens solidens released this 09 Aug 14:51
· 7 commits to main since this release

Follow-up to 1.3.2 — fixes a regression from that release.

Fixed

  • 1.3.2 removed two type assertions on res.json and JSON.parse(...) to satisfy an "unnecessary assertion" check, but that let untyped (any) values flow into typed positions unchecked — flagged as "unsafe assignment"/"unsafe return of any" by the directory's review. Reworked both call sites to assign the raw value to an explicitly unknown-typed variable first, narrow it with a runtime check, and only then cast — safe by the type system's own rules either way.

No behavior change from 1.3.2. tsc --noEmit clean, 159/159 tests pass.