Skip to content

chore(clerk-js): Update dependencies #6349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

chore(clerk-js): Update dependencies #6349

wants to merge 2 commits into from

Conversation

tmilewski
Copy link
Member

@tmilewski tmilewski commented Jul 18, 2025

Description

Update dependencies to latest (with the exception of @stripe/stripe-js which is now the latest minor) and account for typing issues between HOC components and @emotion/react.

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

  • Chores

    • Updated several dependencies to their latest versions for improved stability and compatibility.
    • Added a new empty changeset file for tracking future updates.
  • Refactor

    • Simplified type assertions in multiple higher-order components to improve maintainability, without affecting runtime behavior.

@tmilewski tmilewski self-assigned this Jul 18, 2025
Copy link

changeset-bot bot commented Jul 18, 2025

🦋 Changeset detected

Latest commit: d43467d

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

Copy link

vercel bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 4:24pm

Copy link

pkg-pr-new bot commented Jul 18, 2025

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6349

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6349

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6349

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6349

@clerk/upgrade

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

@clerk/vue

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

commit: d43467d

Copy link
Contributor

coderabbitai bot commented Jul 18, 2025

📝 Walkthrough

Walkthrough

The changes introduce an empty changeset file with only frontmatter delimiters. In the @clerk/clerk-js package, several dependencies in package.json are updated to newer versions. Across multiple TypeScript React higher-order component files (withRedirect.tsx, withHavingTrouble.tsx, and withAvatarShimmer.tsx), the type assertions used when spreading props into wrapped components are modified: the props are now cast to any instead of their previous, more specific types or generic parameters. No public or exported entity signatures are changed in any of the files.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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: 5

🔭 Outside diff range comments (2)
.changeset/cruel-seals-agree.md (1)

1-3: Add changeset content for dependency updates.

The changeset file is empty and only contains frontmatter delimiters. For dependency updates, you should include:

  • Package name (@clerk/clerk-js)
  • Change type (likely patch for dependency updates)
  • Description of what was updated
---
+"@clerk/clerk-js": patch
---
+
+Updated dependencies to latest versions and fixed TypeScript typing issues with HOCs and @emotion/react.
packages/clerk-js/package.json (1)

1-111: Add tests for dependency updates.

The coding guidelines state that tests should be added when there are no tests in the PR. Since this updates multiple dependencies including emotion and floating-ui which affect UI rendering, please add tests to verify:

  1. HOCs still work correctly with updated @emotion/react
  2. Floating UI components render properly
  3. No regressions in authentication flows
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 110a74d and f29a83b.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • .changeset/cruel-seals-agree.md (1 hunks)
  • packages/clerk-js/package.json (1 hunks)
  • packages/clerk-js/src/ui/common/withRedirect.tsx (1 hunks)
  • packages/clerk-js/src/ui/components/SignIn/withHavingTrouble.tsx (1 hunks)
  • packages/clerk-js/src/ui/components/UserVerification/withHavingTrouble.tsx (1 hunks)
  • packages/clerk-js/src/ui/elements/withAvatarShimmer.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (12)
.changeset/**

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/monorepo.mdc
packages/clerk-js/src/ui/**/*.{ts,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/clerk-js-ui.mdc
**/*.{js,jsx,ts,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
packages/**/*.{ts,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
packages/**/*.{ts,tsx,d.ts}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
**/*.{ts,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
  • .cursor/rules/typescript.mdc
**/*.{jsx,tsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/development.mdc
  • .cursor/rules/react.mdc
**/*.{js,ts,tsx,jsx}

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/monorepo.mdc
**/*.tsx

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/react.mdc
**/*

Instructions used from:

Sources:
⚙️ CodeRabbit Configuration File

packages/*/package.json

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/global.mdc
  • .cursor/rules/monorepo.mdc
⏰ 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). (4)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Build Packages
  • GitHub Check: semgrep/ci
  • GitHub Check: Analyze (javascript-typescript)

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