Skip to content

TypeScript reference: every deprecated name, read from the package - #58

Merged
tmoosting merged 1 commit into
mainfrom
deprecated-names
Nov 23, 2026
Merged

tmoosting merged 1 commit into
mainfrom
deprecated-names

Conversation

@tmoosting

Copy link
Copy Markdown
Member

The generated TypeScript reference gains a third table, Deprecated names: each name the pinned SDK's declaration files mark @deprecated, with the version it was deprecated in, the version it leaves in and the mark's own comment. 21 in 4.194.0.

  • Read with the TypeScript compiler from the root's and every subpath's declarations, by the package's export map. One mark sits on a value of a union ('integer_max' in FieldType), where the compiler reads no tag: the script reads that one from the text and names it with its type.
  • The script stops (exit 2) when it could name fewer tags than a file's text holds, so a mark in a new place cannot go unlisted. It did so on its first run, 20 against 21, which is how the union value was found.
  • --check (the Generated pages workflow) holds the committed table to the pinned package: a row removed by hand read STALE, exit 1.
  • The Stability and deprecation page links the table; one changelog line.

🤖 Generated with Claude Code

The generated reference gains a third table: each name the pinned SDK's
declaration files mark @deprecated (the root's and every subpath's, by
the package's export map), with the version it was deprecated in, the
version it leaves in and the mark's own comment. 21 in 4.194.0: 20 on
declarations, and one on a value of a union, which the compiler reads no
tag on and the script reads from the text.

The script stops (exit 2) when the tags it could name are fewer than the
@deprecated marks in a file's text, so a mark in a new place cannot go
unlisted. The Stability and deprecation page points at the table.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit ea22a83 into main Nov 23, 2026
3 checks passed
@tmoosting
tmoosting deleted the deprecated-names branch November 23, 2026 17:35

This branch was previously deployed

1 inactive deployment
github-pages — ea22a83f Deployed Nov 23, 2026 by tmoosting via deploy #1299
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