Skip to content

docs(shared): use @hidden over @internal for internal Clerk/Client members#8701

Merged
alexisintech merged 1 commit into
aa/generate-object-docsfrom
jacek/objects-docs-hide-internal-members
May 29, 2026
Merged

docs(shared): use @hidden over @internal for internal Clerk/Client members#8701
alexisintech merged 1 commit into
aa/generate-object-docsfrom
jacek/objects-docs-hide-internal-members

Conversation

@jacekradko
Copy link
Copy Markdown
Member

Targets the #8276 branch.

Those 18 __internal_* members on Clerk and ClientResource got @internal tags so they'd stay out of the generated /objects docs. The problem is snapi reads @internal as a TSDoc release tag and drops them from the API snapshot, so the API Changes check sees them disappear and reports 18 "removed" breaking changes. But there's no stripInternal in the build, so these members are still emitted in the .d.ts and at runtime. They're genuinely still part of the contract and shouldn't leave snapi's radar.

Swapping @internal to @hidden on just those members keeps typedoc excluding them from the docs (@hidden is a removal tag), while snapi keeps tracking them since @hidden isn't a release tag. The 14 pre-existing @internal tags are left alone. I ran the typedoc generation locally to confirm none of the 18 leak into the output and the build is clean.

One heads up: the API Changes check won't run on this PR, that workflow only triggers on PRs into main/release/*, so it'll re-validate on #8276 once these commits land on the branch.

…mbers

These 18 __internal_* members on Clerk and ClientResource were tagged @internal to keep them out of the generated /objects docs, but snapi reads @internal as a TSDoc release tag and drops them from the API snapshot, so the API Changes check reports them as removed (18 false breaking changes). There is no stripInternal in the build, so the members are still emitted in the .d.ts and at runtime and remain part of the contract.

Swap @internal to @hidden on just those members: typedoc still excludes them from the docs (@hidden is a removal tag), but snapi keeps tracking them since @hidden is not a release tag. The 14 pre-existing @internal tags are left as-is.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment May 29, 2026 1:00am

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

⚠️ No Changeset found

Latest commit: 2f3f35d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alexisintech
Copy link
Copy Markdown
Member

ahhh you're a genius thank you!

@alexisintech alexisintech merged commit d555bdc into aa/generate-object-docs May 29, 2026
7 checks passed
@alexisintech alexisintech deleted the jacek/objects-docs-hide-internal-members branch May 29, 2026 01:07
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.

3 participants