fix(agw-react): move cross-app-connect to dependencies#428
fix(agw-react): move cross-app-connect to dependencies#428coffeexcoin wants to merge 4 commits intomainfrom
Conversation
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.
PR SummaryMedium Risk Overview Aligns TypeScript build config by setting Written by Cursor Bugbot for commit 5627593. This will update automatically on new commits. Configure here. |
🦋 Changeset detectedLatest commit: 5627593 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
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)

Summary
@privy-io/cross-app-connectfrompeerDependenciestodependenciesinagw-reactcross-app-connect@^0.5.2when installingagw-reactContext
Consumers on older
@privy-io/react-authversions (e.g. 2.x) getcross-app-connect@0.2.xresolved 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
pnpm installin a fresh consumer project pulls incross-app-connect@0.5.xwithout explicit deppublintandattwchecksPR-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-connectis managed.Detailed summary
typescriptas a peer dependency in multiplepackage.jsonfiles.typescriptversion to>=5.0.4inpeerDependencies.@privy-io/cross-app-connectfrompeerDependenciestodependenciesin relevant packages.rootDirto./srcintsconfig.jsonfiles of multiple packages.zodin multiple dependencies to4.3.6.debugversion from4.4.0to4.4.1.