feat(shared): Export ClerkAPIResponseError from error subpaths#8228
feat(shared): Export ClerkAPIResponseError from error subpaths#8228jacekradko merged 3 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: bfa2bb0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
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 |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
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: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA changeset entry was added for six packages. The public error subpaths were expanded to also export ClerkAPIResponseError and ClerkRuntimeError across clerk/backend, clerk/react, clerk/nextjs, clerk/react-router, clerk/vue, and clerk/nuxt by adding re-exports in their errors modules. An export-test snapshot was updated to include the newly exported symbols. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Summary
ClerkAPIResponseErrorandisClerkAPIResponseErrorfrom@clerk/backend/errorsClerkAPIResponseErrorandClerkRuntimeErrorclass exports to@clerk/react/errors,@clerk/nextjs/errors,@clerk/react-router/errors,@clerk/vue/errors, and@clerk/nuxt/errorsalongside the already-exported type guardsisClerkRuntimeErrorto@clerk/react-router/errorsThese error classes are thrown in user-facing code paths but weren't importable from the SDK packages that surface them, requiring users to separately install
@clerk/shared.Test plan
pnpm buildpasses/errorssubpath)Summary by CodeRabbit
New Features
ClerkAPIResponseErrorandClerkRuntimeErrorare now exported from the error subpaths of backend, React, Next.js, React Router, Vue, and Nuxt packages, unifying error exports across frameworks.Chores