fix(ui): import createTheme types relatively for deterministic declarations - #10040
alexcarpenter wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: f5a9463 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen 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 |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: This review used your included allowance. 7 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. 📝 WalkthroughWalkthroughThe Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to The theme declaration import now uses a stable relative path, and its target is included in the published output. The empty changeset does not disrupt release workflows, so no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
API Changes Report
Summary
@clerk/uiCurrent version: 1.38.1 Subpath
|
Description
createTheme.tsimported its appearance types through the package's own@clerk/ui/internalspecifier. That resolves throughpackage.jsonexportstodist/internal/index.d.ts, so tsdown emitted different declarations depending on whetherdist/existed at build time:dist/:import { ... } from "@clerk/ui/internal"dist/(clean: false):import { ... } from "../dist/internal/appearance.js", an invalid path from insidedist/themes/Break Check builds its main baseline and the PR head under different conditions, so every PR touching
packages/ui/**was reported as a breaking change tocreateThemein./themes/experimental(e.g. #10015 (comment)).Importing the types relatively makes the emitted declarations identical in both cases. Published types are unaffected.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change