Skip to content

chore(repo): Move tslib to devDependencies - #10521

Open
dominic-clerk wants to merge 1 commit into
mainfrom
dominic/sec-493-fix-dependency-scopes
Open

dominic-clerk wants to merge 1 commit into
mainfrom
dominic/sec-493-fix-dependency-scopes

Conversation

@dominic-clerk

Copy link
Copy Markdown
Contributor

Description

Stacked on #10485. Moves tslib from dependencies to devDependencies in backend, electron, expo, expo-native-components, express, nextjs, react, react-router and tanstack-react-start. These build with tsup/tsdown, which inline their own helpers, so no published file imports tslib; it's only needed for type-checking with importHelpers.

  • Packed tarballs are unchanged apart from the manifest
  • Consumers of these packages no longer install tslib through them

Bundled deps in clerk-js and ui stay in dependencies on purpose (9ee9ee3) so consumer audit/SBOM tooling still sees shipped code.

Part of SEC-493

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:

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 29, 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 Oct 29, 2026 12:31pm UTC
swingset Ready Ready Preview Oct 29, 2026 12:31pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Run configuration
Commits

Reviewing files that changed from the base of the PR and between fdf7509 and 645d197.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 90a9b2b and fdf7509.

Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 10
  • .changeset/drop-tslib-runtime-dependency.md
  • packages/backend/package.json
  • packages/electron/package.json
  • packages/expo-native-components/package.json
  • packages/expo/package.json
  • packages/express/package.json
  • packages/nextjs/package.json
  • packages/react-router/package.json
  • packages/react/package.json
  • packages/tanstack-react-start/package.json
Linked repositories identified

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

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

Walkthrough

Several package manifests move tslib between runtime and development dependencies. The Expo native components package moves tslib to runtime dependencies. The Expo package moves react-native-url-polyfill to development dependencies. The Express and React packages list @clerk/shared as a runtime dependency. A changeset records patch releases for nine Clerk packages and states that tslib is no longer installed as a runtime dependency.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: clerk-cookie, wobsoriano

Merge Risk: Minimal · previous review fdf75

No concrete runtime, packaging, security, or availability defect remains established for this dependency-scope change.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: moving tslib from dependencies to devDependencies.
Description check Passed The description directly explains the dependency changes, affected packages, rationale, validation, and intentional exceptions.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (10 skipped: 10 unsupported.)

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

Warning

Linked repositories: Some configured repositories could not be included in this review. Cross-repository analysis may be incomplete. Please check linked-repository access and settings.

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

@changeset-bot

changeset-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 645d197

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

This PR includes changesets to release 16 packages
Name Type
@clerk/backend Patch
@clerk/electron Patch
@clerk/expo Patch
@clerk/expo-native-components Patch
@clerk/express Patch
@clerk/nextjs Patch
@clerk/react Patch
@clerk/react-router Patch
@clerk/tanstack-react-start Patch
@clerk/astro Patch
@clerk/fastify Patch
@clerk/hono Patch
@clerk/nuxt Patch
@clerk/testing Patch
@clerk/swingset Patch
@clerk/chrome-extension Patch

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Oct 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

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

@clerk/electron-passkeys

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

@clerk/eslint-plugin

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

@clerk/expo

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

@clerk/expo-biometrics

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

@clerk/expo-google-signin

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

@clerk/expo-native-components

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

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

@clerk/localizations

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

@clerk/mosaic

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 645d197

@github-actions

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-10-29T12:36:07.561Z

Summary

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

No API Changes Detected

All packages have stable APIs with no detected changes.


Report generated by Break Check

Last ran on 645d197.

This branch was successfully deployed

2 active deployments
Preview – swingset — 645d197c Deployed Oct 29, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 645d197c Deployed Oct 29, 2026 by vercel[bot]
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.

1 participant