Skip to content

Conversation

@dstaley
Copy link
Member

@dstaley dstaley commented Dec 18, 2025

Description

This PR adds a JSDoc comment I missed in my previous PR for unsafe_disableDevelopmentModeConsoleWarning.

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
    • Enhanced developer documentation for existing configuration options.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

🦋 Changeset detected

Latest commit: 869519b

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

vercel bot commented Dec 18, 2025

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

Project Deployment Review Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Dec 18, 2025 3:51pm

@dstaley dstaley enabled auto-merge (squash) December 18, 2025 15:52
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

📝 Walkthrough

Walkthrough

This pull request makes two changes. First, it adds a new changeset file to document versioning metadata. Second, it adds JSDoc documentation to the unsafe_disableDevelopmentModeConsoleWarning property in the ClerkUnsafeOptions type definition within the shared types module. The documentation addition provides developer-facing guidance without modifying any type signatures or runtime behavior.

Pre-merge checks

✅ Passed checks (3 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 main change: adding JSDoc documentation for unsafe_disableDevelopmentModeConsoleWarning in the shared package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

Copy link
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: 1

📜 Review details

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

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8887fac and 869519b.

📒 Files selected for processing (2)
  • .changeset/crisp-symbols-add.md (1 hunks)
  • packages/shared/src/types/clerk.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (10)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

All code must pass ESLint checks with the project's configuration

Files:

  • packages/shared/src/types/clerk.ts
**/*.{js,jsx,ts,tsx,json,md,yml,yaml}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • packages/shared/src/types/clerk.ts
packages/**/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

TypeScript is required for all packages

Files:

  • packages/shared/src/types/clerk.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Follow established naming conventions (PascalCase for components, camelCase for variables)

Files:

  • packages/shared/src/types/clerk.ts
packages/**/src/**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

packages/**/src/**/*.{ts,tsx,js,jsx}: Maintain comprehensive JSDoc comments for public APIs
Use tree-shaking friendly exports
Validate all inputs and sanitize outputs
All public APIs must be documented with JSDoc
Use dynamic imports for optional features
Provide meaningful error messages to developers
Include error recovery suggestions where applicable
Log errors appropriately for debugging
Lazy load components and features when possible
Implement proper caching strategies
Use efficient data structures and algorithms
Implement proper logging with different levels

Files:

  • packages/shared/src/types/clerk.ts
**/*.ts?(x)

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use proper TypeScript error types

Files:

  • packages/shared/src/types/clerk.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/typescript.mdc)

**/*.{ts,tsx}: Always define explicit return types for functions, especially public APIs
Use proper type annotations for variables and parameters where inference isn't clear
Avoid any type - prefer unknown when type is uncertain, then narrow with type guards
Implement type guards for unknown types using the pattern function isType(value: unknown): value is Type
Use interface for object shapes that might be extended
Use type for unions, primitives, and computed types
Prefer readonly properties for immutable data structures
Use private for internal implementation details in classes
Use protected for inheritance hierarchies
Use public explicitly for clarity in public APIs
Use mixins for shared behavior across unrelated classes in TypeScript
Use generic constraints with bounded type parameters like <T extends { id: string }>
Use utility types like Omit, Partial, and Pick for data transformation instead of manual type construction
Use discriminated unions instead of boolean flags for state management and API responses
Use mapped types for transforming object types
Use conditional types for type-level logic
Leverage template literal types for string manipulation at the type level
Use ES6 imports/exports consistently
Use default exports sparingly, prefer named exports
Document functions with JSDoc comments including @param, @returns, @throws, and @example tags
Create custom error classes that extend Error for specific error types
Use the Result pattern for error handling instead of throwing exceptions
Use optional chaining (?.) and nullish coalescing (??) operators for safe property access
Let TypeScript infer obvious types to reduce verbosity
Use const assertions with as const for literal types
Use satisfies operator for type checking without widening types
Declare readonly arrays and objects for immutable data structures
Use spread operator and array spread for immutable updates instead of mutations
Use lazy loading for large types...

Files:

  • packages/shared/src/types/clerk.ts
**/*.{js,ts,jsx,tsx}

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Use ESLint with custom configurations tailored for different package types

Files:

  • packages/shared/src/types/clerk.ts
**/*.{js,ts,jsx,tsx,json,md,yml,yaml}

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Use Prettier for code formatting across all packages

Files:

  • packages/shared/src/types/clerk.ts
**/*

⚙️ CodeRabbit configuration file

If there are no tests added or modified as part of the PR, please suggest that tests be added to cover the changes.

**/*: Only comment on issues that would block merging, ignore minor or stylistic concerns.
Restrict feedback to errors, security risks, or functionality-breaking problems.
Do not post comments on code style, formatting, or non-critical improvements.
Keep reviews short: flag only issues that make the PR unsafe to merge.
Group similar issues into a single comment instead of posting multiple notes.
Skip repetition: if a pattern repeats, mention it once at a summary level only.
Do not add general suggestions, focus strictly on merge-blocking concerns.
If there are no critical problems, respond with minimal approval (e.g., 'Looks good'). Do not add additional review.
Avoid line-by-line commentary unless it highlights a critical bug or security hole.
Highlight only issues that could cause runtime errors, data loss, or severe maintainability issues.
Ignore minor optimization opportunities, focus solely on correctness and safety.
Provide a top-level summary of critical blockers rather than detailed per-line notes.
Comment only when the issue must be resolved before merge, otherwise remain silent.
When in doubt, err on the side of fewer comments, brevity and blocking issues only.
Avoid posting any refactoring issues.

Files:

  • packages/shared/src/types/clerk.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (27)
  • GitHub Check: Integration Tests (machine, chrome, RQ)
  • GitHub Check: Integration Tests (quickstart, chrome, 15)
  • GitHub Check: Integration Tests (nextjs, chrome, 16)
  • GitHub Check: Integration Tests (quickstart, chrome, 16)
  • GitHub Check: Integration Tests (nextjs, chrome, 16, RQ)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (custom, chrome)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (handshake:staging, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (billing, chrome, RQ)
  • GitHub Check: Integration Tests (handshake, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (sessions:staging, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Build Packages
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
packages/shared/src/types/clerk.ts (1)

1065-1073: JSDoc documentation successfully added.

The comprehensive JSDoc comment properly documents the unsafe_disableDevelopmentModeConsoleWarning option with:

  • Clear explanation of the option's purpose
  • Developer-facing security warning with emphasis on production implications
  • Reference link to additional documentation

Comment on lines +1 to +2
---
---
Copy link
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, check if the file exists and read its content
if [ -f ".changeset/crisp-symbols-add.md" ]; then
  echo "=== File Content ===" 
  cat -n ".changeset/crisp-symbols-add.md"
else
  echo "File not found"
fi

# Check for changeset configuration
echo -e "\n=== Changeset Config ===" 
if [ -f ".changeset/config.json" ]; then
  cat ".changeset/config.json"
else
  echo "No config.json found"
fi

# Look for other changeset files for reference
echo -e "\n=== Other Changeset Files ===" 
if [ -d ".changeset" ]; then
  ls -la ".changeset/" | grep -E "\.md$"
fi

Repository: clerk/javascript

Length of output: 6197


🏁 Script executed:

# Check a few other changeset files to see the expected format
echo "=== Example: afraid-apes-cough.md ===" 
cat ".changeset/afraid-apes-cough.md"

echo -e "\n=== Example: bright-zebras-arrive.md ===" 
cat ".changeset/bright-zebras-arrive.md"

echo -e "\n=== Example: blue-stars-tie.md ===" 
cat ".changeset/blue-stars-tie.md"

echo -e "\n=== Example: chilled-olives-cheer.md ===" 
cat ".changeset/chilled-olives-cheer.md"

# Check the README for changeset format guidelines
echo -e "\n=== .changeset/README.md ===" 
cat ".changeset/README.md"

Repository: clerk/javascript

Length of output: 1193


Empty changeset file requires completion.

The changeset file contains only YAML delimiters without package/version information or a description. Multiple other changesets in the repository have the same empty structure (e.g., blue-stars-tie.md, chilled-olives-cheer.md). Verify whether these empty changesets are intentional for your release automation or need to be completed with package names, version bump types (patch/minor/major), and change descriptions.

🤖 Prompt for AI Agents
In .changeset/crisp-symbols-add.md around lines 1 to 2, the changeset is empty
(only YAML delimiters) which breaks release metadata; populate this file (and
any other empty changesets like blue-stars-tie.md, chilled-olives-cheer.md) with
the required fields: list the affected package names, specify the version bump
type (patch/minor/major) for each package, and add a short description of the
change; if these files were intentionally left empty for automation, instead
remove them or document the intention in a comment file so release tooling does
not treat them as incomplete.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 18, 2025

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 869519b

@dstaley dstaley merged commit 5d166e5 into main Dec 18, 2025
44 checks passed
@dstaley dstaley deleted the ds.fix/warning-jsdoc branch December 18, 2025 15:59
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.

3 participants