Skip to content

chore(clerk-js): manifest for cross-bundle internal ABI#8567

Draft
jacekradko wants to merge 1 commit into
mainfrom
jacek/add-clerk-js-abi-contract-tests
Draft

chore(clerk-js): manifest for cross-bundle internal ABI#8567
jacekradko wants to merge 1 commit into
mainfrom
jacek/add-clerk-js-abi-contract-tests

Conversation

@jacekradko
Copy link
Copy Markdown
Member

@jacekradko jacekradko commented May 16, 2026

Adds a manifest of the __internal_* members on the live Clerk instance that are reached at runtime from outside @clerk/clerk-js (34 entries across react, shared, expo, ui, astro, vue, chrome-extension). A contract test verifies each manifest entry is declared in clerk.ts; a usage scanner walks every other packages/*/src/** and asserts the reach sites match. Both trip if they drift apart.

Motivation is #8559 and #8562: PR #8434 removed clerk.__internal_queryClient because nothing in this monorepo called it, but @clerk/shared@4.6.0 (shipped inside @clerk/nextjs@7.0.12) was reading it on the CDN-loaded clerk-js. With this manifest, that removal would have failed the scanner at PR time.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 16, 2026

🦋 Changeset detected

Latest commit: 41f4961

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

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

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 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 16, 2026 3:20am

Request Review

@jacekradko jacekradko changed the title test(clerk-js): add ABI contract tripwires chore(clerk-js): manifest for cross-bundle internal ABI May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant