Skip to content

docs(backend): inline updateSession and mergeUser parameters - #11029

Open
SarahSoutoul wants to merge 1 commit into
mainfrom
ss/docs-12437-inline-backend-params
Open

SarahSoutoul wants to merge 1 commit into
mainfrom
ss/docs-12437-inline-backend-params

Conversation

@SarahSoutoul

@SarahSoutoul SarahSoutoul commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Use the existing @inline tag on UpdateSessionParams and MergeUserParams so the generated Backend SDK reference shows their fields in the updateSession() and mergeUser() Parameters tables, without links to standalone parameter pages.

Merge order: Merge this PR before clerk/clerk#3959. The docs PR can merge after this change is released and its TypeDoc output is synced.

Related to DOCS-12437 and clerk/clerk#3959. To verify the generated output, run pnpm typedoc:generate:skip-build and inspect the two method files under .typedoc/docs/backend/.

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:

@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 27, 2026 3:49pm UTC
mosaic-docs Ready Ready Preview Nov 27, 2026 3:49pm UTC
swingset Ready Ready Preview Nov 27, 2026 3:49pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2ec4c97

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

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The annotations for UpdateSessionParams and MergeUserParams change from @generateWithEmptyComment to @inline. The MergeUserParams declaration and its fields remain unchanged. The changeset file now contains two --- lines and no other content.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Possibly related PRs

  • clerk/javascript#10793: Adds the backend methods that use the parameter types annotated in this pull request.

Suggested reviewers: dmoerner, tmilewski

Merge Risk: Minimal · up to 2ec4c

This only changes how the generated Backend SDK reference renders two parameter tables and has no runtime effect. It is low risk to merge; the author can confirm the output by running the TypeDoc generation command.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title says the PR inlines the updateSession and mergeUser parameters. The changeset applies the existing @inline tag to UpdateSessionParams and MergeUserParams, so the title matches the main chang…
Description check Passed The description states that the PR applies the existing @inline tag to UpdateSessionParams and MergeUserParams so the generated Backend SDK reference shows their fields inline. It also gives merge ord…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says the PR inlines the updateSession and mergeUser parameters. The changeset applies the existing @inline tag to UpdateSessionParams and MergeUserParams, so the title matches the main change. The 'docs(backend)' prefix fits the documentation intent, though the change is partly a changeset and annotation edit.

Full details: Description check

Explanation

The description states that the PR applies the existing @inline tag to UpdateSessionParams and MergeUserParams so the generated Backend SDK reference shows their fields inline. It also gives merge order, related issues, and verification steps. This matches the changeset and the annotation changes in SessionApi.ts and UserApi.ts.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: clerk/javascript
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 0ddc1a4
  • Layers: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 3c2441de-bc14-4594-9cfd-51b36fef1a57
Commits

Reviewing files that changed from the base of the PR and between 0ddc1a4 and 2ec4c97.

Files selected for processing: 3

  • .changeset/docs-12437-inline-params.md
  • packages/backend/src/api/endpoints/SessionApi.ts
  • packages/backend/src/api/endpoints/UserApi.ts
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 8 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@11029

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@11029

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@11029

@clerk/expo

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

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@11029

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@11029

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@11029

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

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

@clerk/localizations

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

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@11029

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 2ec4c97

@github-actions

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-11-27T15:53:02.390Z

Summary

Metric Count
Packages analyzed 20
Packages with changes 1
🔴 Breaking changes 0
🟡 Non-breaking changes 2
🟢 Additions 0

🤖 This report was reviewed by claude-sonnet-4-6.


@clerk/shared

Version: 4.50.0 → 4.49.0
Recommended bump: MINOR

Subpath ./types

🟡 Non-breaking Changes (2)

Modified: __internal_LocalizationResource
// ... 1461 unchanged lines elided ...
        dynamic: LocalizationValue<'applicationName'>;
        metadataDocument: LocalizationValue<'metadataHost'>;
      };
-     organizationSelect: {
-       placeholder: LocalizationValue;
-       selectedCount: LocalizationValue<'count'>;
-       limit: LocalizationValue<'limit'>;
-     };
    };
    oauthDeviceVerification: {
      start: {
// ... 1000 unchanged lines elided ...

Static analyzer: Breaking change in type alias __internal_LocalizationResource: Type changed: {locale:string;maintenanceMode:import("@clerk/shared").LocalizationValue;roles:{[r:string]:import("@clerk/shared").Loca… → {locale:string;maintenanceMode:import("@clerk/shared").LocalizationValue;roles:{[r:string]:import("@clerk/shared").Loca…

🤖 AI review (reclassified as non-breaking) (70%): __internal_LocalizationResource is used only as the source type for LocalizationResource (via DeepPartial<DeepLocalizationWithoutObjects<...>>), which is an output/extends position, and the snippets show only elided lines differ (5 fewer lines in the after), suggesting removal of some localization keys. However, since this is an input type (consumers pass localization objects conforming to LocalizationResource), removing required fields from the base type would loosen the constraint on what consumers must provide — making it non-breaking for consumers who implement the interface. The fields removed are interior keys of a very large object that consumers only need to partially satisfy (via DeepPartial).

Modified: OAuthConsentInfo
// ... 6 unchanged lines elided ...
    redirectDomain: string | null;
    clientRegistration?: OAuthClientRegistration;
    clientMetadataHost?: string | null;
-   maxOrganizations?: number;
    scopes: OAuthConsentScope[];
  };

Static analyzer: Breaking change in type alias OAuthConsentInfo: Type changed: {oauthApplicationName:string;oauthApplicationLogoUrl:string;oauthApplicationUrl:string;clientId:string;state:string;red… → {oauthApplicationName:string;oauthApplicationLogoUrl:string;oauthApplicationUrl:string;clientId:string;state:string;red…

🤖 AI review (reclassified as non-breaking) (90%): OAuthConsentInfo is returned from getConsentInfo (a Promise<OAuthConsentInfo> output), so consumers only read it; removing the optional maxOrganizations field means consumers who accessed it will get undefined (the field was already optional, so its absence is safe for well-typed consumers who never relied on it being present).


Report generated by Break Check

Last ran on 2ec4c97.

This branch was successfully deployed

2 active deployments
Preview – swingset — 2ec4c97c Deployed Nov 27, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 2ec4c97c Deployed Nov 27, 2026 by vercel[bot]
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.

2 participants