Skip to content

fix(agw-react): move cross-app-connect to dependencies#428

Open
coffeexcoin wants to merge 4 commits intomainfrom
fix/cross-app-connect-dependency
Open

fix(agw-react): move cross-app-connect to dependencies#428
coffeexcoin wants to merge 4 commits intomainfrom
fix/cross-app-connect-dependency

Conversation

@coffeexcoin
Copy link
Copy Markdown
Collaborator

@coffeexcoin coffeexcoin commented Apr 1, 2026

Summary

  • Moves @privy-io/cross-app-connect from peerDependencies to dependencies in agw-react
  • Ensures consumers automatically get cross-app-connect@^0.5.2 when installing agw-react

Context

Consumers on older @privy-io/react-auth versions (e.g. 2.x) get cross-app-connect@0.2.x resolved transitively through react-auth. This version is incompatible with the new portal cross-app protocol, causing "Failed to initialize request" errors during session creation. Making it a direct dependency guarantees the correct version regardless of what react-auth brings in.

Test plan

  • Verify pnpm install in a fresh consumer project pulls in cross-app-connect@0.5.x without explicit dep
  • Verify cross-app session creation works against the new portal
  • Run publint and attw checks

PR-Codex overview

This PR focuses on updating the TypeScript version and adjusting dependencies across multiple packages to ensure compatibility and proper installation. It also includes changes to the way @privy-io/cross-app-connect is managed.

Detailed summary

  • Added typescript as a peer dependency in multiple package.json files.
  • Set typescript version to >=5.0.4 in peerDependencies.
  • Moved @privy-io/cross-app-connect from peerDependencies to dependencies in relevant packages.
  • Updated rootDir to ./src in tsconfig.json files of multiple packages.
  • Updated the version of zod in multiple dependencies to 4.3.6.
  • Updated debug version from 4.4.0 to 4.4.1.
  • Updated `

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Consumers on older @privy-io/react-auth versions get cross-app-connect
0.2.x resolved transitively, which is incompatible with the new portal
cross-app protocol. Making it a direct dependency ensures 0.5.x is
always installed with agw-react.
@coffeexcoin coffeexcoin requested a review from cygaar as a code owner April 1, 2026 16:57
@cursor
Copy link
Copy Markdown

cursor bot commented Apr 1, 2026

PR Summary

Medium Risk
Moderate risk because it changes published package dependency/peer dependency boundaries, which can affect consumers’ install resolution and bundle size, though runtime logic is untouched.

Overview
Ensures @abstract-foundation/agw-react consumers always get a compatible @privy-io/cross-app-connect@^0.5.2 by moving it from peerDependencies to a direct dependencies entry and recording a minor release via a changeset.

Aligns TypeScript build config by setting compilerOptions.rootDir to ./src across agw-react, agw-web, and web3-react-agw, and updates peer dependency declarations to treat typescript as an optional peer where needed; lockfile updates reflect the new resolution graph.

Written by Cursor Bugbot for commit 5627593. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

🦋 Changeset detected

Latest commit: 5627593

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

This PR includes changesets to release 1 package
Name Type
@abstract-foundation/agw-react Minor

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
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

- Remove ignoreDeprecations: "6.0" (invalid for TS 5.x used by agw-react)
- Add typescript as peerDependency to agw-web and web3-react-agw so they
  resolve to the same TS 5.6.2 as agw-client/agw-react instead of picking
  up an unpredictable version from the environment
- Remove redundant @privy-io/cross-app-connect from agw-react devDependencies
  (already a direct dependency)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant