Skip to content

chore(backend,react,shared,vue): Update docs links#8047

Merged
alexisintech merged 2 commits intomainfrom
aa/DOCS-javascript-revamp-links
Mar 12, 2026
Merged

chore(backend,react,shared,vue): Update docs links#8047
alexisintech merged 2 commits intomainfrom
aa/DOCS-javascript-revamp-links

Conversation

@alexisintech
Copy link
Copy Markdown
Member

@alexisintech alexisintech commented Mar 11, 2026

Description

Clerk Docs is doing a revamp of the JavaScript reference docs, which requires many links changes.
Changes /docs/references/javascript/types/** --> /docs/references/types/**
Changes /docs/references/javascript/** --> /docs/references/objects/**
Related Docs PR: clerk/clerk-docs#3185

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Documentation

    • Updated documentation links across SDKs to point to the new docs structure (objects/types/objects pages).
  • Chores

    • Adjusted documentation mapping/configuration to align link targets across packages and added changelog metadata.
  • Deprecations

    • Redirect components in React and Vue now emit runtime deprecation warnings when used.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 11, 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 Mar 11, 2026 10:24pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 11, 2026

🦋 Changeset detected

Latest commit: 4b2eae7

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

@alexisintech alexisintech changed the title chore(docs): Update docs links chore(backend,react,shared,vue): Update docs links Mar 11, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 11, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@8047

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@8047

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@8047

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@8047

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@8047

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@8047

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@8047

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@8047

@clerk/express

npm i https://pkg.pr.new/@clerk/express@8047

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@8047

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@8047

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@8047

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@8047

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@8047

@clerk/react

npm i https://pkg.pr.new/@clerk/react@8047

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@8047

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@8047

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@8047

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@8047

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@8047

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@8047

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@8047

commit: 4b2eae7

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 11, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 4c689f91-1fd4-4959-bcca-03544c312ec4

📥 Commits

Reviewing files that changed from the base of the PR and between f350523 and 4b2eae7.

📒 Files selected for processing (1)
  • .changeset/better-ways-doubt.md
✅ Files skipped from review due to trivial changes (1)
  • .changeset/better-ways-doubt.md

📝 Walkthrough

Walkthrough

This pull request updates documentation link targets across the repository from JavaScript-specific reference paths to object- and type-based reference paths. Changes include edits to the typedoc custom plugin mappings and numerous JSDoc comments in backend, shared, React, and Vue packages. Only string literals and documentation links were modified; there are no runtime, type-signature, or public API changes.

Possibly related PRs

  • clerk/javascript PR 6846: Updates Typedoc link rewrites and JSDoc references with similar path migrations.
  • clerk/javascript PR 7115: Modifies typedoc and JSDoc link targets across resource classes and hook files in the same codebase.
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the primary change: updating documentation links across multiple packages to reflect the Clerk docs structure revamp.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/backend/src/api/resources/CommercePlan.ts`:
- Line 7: The changes replace working doc links with new routes that aren't live
yet; stop this merge and either revert the updated links back to the current
working routes (e.g., the javascript/types and objects paths) or hold the PR
until clerk/clerk-docs#3185 is deployed with redirects; specifically, in the
CommercePlan.ts description referencing the `BillingPlan` object (and any other
files that now point to `/docs/reference/types/*` or
`/docs/reference/objects/*`), restore the original
`/docs/reference/javascript/types/*` and `/docs/reference/objects/*` links or
wait to update all links in one coordinated change once the docs PR is live.

In `@packages/vue/src/composables/useSignUp.ts`:
- Line 12: The docs link in the JSDoc for useSignUp.ts currently points to the
new /docs/reference/objects/sign-up which 404s; revert or gate that change by
updating the link text in the comment that starts with "Returns the current
[`SignUp`](" to use the existing published URL
/docs/reference/javascript/sign-up (or wrap the new URL behind a runtime/feature
flag if you prefer gating), so the comment references the live SignUp docs until
the new route is published.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 4b2543df-9d3a-4e71-aff5-b0a22f6951a2

📥 Commits

Reviewing files that changed from the base of the PR and between 7c3c2bf and f350523.

📒 Files selected for processing (31)
  • .typedoc/custom-plugin.mjs
  • packages/backend/src/api/resources/APIKey.ts
  • packages/backend/src/api/resources/Client.ts
  • packages/backend/src/api/resources/CommercePlan.ts
  • packages/backend/src/api/resources/CommerceSubscription.ts
  • packages/backend/src/api/resources/CommerceSubscriptionItem.ts
  • packages/backend/src/api/resources/Invitation.ts
  • packages/backend/src/api/resources/Organization.ts
  • packages/backend/src/api/resources/OrganizationInvitation.ts
  • packages/backend/src/api/resources/OrganizationMembership.ts
  • packages/backend/src/api/resources/SamlConnection.ts
  • packages/backend/src/api/resources/Session.ts
  • packages/react/src/components/controlComponents.tsx
  • packages/react/src/hooks/legacy/useSignIn.ts
  • packages/react/src/hooks/legacy/useSignUp.ts
  • packages/shared/src/react/hooks/useClerk.ts
  • packages/shared/src/react/hooks/useOrganization.tsx
  • packages/shared/src/react/hooks/useSession.ts
  • packages/shared/src/react/hooks/useSessionList.ts
  • packages/shared/src/react/hooks/useUser.ts
  • packages/shared/src/react/types.ts
  • packages/shared/src/types/hooks.ts
  • packages/shared/src/types/session.ts
  • packages/vue/src/components/controlComponents.ts
  • packages/vue/src/composables/useClerk.ts
  • packages/vue/src/composables/useOrganization.ts
  • packages/vue/src/composables/useSession.ts
  • packages/vue/src/composables/useSessionList.ts
  • packages/vue/src/composables/useSignIn.ts
  • packages/vue/src/composables/useSignUp.ts
  • packages/vue/src/composables/useUser.ts


/**
* The `BillingPlan` object is similar to the [`BillingPlanResource`](/docs/reference/javascript/types/billing-plan-resource) object as it holds information about a Plan, as well as methods for managing it. However, the `BillingPlan` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/commerce/get/commerce/plans) and is not directly accessible from the Frontend API.
* The `BillingPlan` object is similar to the [`BillingPlanResource`](/docs/reference/types/billing-plan-resource) object as it holds information about a Plan, as well as methods for managing it. However, the `BillingPlan` object is different in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/tag/commerce/get/commerce/plans) and is not directly accessible from the Frontend API.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# First, let's look at the CommercePlan.ts file to see the actual documentation links
cat -n packages/backend/src/api/resources/CommercePlan.ts | head -20

Repository: clerk/javascript

Length of output: 1261


🏁 Script executed:

# Check for similar documentation route changes in the PR
git diff HEAD~1 -- '**/*.ts' '**/*.tsx' | grep -A 3 -B 3 'docs/reference' | head -50

Repository: clerk/javascript

Length of output: 88


🏁 Script executed:

# Search for documentation link patterns in the codebase to understand the scope
rg 'docs/reference/(types|objects)' --type ts --type tsx -c

Repository: clerk/javascript

Length of output: 87


🏁 Script executed:

# Search for documentation links in TypeScript files
rg 'docs/reference' --type ts -c 2>/dev/null || rg 'docs/reference' -t ts -c 2>/dev/null || rg 'docs/reference' | grep -E '\.(ts|tsx):' | head -30

Repository: clerk/javascript

Length of output: 3294


🏁 Script executed:

# Look for any recent commits or changes that might indicate the PR scope
git log --oneline -10 2>/dev/null || echo "Git log unavailable"

Repository: clerk/javascript

Length of output: 88


🏁 Script executed:

# Check if there are any documentation or migration-related files that hint at route changes
fd -t f 'clerk-docs' . 2>/dev/null | head -10 || echo "No clerk-docs references found"

Repository: clerk/javascript

Length of output: 42


🏁 Script executed:

# Search more broadly for the specific types/objects pattern in comments
rg 'billing-plan-resource' --type ts 2>/dev/null || rg 'billing-plan-resource' | head -20

Repository: clerk/javascript

Length of output: 525


🌐 Web query:

site:clerk.com/docs/reference/types/billing-plan-resource

💡 Result:

The Clerk Docs page you’re looking for is the BillingPlanResource type reference (Clerk’s Billing “Plan” object). It’s available at https://clerk.com/docs/reference/javascript/types/billing-plan-resource. [1]

What BillingPlanResource contains (key properties): id, name, slug, description, avatarUrl, features (FeatureResource[]), pricing fields like fee (monthly), annualFee, annualMonthlyFee, trial fields like freeTrialEnabled and freeTrialDays, plus flags like isDefault, publiclyVisible, isRecurring, hasBaseFee, and forPayerType ("org" | "user"). [1]


🌐 Web query:

clerk clerk-docs 3185 billing plan resource new documentation routes

💡 Result:

PR #3185 in clerk/clerk-docs (draft as of Mar 11, 2026) is a JavaScript reference-docs revamp that changes documentation routes by: (1) moving object reference pages from /docs/reference/javascript/**/docs/reference/objects/**, and (2) moving type reference pages from /docs/reference/javascript/types/**/docs/reference/types/**, with redirects added so old links keep working. [1]

For BillingPlanResource specifically, the current live page is still under the old JavaScript types route: /docs/reference/javascript/types/billing-plan-resource (last updated Mar 4, 2026). [2] Under the PR’s plan, it would be reachable at /docs/reference/types/billing-plan-resource. [1]

Sources:
[1] PR #3185 description (route moves + redirects) clerk/clerk-docs#3185
[2] Current BillingPlanResource doc page https://clerk.com/docs/reference/javascript/types/billing-plan-resource


🌐 Web query:

site:clerk.com/docs/reference/types/billing-plan-resource

💡 Result:

The Clerk docs page you’re pointing to is BillingPlanResource (JavaScript Types). It defines the shape of a subscription plan object and includes these key properties: id, name, slug, description, avatarUrl, fee (monthly), annualFee, annualMonthlyFee, isDefault, publiclyVisible, forPayerType ("org" | "user"), isRecurring, hasBaseFee, plus free-trial fields freeTrialEnabled and freeTrialDays, and features: FeatureResource[]. (clerk.com)

Citations:


🌐 Web query:

clerk-docs PR 3185 merged deployed live March 2026 documentation routes /types /objects

💡 Result:

  • PR status (clerk/clerk-docs #3185): As of March 11, 2026, PR Nextjs 14, docker, production error: Failed to load Clerk #3185 is still a Draft and not merged into main. (github.com)
  • Deployed? It has a Vercel preview deployment (e.g. clerk-docs-git-aa-javascript-revamp.clerkstage.dev) updated Mar 11, 2026 10:01pm UTC, but that is not the live production docs site. (github.com)
  • Route changes proposed in the PR:
    • Move object reference docs from /docs/reference/javascript/**/docs/reference/objects/** (github.com)
    • Move type reference docs from /docs/reference/javascript/types/**/docs/reference/types/** (github.com)
    • Add redirects for the moved routes. (github.com)
  • What’s live on clerk.com right now: the types overview page is currently accessible under the JavaScript path (example: /docs/reference/javascript/types/overview, “Last updated on Mar 6, 2026”). (clerk.com)

Citations:


🏁 Script executed:

# Search for all documentation link references being modified in this PR to assess scope
rg '/docs/reference/(types|objects)' packages/backend/src/api/resources/ -n

Repository: clerk/javascript

Length of output: 5524


🏁 Script executed:

# Check broader codebase for organization-membership and sign-up doc links
rg 'organization-membership|sign-up' --type ts -n | grep 'docs/reference' | head -10

Repository: clerk/javascript

Length of output: 2674


Block merge until clerk/clerk-docs#3185 is deployed.

This PR updates documentation links across ~10 files to point to the new /docs/reference/types/* and /docs/reference/objects/* routes (e.g., organization-membership, sign-up, billing-plan-resource). However, these new routes are not yet live—the referenced clerk-docs PR is still in draft status as of March 11, 2026. Merging now would replace working links (currently under /docs/reference/javascript/types/* and /docs/reference/objects/*) with non-existent ones. Wait for clerk/clerk-docs#3185 to be deployed and include redirects before merging.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/backend/src/api/resources/CommercePlan.ts` at line 7, The changes
replace working doc links with new routes that aren't live yet; stop this merge
and either revert the updated links back to the current working routes (e.g.,
the javascript/types and objects paths) or hold the PR until
clerk/clerk-docs#3185 is deployed with redirects; specifically, in the
CommercePlan.ts description referencing the `BillingPlan` object (and any other
files that now point to `/docs/reference/types/*` or
`/docs/reference/objects/*`), restore the original
`/docs/reference/javascript/types/*` and `/docs/reference/objects/*` links or
wait to update all links in one coordinated change once the docs PR is live.


/**
* Returns the current [`SignUp`](https://clerk.com/docs/reference/javascript/sign-up) object which provides
* Returns the current [`SignUp`](https://clerk.com/docs/reference/objects/sign-up) object which provides
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Gate this docs-link migration.

The new /docs/reference/objects/sign-up target currently returns 404, while the current SignUp reference is still published at /docs/reference/javascript/sign-up. Merging this rewrite now would ship a broken docs link. ()

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/vue/src/composables/useSignUp.ts` at line 12, The docs link in the
JSDoc for useSignUp.ts currently points to the new
/docs/reference/objects/sign-up which 404s; revert or gate that change by
updating the link text in the comment that starts with "Returns the current
[`SignUp`](" to use the existing published URL
/docs/reference/javascript/sign-up (or wrap the new URL behind a runtime/feature
flag if you prefer gating), so the comment references the live SignUp docs until
the new route is published.

@SarahSoutoul
Copy link
Copy Markdown
Contributor

This looks good! Just checking, is the plan to merge this PR, open a Typedoc PR, and then merge the aa/javascript-revamp branch into the Typedoc PR? @alexisintech

@alexisintech
Copy link
Copy Markdown
Member Author

This looks good! Just checking, is the plan to merge this PR, open a Typedoc PR, and then merge the aa/javascript-revamp branch into the Typedoc PR? @alexisintech

yep! that's what we usually do, is that still the correct flow in your opinion?

@alexisintech alexisintech merged commit a5aa803 into main Mar 12, 2026
42 checks passed
@alexisintech alexisintech deleted the aa/DOCS-javascript-revamp-links branch March 12, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants