Skip to content

feat(clerk-js,clerk-react,types): Signal errors #6495

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

Merged
merged 5 commits into from
Aug 11, 2025
Merged

Conversation

dstaley
Copy link
Member

@dstaley dstaley commented Aug 8, 2025

Description

This PR adds error parsing to our Signals implementation, which is still internal, and not intended for public consumption (yet!).

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

  • New Features

    • Structured, field-specific sign-in errors now surface (e.g., email, password, username), plus preserved global and raw error collections for clearer UI messaging.
    • Improved parsing that maps server validation errors to the relevant sign-in fields. Feature marked experimental.
  • Chores

    • Adds a changeset documenting minor version bumps and the experimental “Signal Errors” update.

Copy link

changeset-bot bot commented Aug 8, 2025

🦋 Changeset detected

Latest commit: 4d9b742

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

This PR includes changesets to release 22 packages
Name Type
@clerk/clerk-js Minor
@clerk/clerk-react Minor
@clerk/types Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/elements Patch
@clerk/nextjs Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/nuxt Patch
@clerk/shared Patch
@clerk/testing Patch
@clerk/themes Patch
@clerk/vue 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

Copy link

vercel bot commented Aug 8, 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 Aug 11, 2025 6:01pm

Copy link

pkg-pr-new bot commented Aug 8, 2025

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/elements

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

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

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

@clerk/types

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

@clerk/upgrade

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

@clerk/vue

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

commit: 4d9b742

Copy link
Contributor

coderabbitai bot commented Aug 8, 2025

📝 Walkthrough

Walkthrough

Added a changeset for minor releases and an experimental “Signal Errors” note. Tightened SignInFuture catch typings to unknown. Reworked sign-in error handling: signInErrorSignal payload renamed from { errors } to { error }, added errorsToParsedErrors(error) to produce structured Errors (field, raw, global), and signInComputedSignal now reads parsed errors. State now emits { error } to signInErrorSignal. Removed the explicit return type from useClerkSignal. Introduced FieldError/FieldErrors/Errors interfaces and changed signInSignal to return Errors (setter removed). Bumped bundlewatch size thresholds.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes


🪧 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.
  • 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.

Support

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

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

🧹 Nitpick comments (6)
.changeset/happy-dodos-sneeze.md (1)

7-7: Clarify experimental scope in the changeset body

Consider adding a short one-liner clarifying that Signal Errors are internal-only and subject to change, plus a brief summary of what “error parsing” covers (API errors into field/global categories).

packages/react/src/hooks/useClerkSignal.ts (1)

49-51: Add minimal JSDoc for experimental surface

Mark useSignInSignal as experimental/internal to set expectations for consumers.

/**
 * @experimental Internal API subject to change.
 * Returns the sign-in signal snapshot (or null on init).
 */
packages/clerk-js/src/core/state.ts (1)

22-25: Correctly forward typed API errors to the signal

This aligns the state with the event payload. Consider adding tests to ensure:

  • Non-API errors clear the error signal
  • API-shaped errors are parsed into field/global buckets by the computed signal

Would you like me to draft unit tests for these two cases?

packages/clerk-js/src/core/signals.ts (2)

40-41: Shadowed variable name hinders readability

The arrow-function parameter error shadows the outer error parameter. Rename one of them (err / apiErr, etc.) to make the control flow clearer and prevent accidental misuse.


22-38: Consider data-driven mapping instead of long switch

The repetitive switch can be replaced by a simple lookup table to reduce maintenance overhead and avoid missing future fields:

const map: Record<string, keyof Errors['fields']> = {
  first_name: 'firstName',
  last_name: 'lastName',
  email_address: 'emailAddress',
  identifier: 'identifier',
  phone_number: 'phoneNumber',
  password: 'password',
  username: 'username',
  code: 'code',
  captcha: 'captcha',
  legal_accepted: 'legalAccepted',
};

error?.errors.forEach(e => {
  const key = map[e.meta?.paramName as string];
  key ? (parsedErrors.fields[key] = e) : parsedErrors.global.push(e);
});

Cleaner, faster, and harder to get out of sync with types.

packages/types/src/state.ts (1)

22-26: Prefer precise types over any[] for raw and global

Both arrays hold API error objects, so typing them as any[] discards useful information. Suggest tightening to the actual Clerk error shape:

-  raw: any[];
-  global: any[];
+  raw: ClerkAPIResponseError['errors'];
+  global: ClerkAPIResponseError['errors'];

(or a reusable type APIError = ClerkAPIResponseError['errors'][number]).

Improves IntelliSense and guards against accidental misuse.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between cf284ee and 837fdc2.

📒 Files selected for processing (7)
  • .changeset/happy-dodos-sneeze.md (1 hunks)
  • packages/clerk-js/src/core/events.ts (2 hunks)
  • packages/clerk-js/src/core/resources/SignIn.ts (4 hunks)
  • packages/clerk-js/src/core/signals.ts (1 hunks)
  • packages/clerk-js/src/core/state.ts (2 hunks)
  • packages/react/src/hooks/useClerkSignal.ts (1 hunks)
  • packages/types/src/state.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (8)
.changeset/**

📄 CodeRabbit Inference Engine (.cursor/rules/monorepo.mdc)

Automated releases must use Changesets.

Files:

  • .changeset/happy-dodos-sneeze.md
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

**/*.{js,jsx,ts,tsx}: All code must pass ESLint checks with the project's configuration
Follow established naming conventions (PascalCase for components, camelCase for variables)
Maintain comprehensive JSDoc comments for public APIs
Use dynamic imports for optional features
All public APIs must be documented with JSDoc
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
Profile and optimize critical paths
Validate all inputs and sanitize outputs
Implement proper logging with different levels

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.ts
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.ts
packages/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

TypeScript is required for all packages

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.ts
packages/**/*.{ts,tsx,d.ts}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Packages should export TypeScript types alongside runtime code

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.ts
**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Use proper TypeScript error types

**/*.{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
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
Use protected for inheritance hierarchies
Use public explicitly for clarity in public APIs
Prefer readonly for properties that shouldn't change after construction
Prefer composition and interfaces over deep inheritance chains
Use mixins for shared behavior across unrelated classes
Implement dependency injection for loose coupling
Let TypeScript infer when types are obvious
Use const assertions for literal types: as const
Use satisfies operator for type checking without widening
Use mapped types for transforming object types
Use conditional types for type-level logic
Leverage template literal types for string manipulation
Use ES6 imports/exports consistently
Use default exports sparingly, prefer named exports
Use type-only imports: import type { ... } from ...
No any types without justification
Proper error handling with typed errors
Consistent use of readonly for immutable data
Proper generic constraints
No unused type parameters
Proper use of utility types instead of manual type construction
Type-only imports where possible
Proper tree-shaking friendly exports
No circular dependencies
Efficient type computations (avoid deep recursion)

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.ts
**/*.{js,ts,tsx,jsx}

📄 CodeRabbit Inference Engine (.cursor/rules/monorepo.mdc)

Support multiple Clerk environment variables (CLERK_, NEXT_PUBLIC_CLERK_, etc.) for configuration.

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.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.

Files:

  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/events.ts
  • packages/react/src/hooks/useClerkSignal.ts
  • packages/clerk-js/src/core/state.ts
  • packages/clerk-js/src/core/signals.ts
  • packages/types/src/state.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). (5)
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: Build Packages
  • GitHub Check: semgrep/ci
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (4)
.changeset/happy-dodos-sneeze.md (1)

1-5: Appropriate changeset scope and bump levels

Minor bumps across JS, React, and Types make sense given additive typing and internal signal changes.

packages/clerk-js/src/core/events.ts (1)

17-17: Type the error payload as ClerkAPIResponseError | null — LGTM

The typed payload will help downstream consumers and aligns with the parsing work.

packages/clerk-js/src/core/resources/SignIn.ts (1)

15-15: Importing ClerkAPIResponseError for error typing — OK

This aligns with the event payload typing across the codebase.

packages/clerk-js/src/core/state.ts (1)

1-1: Type-only import for ClerkAPIResponseError — LGTM

Keeps runtime clean and matches the new payload typing.

@@ -1,5 +1,5 @@
import { createEventBus } from '@clerk/shared/eventBus';
import type { TokenResource } from '@clerk/types';
import type { ClerkAPIResponseError, TokenResource } from '@clerk/types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify all emitters conform to the new payload

Now that ResourceErrorPayload.error is ClerkAPIResponseError | null, ensure all eventBus.emit('resource:error', …) sites either pass a properly typed API error or null (for non-API errors).

Run this to find non-conforming emitters:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "All resource:error emit sites:"
rg -n "eventBus\\.emit\\('resource:error'" -A 3 -B 1

echo
echo "Emitters that don't cast/guard to ClerkAPIResponseError or null:"
rg -n "eventBus\\.emit\\('resource:error', \\{[^}]*error: (?!null)(?!\\(.*ClerkAPIResponseError\\)).*\\}" -U || true

Length of output: 5359


Ensure all resource:error emits use ClerkAPIResponseError | null

A couple of eventBus.emit('resource:error', …) calls are still passing the raw err (type unknown) instead of casting it to ClerkAPIResponseError. Please update them to match the new payload type:

• packages/clerk-js/src/core/resources/SignIn.ts

  • Line 522
  • Line 535

Change each instance from:

eventBus.emit('resource:error', { resource: this.resource, error: err });

to:

eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });

This ensures ResourceErrorPayload.error is always ClerkAPIResponseError or null.

🤖 Prompt for AI Agents
In packages/clerk-js/src/core/resources/SignIn.ts at lines 522 and 535, the
eventBus.emit calls for 'resource:error' are passing the error as type unknown
instead of ClerkAPIResponseError. Update these calls by casting the error to
ClerkAPIResponseError using 'err as ClerkAPIResponseError' to ensure the emitted
payload matches the expected type ClerkAPIResponseError | null.

Comment on lines 560 to 563
} catch (err: unknown) {
eventBus.emit('resource:error', { resource: this.resource, error: err });
eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
return { error: err };
}
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

Avoid unsound cast; guard before emitting API error

err here can be a locally thrown Error (e.g., “Email code factor not found”). Blindly casting to ClerkAPIResponseError risks runtime shape errors down the line. Guard, and emit null for non-API errors.

Apply:

-      eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
+      const apiErr = isClerkAPIResponseError(err) ? err : null;
+      eventBus.emit('resource:error', { resource: this.resource, error: apiErr });

Add this helper (once per module or in a shared util):

// Type guard for API errors
function isClerkAPIResponseError(err: unknown): err is ClerkAPIResponseError {
  return !!err && typeof err === 'object' && Array.isArray((err as any).errors);
}
🤖 Prompt for AI Agents
In packages/clerk-js/src/core/resources/SignIn.ts around lines 560 to 563, the
error object `err` is unsafely cast to `ClerkAPIResponseError` without checking
its type, which can cause runtime errors. To fix this, implement a type guard
function `isClerkAPIResponseError` that checks if `err` has the expected shape
(e.g., an `errors` array). Use this guard before emitting the error event: emit
the error only if it passes the guard, otherwise emit null or handle
accordingly. This prevents unsafe casts and ensures only valid API errors are
emitted.

Comment on lines 575 to 578
} catch (err: unknown) {
eventBus.emit('resource:error', { resource: this.resource, error: err });
eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
return { error: err };
}
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

Same guard needed here

Don’t cast arbitrary errors to ClerkAPIResponseError; guard and emit null when not API-shaped.

-      eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
+      const apiErr = isClerkAPIResponseError(err) ? err : null;
+      eventBus.emit('resource:error', { resource: this.resource, error: apiErr });
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
} catch (err: unknown) {
eventBus.emit('resource:error', { resource: this.resource, error: err });
eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
return { error: err };
}
} catch (err: unknown) {
const apiErr = isClerkAPIResponseError(err) ? err : null;
eventBus.emit('resource:error', { resource: this.resource, error: apiErr });
return { error: err };
}
🤖 Prompt for AI Agents
In packages/clerk-js/src/core/resources/SignIn.ts around lines 575 to 578, the
catch block casts any caught error to ClerkAPIResponseError without verifying
its shape. To fix this, add a type guard to check if the error matches the
ClerkAPIResponseError structure before emitting it; if it does not, emit null
instead. Also, update the returned error accordingly to avoid unsafe casting.

Comment on lines 615 to 617
} catch (err: unknown) {
eventBus.emit('resource:error', { resource: this.resource, error: err });
eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
return { error: err };
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

Guard before emitting in SSO flow

This path throws local errors (e.g., “modal flow is not supported yet”). Use the same guard to avoid mis-typing the signal.

-      eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
+      const apiErr = isClerkAPIResponseError(err) ? err : null;
+      eventBus.emit('resource:error', { resource: this.resource, error: apiErr });
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
} catch (err: unknown) {
eventBus.emit('resource:error', { resource: this.resource, error: err });
eventBus.emit('resource:error', { resource: this.resource, error: err as ClerkAPIResponseError });
return { error: err };
} catch (err: unknown) {
const apiErr = isClerkAPIResponseError(err) ? err : null;
eventBus.emit('resource:error', { resource: this.resource, error: apiErr });
return { error: err };
🤖 Prompt for AI Agents
In packages/clerk-js/src/core/resources/SignIn.ts around lines 615 to 617, the
catch block emits an error event without checking if the current flow supports
it, which can cause issues with local errors like "modal flow is not supported
yet." Add a guard condition before emitting the 'resource:error' event to ensure
it only emits for supported flows, preventing mis-typing or inappropriate signal
emission.

import { useCallback, useSyncExternalStore } from 'react';

import { useIsomorphicClerkContext } from '../contexts/IsomorphicClerkContext';
import { useAssertWrappedByClerkProvider } from './useAssertWrappedByClerkProvider';

function useClerkSignal(signal: 'signIn'): { errors: unknown; signIn: SignInFutureResource | null } | null {
function useClerkSignal(signal: 'signIn') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Restore explicit return types for public APIs

Per guidelines, exported hooks should have explicit return types. You can capture the core’s type without duplicating shapes via ReturnType of the State['signInSignal'].

+import type { State as ClerkState } from '@clerk/types';
 
-function useClerkSignal(signal: 'signIn') {
+function useClerkSignal(signal: 'signIn'): ReturnType<ClerkState['signInSignal']> | null {
   …
 }
 
-export function useSignInSignal() {
+export function useSignInSignal(): ReturnType<ClerkState['signInSignal']> | null {
   return useClerkSignal('signIn');
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
function useClerkSignal(signal: 'signIn') {
// Add the type import
import type { State as ClerkState } from '@clerk/types';
function useClerkSignal(
signal: 'signIn'
): ReturnType<ClerkState['signInSignal']> | null {
}
export function useSignInSignal(): ReturnType<ClerkState['signInSignal']> | null {
return useClerkSignal('signIn');
}
🤖 Prompt for AI Agents
In packages/react/src/hooks/useClerkSignal.ts at line 6, the exported hook
useClerkSignal lacks an explicit return type. Fix this by adding an explicit
return type using ReturnType<typeof State['signInSignal']> to capture the core
type without duplicating shapes, ensuring the public API follows the guidelines.

@dstaley dstaley changed the title feat(clerk-js,react,types): Signal errors feat(clerk-js,clerk-react,types): Signal errors Aug 8, 2025
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

♻️ Duplicate comments (1)
packages/clerk-js/src/core/signals.ts (1)

49-80: Add default case for unknown field names

While the else block handles errors without paramName, the switch statement should have a default case to handle unknown paramName values explicitly, preventing silent error drops.

       switch (error.meta.paramName) {
         case 'first_name':
           parsedErrors.fields.firstName = error;
           break;
         case 'last_name':
           parsedErrors.fields.lastName = error;
           break;
         case 'email_address':
           parsedErrors.fields.emailAddress = error;
           break;
         case 'identifier':
           parsedErrors.fields.identifier = error;
           break;
         case 'phone_number':
           parsedErrors.fields.phoneNumber = error;
           break;
         case 'password':
           parsedErrors.fields.password = error;
           break;
         case 'username':
           parsedErrors.fields.username = error;
           break;
         case 'code':
           parsedErrors.fields.code = error;
           break;
         case 'captcha':
           parsedErrors.fields.captcha = error;
           break;
         case 'legal_accepted':
           parsedErrors.fields.legalAccepted = error;
           break;
+        default:
+          // Unknown field names go to global errors
+          parsedErrors.global.push(error);
+          break;
       }
🧹 Nitpick comments (2)
packages/types/src/state.ts (1)

25-25: Minor grammatical improvement for clarity

The comment could be slightly clearer.

-  global: unknown[]; // does not include any errors that could be parsed as a field error
+  global: unknown[]; // excludes errors that could be parsed as field errors
packages/clerk-js/src/core/signals.ts (1)

47-47: Variable shadowing could cause confusion

The error parameter in the forEach callback shadows the outer error parameter, which could lead to confusion.

-  error.errors.forEach(error => {
+  error.errors.forEach(err => {
-    if ('meta' in error && error.meta && 'paramName' in error.meta) {
+    if ('meta' in err && err.meta && 'paramName' in err.meta) {
-      switch (error.meta.paramName) {
+      switch (err.meta.paramName) {
         case 'first_name':
-          parsedErrors.fields.firstName = error;
+          parsedErrors.fields.firstName = err;
           break;
         case 'last_name':
-          parsedErrors.fields.lastName = error;
+          parsedErrors.fields.lastName = err;
           break;
         case 'email_address':
-          parsedErrors.fields.emailAddress = error;
+          parsedErrors.fields.emailAddress = err;
           break;
         case 'identifier':
-          parsedErrors.fields.identifier = error;
+          parsedErrors.fields.identifier = err;
           break;
         case 'phone_number':
-          parsedErrors.fields.phoneNumber = error;
+          parsedErrors.fields.phoneNumber = err;
           break;
         case 'password':
-          parsedErrors.fields.password = error;
+          parsedErrors.fields.password = err;
           break;
         case 'username':
-          parsedErrors.fields.username = error;
+          parsedErrors.fields.username = err;
           break;
         case 'code':
-          parsedErrors.fields.code = error;
+          parsedErrors.fields.code = err;
           break;
         case 'captcha':
-          parsedErrors.fields.captcha = error;
+          parsedErrors.fields.captcha = err;
           break;
         case 'legal_accepted':
-          parsedErrors.fields.legalAccepted = error;
+          parsedErrors.fields.legalAccepted = err;
           break;
       }
     } else {
-      parsedErrors.global.push(error);
+      parsedErrors.global.push(err);
     }
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 837fdc2 and 4b3f44f.

📒 Files selected for processing (5)
  • packages/clerk-js/bundlewatch.config.json (1 hunks)
  • packages/clerk-js/src/core/resources/SignIn.ts (2 hunks)
  • packages/clerk-js/src/core/signals.ts (1 hunks)
  • packages/clerk-js/src/core/state.ts (1 hunks)
  • packages/types/src/state.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/clerk-js/src/core/resources/SignIn.ts
  • packages/clerk-js/src/core/state.ts
🧰 Additional context used
📓 Path-based instructions (7)
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • packages/clerk-js/bundlewatch.config.json
  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.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.

Files:

  • packages/clerk-js/bundlewatch.config.json
  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.ts
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

**/*.{js,jsx,ts,tsx}: All code must pass ESLint checks with the project's configuration
Follow established naming conventions (PascalCase for components, camelCase for variables)
Maintain comprehensive JSDoc comments for public APIs
Use dynamic imports for optional features
All public APIs must be documented with JSDoc
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
Profile and optimize critical paths
Validate all inputs and sanitize outputs
Implement proper logging with different levels

Files:

  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.ts
packages/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

TypeScript is required for all packages

Files:

  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.ts
packages/**/*.{ts,tsx,d.ts}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Packages should export TypeScript types alongside runtime code

Files:

  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.ts
**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Use proper TypeScript error types

**/*.{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
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
Use protected for inheritance hierarchies
Use public explicitly for clarity in public APIs
Prefer readonly for properties that shouldn't change after construction
Prefer composition and interfaces over deep inheritance chains
Use mixins for shared behavior across unrelated classes
Implement dependency injection for loose coupling
Let TypeScript infer when types are obvious
Use const assertions for literal types: as const
Use satisfies operator for type checking without widening
Use mapped types for transforming object types
Use conditional types for type-level logic
Leverage template literal types for string manipulation
Use ES6 imports/exports consistently
Use default exports sparingly, prefer named exports
Use type-only imports: import type { ... } from ...
No any types without justification
Proper error handling with typed errors
Consistent use of readonly for immutable data
Proper generic constraints
No unused type parameters
Proper use of utility types instead of manual type construction
Type-only imports where possible
Proper tree-shaking friendly exports
No circular dependencies
Efficient type computations (avoid deep recursion)

Files:

  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.ts
**/*.{js,ts,tsx,jsx}

📄 CodeRabbit Inference Engine (.cursor/rules/monorepo.mdc)

Support multiple Clerk environment variables (CLERK_, NEXT_PUBLIC_CLERK_, etc.) for configuration.

Files:

  • packages/types/src/state.ts
  • packages/clerk-js/src/core/signals.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). (4)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
🔇 Additional comments (4)
packages/clerk-js/bundlewatch.config.json (1)

3-3: Bundle size increases are reasonable for the added error parsing functionality

The ~1KB increase in bundle sizes is justified by the new error parsing and structured error handling capabilities being added. These small increases are acceptable for the value provided by improved error handling.

Also applies to: 6-6

packages/types/src/state.ts (1)

3-26: Well-structured error type definitions with proper typing

The new error interfaces provide excellent type safety for error handling. The use of unknown[] instead of any[] for raw and global arrays follows TypeScript best practices.

packages/clerk-js/src/core/signals.ts (2)

1-8: Proper imports and signal structure updates

The new imports and signal payload change from errors to error properly align with the single error handling pattern.


10-21: Clean integration of error parsing in computed signal

The computed signal properly integrates the new error parsing function and maintains backwards compatibility by returning the same structure.

}

return { errors, signIn: signIn.__internal_future };
});

export function errorsToParsedErrors(error: unknown): Errors {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add JSDoc documentation for exported function

Per the coding guidelines, all public APIs must be documented with JSDoc.

+/**
+ * Parses an error into a structured Errors object with field-specific and global errors.
+ * @param error - The error to parse, typically from a Clerk API response
+ * @returns A structured Errors object with parsed field errors and global errors
+ */
 export function errorsToParsedErrors(error: unknown): Errors {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export function errorsToParsedErrors(error: unknown): Errors {
/**
* Parses an error into a structured Errors object with field-specific and global errors.
* @param error - The error to parse, typically from a Clerk API response
* @returns A structured Errors object with parsed field errors and global errors
*/
export function errorsToParsedErrors(error: unknown): Errors {
🤖 Prompt for AI Agents
In packages/clerk-js/src/core/signals.ts around line 23, the exported function
errorsToParsedErrors is missing JSDoc documentation; add a JSDoc block
immediately above the function that describes the function purpose, its
parameters (type and meaning for the unknown error input), return type (Errors)
and any thrown errors or notes about accepted input shapes, include examples or
behavior for common inputs if relevant, and follow the repo JSDoc style (summary
line, @param, @returns, and any @throws or @example tags as appropriate).

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

🧹 Nitpick comments (1)
packages/clerk-js/src/core/signals.ts (1)

27-27: Consider exporting errorsToParsedErrors for reusability

The errorsToParsedErrors function provides valuable error parsing functionality that could be useful in other parts of the codebase. Since it follows the pattern of converting raw errors into a structured format, consider exporting it to enable reuse in other error handling scenarios.

-function errorsToParsedErrors(error: unknown): Errors {
+export function errorsToParsedErrors(error: unknown): Errors {
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4b3f44f and 4d9b742.

📒 Files selected for processing (1)
  • packages/clerk-js/src/core/signals.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (7)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

**/*.{js,jsx,ts,tsx}: All code must pass ESLint checks with the project's configuration
Follow established naming conventions (PascalCase for components, camelCase for variables)
Maintain comprehensive JSDoc comments for public APIs
Use dynamic imports for optional features
All public APIs must be documented with JSDoc
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
Profile and optimize critical paths
Validate all inputs and sanitize outputs
Implement proper logging with different levels

Files:

  • packages/clerk-js/src/core/signals.ts
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • packages/clerk-js/src/core/signals.ts
packages/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

TypeScript is required for all packages

Files:

  • packages/clerk-js/src/core/signals.ts
packages/**/*.{ts,tsx,d.ts}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Packages should export TypeScript types alongside runtime code

Files:

  • packages/clerk-js/src/core/signals.ts
**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/development.mdc)

Use proper TypeScript error types

**/*.{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
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
Use protected for inheritance hierarchies
Use public explicitly for clarity in public APIs
Prefer readonly for properties that shouldn't change after construction
Prefer composition and interfaces over deep inheritance chains
Use mixins for shared behavior across unrelated classes
Implement dependency injection for loose coupling
Let TypeScript infer when types are obvious
Use const assertions for literal types: as const
Use satisfies operator for type checking without widening
Use mapped types for transforming object types
Use conditional types for type-level logic
Leverage template literal types for string manipulation
Use ES6 imports/exports consistently
Use default exports sparingly, prefer named exports
Use type-only imports: import type { ... } from ...
No any types without justification
Proper error handling with typed errors
Consistent use of readonly for immutable data
Proper generic constraints
No unused type parameters
Proper use of utility types instead of manual type construction
Type-only imports where possible
Proper tree-shaking friendly exports
No circular dependencies
Efficient type computations (avoid deep recursion)

Files:

  • packages/clerk-js/src/core/signals.ts
**/*.{js,ts,tsx,jsx}

📄 CodeRabbit Inference Engine (.cursor/rules/monorepo.mdc)

Support multiple Clerk environment variables (CLERK_, NEXT_PUBLIC_CLERK_, etc.) for configuration.

Files:

  • packages/clerk-js/src/core/signals.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.

Files:

  • packages/clerk-js/src/core/signals.ts
🧬 Code Graph Analysis (1)
packages/clerk-js/src/core/signals.ts (2)
packages/clerk-js/src/core/resources/SignIn.ts (1)
  • SignIn (74-492)
packages/types/src/state.ts (1)
  • Errors (22-26)
⏰ 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). (24)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (tanstack-react-router, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Integration Tests (quickstart, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Static analysis
  • GitHub Check: semgrep/ci
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (1)
packages/clerk-js/src/core/signals.ts (1)

45-48: Clarify the duplication of non-API errors in both raw and global arrays

When the error is not a Clerk API response error, it's being pushed to both raw and global arrays. This duplication might be intentional, but it's worth confirming whether both arrays should contain the same error object.

Consider if this duplication is necessary or if non-API errors should only go to one of these arrays to avoid redundancy.

Comment on lines +27 to +96
function errorsToParsedErrors(error: unknown): Errors {
const parsedErrors: Errors = {
fields: {
firstName: null,
lastName: null,
emailAddress: null,
identifier: null,
phoneNumber: null,
password: null,
username: null,
code: null,
captcha: null,
legalAccepted: null,
},
raw: [],
global: [],
};

if (!isClerkAPIResponseError(error)) {
parsedErrors.raw.push(error);
parsedErrors.global.push(error);
return parsedErrors;
}

parsedErrors.raw.push(...error.errors);

error.errors.forEach(error => {
if ('meta' in error && error.meta && 'paramName' in error.meta) {
switch (error.meta.paramName) {
case 'first_name':
parsedErrors.fields.firstName = error;
break;
case 'last_name':
parsedErrors.fields.lastName = error;
break;
case 'email_address':
parsedErrors.fields.emailAddress = error;
break;
case 'identifier':
parsedErrors.fields.identifier = error;
break;
case 'phone_number':
parsedErrors.fields.phoneNumber = error;
break;
case 'password':
parsedErrors.fields.password = error;
break;
case 'username':
parsedErrors.fields.username = error;
break;
case 'code':
parsedErrors.fields.code = error;
break;
case 'captcha':
parsedErrors.fields.captcha = error;
break;
case 'legal_accepted':
parsedErrors.fields.legalAccepted = error;
break;
default:
parsedErrors.global.push(error);
break;
}
} else {
parsedErrors.global.push(error);
}
});

return parsedErrors;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add unit tests for the new error parsing functionality

The errorsToParsedErrors function introduces complex error parsing logic with multiple branches and field mappings. Please add comprehensive unit tests to cover:

  • Non-Clerk API errors
  • Clerk API errors with various paramName values
  • Errors without meta or paramName properties
  • Multiple errors for the same field
  • Unknown paramName values hitting the default case
🤖 Prompt for AI Agents
In packages/clerk-js/src/core/signals.ts around lines 27 to 96, add
comprehensive unit tests for errorsToParsedErrors to validate its branching and
field mapping logic: create test cases for (1) non-Clerk errors (ensure raw and
global contain the original error), (2) Clerk API errors with each supported
paramName (first_name, last_name, email_address, identifier, phone_number,
password, username, code, captcha, legal_accepted) mapping to the correct
fields, (3) errors missing meta or paramName (expect them in global), (4)
multiple errors for the same field (ensure the last/expected assignment or
accumulation behavior asserted), and (5) unknown paramName values hitting the
default case (assigned to global); implement assertions on parsedErrors.fields,
parsedErrors.raw, and parsedErrors.global for each case.

Comment on lines +53 to +89
error.errors.forEach(error => {
if ('meta' in error && error.meta && 'paramName' in error.meta) {
switch (error.meta.paramName) {
case 'first_name':
parsedErrors.fields.firstName = error;
break;
case 'last_name':
parsedErrors.fields.lastName = error;
break;
case 'email_address':
parsedErrors.fields.emailAddress = error;
break;
case 'identifier':
parsedErrors.fields.identifier = error;
break;
case 'phone_number':
parsedErrors.fields.phoneNumber = error;
break;
case 'password':
parsedErrors.fields.password = error;
break;
case 'username':
parsedErrors.fields.username = error;
break;
case 'code':
parsedErrors.fields.code = error;
break;
case 'captcha':
parsedErrors.fields.captcha = error;
break;
case 'legal_accepted':
parsedErrors.fields.legalAccepted = error;
break;
default:
parsedErrors.global.push(error);
break;
}
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

Field errors may be overwritten when multiple errors exist for the same field

The current implementation assigns errors directly to field properties (e.g., parsedErrors.fields.firstName = error). If the API returns multiple errors for the same field, only the last one will be retained, potentially losing important validation information.

Consider either:

  1. Changing field properties to arrays to store multiple errors per field
  2. Documenting this limitation if it's intentional
  3. Logging a warning when overwriting occurs

Example of potential data loss:

// If API returns two errors for 'first_name':
// Error 1: "First name is required"
// Error 2: "First name contains invalid characters"
// Only Error 2 would be retained in parsedErrors.fields.firstName
🤖 Prompt for AI Agents
In packages/clerk-js/src/core/signals.ts around lines 53 to 89, the code assigns
a single error object to each field which overwrites earlier errors for the same
field; change each field property to hold an array of errors (or, if the
surrounding types must remain, convert to an array when a second error appears)
and push errors instead of assigning so all errors are preserved; update the
parsedErrors initialization and related types/interfaces to use arrays for
fields (or handle conversion on conflict), and ensure downstream callers
expect/handle arrays (or convert them back if necessary).

@dstaley dstaley merged commit d93b0ed into main Aug 11, 2025
61 of 62 checks passed
@dstaley dstaley deleted the ds.feat/signals-errors branch August 11, 2025 18:25
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.

3 participants