Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore(deps): bump the Clerk stack to current releases #11764

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/11764/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Bumps every Clerk package in the catalog to its latest stable release so mobile can use the custom profile pages added in `@clerk/expo` 4.3.0.

PackageBeforeAfter
@clerk/backend3.14.03.17.2
@clerk/clerk-js6.30.16.31.1
@clerk/electron0.0.370.0.42
@clerk/expo4.2.04.6.6
@clerk/react6.14.76.15.2
@clerk/shared4.30.14.31.1

`@clerk/electron-passkeys` stays at 0.0.3, which is still the latest stable. The iOS host-back patch for `@clerk/expo` was renamed for the new version and applies unchanged.

Verification

  • Mobile, web, desktop, and relay typecheck cleanly.
  • Web `src/components/clerk` tests and mobile `src/features/cloud` tests pass.
  • No UI change, so no screenshots.

Second layer, #11765, adds the mobile T3 Connect profile page on top of this.

Claude Fable 5.1 via Claude Code in T3 Code.

Summary by CodeRabbit

  • Bug Fixes
    • Improved back navigation on iOS authentication and profile screens. Back actions now return through the active navigation route when available, with a fallback behavior when no route can be closed.
    • Prevented duplicate navigation attempts to provide more reliable transitions and reduce unexpected back-navigation behavior.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. juliusmarminge changed the title

    3. github-actions[bot](GitHub profile, opens in a new tab) added labels📱 Native Change

    4. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.6 KiB13.6 KiB+70 B (+0.5%)15.1 KiB✅
      CodexThread snapshot wire7.0 KiB7.1 KiB+7 B (+0.1%)7.3 KiB✅
      CodexLive turn WebSocket wire6.5 KiB6.6 KiB+63 B (+0.9%)7.8 KiB✅
      CodexLive turn WebSocket decoded57.0 KiB57.1 KiB+88 B (+0.2%)66.4 KiB✅
      CodexLive turn messages810+2 (+25.0%)21✅
      ClaudeTotal thread wire13.6 KiB13.6 KiB+12 B (+0.1%)15.1 KiB✅
      ClaudeThread snapshot wire7.1 KiB7.0 KiB−4 B (−0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.5 KiB6.5 KiB+16 B (+0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.8 KiB57.8 KiB+44 B (+0.1%)66.4 KiB✅
      ClaudeLive turn messages89+1 (+12.5%)21✅

      Baseline: ec5ede5 · PR result: a94161c · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.9 KiB
      • Claude decoded thread snapshot: 114.6 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    5. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This update replaces the Clerk authentication implementations used by web, desktop, mobile, and relay token verification, while applying the existing native patch to a newer Expo release. Because authentication behavior and native packaging can change across these production paths, the dependency refresh warrants human review despite the small source diff.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    6. Review Change StackReview Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Team

      Run ID: 50ea6ec3-c33f-434d-9bf9-ca4c51df423a

      📥 Commits

      Reviewing files that changed from the base of the PR and between ec5ede5e6a1f2f9d564a5834462f47d1b7e5f0ec and a94161c4e378255db6feb3383a0dcbaa805b3520.

      ⛔ Files ignored due to path filters (1)
      • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
      📒 Files selected for processing (2)
      • patches/@clerk__expo@4.6.6.patch
      • pnpm-workspace.yaml

      Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.


      📝 Walkthrough

      Walkthrough

      Clerk Expo auth and user-profile back actions now attempt native React Navigation route dismissal before JavaScript fallback handling. The workspace updates Clerk package versions and applies the patch to @clerk/expo@4.6.6.

      Changes

      Clerk Expo navigation behavior

      Layer / File(s)Summary
      Native back handling
      patches/@clerk__expo@4.6.6.patch
      ClerkNativeViewHost traverses responder-linked view controllers and pops an enclosing navigation route when possible. Auth and user-profile views call this logic before onHostBack.
      Package version and patch wiring
      pnpm-workspace.yaml
      The workspace updates Clerk catalog versions, matching release-age exclusions, and the patched dependency target from @clerk/expo@4.2.0 to @clerk/expo@4.6.6.

      Priority: ⬇️ Low

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Other

      Merge Risk: ⚪ Minimal · up to a9416

      The dependency and patch wiring changes have no identified merge-blocking risk.

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Title check✅ PassedThe title clearly and concisely describes the primary change: updating the Clerk dependency stack.
      Description check✅ PassedThe description explains what changed, why it changed, package versions, verification results, and that no UI changes are included. It does not reproduce the template headings or checklist, but the re…
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `clerk/deps`

      Comment `@coderabbitai help` to get the list of available commands.
    7. juliusmarminge merged thisbcc2024

    8. juliusmarminge closed this

Sign in to join this conversation.