Skip to content

fix: upgrade cuer to 0.0.4 - #2716

Open
chayan-bit wants to merge 1 commit into
rainbow-me:mainfrom
chayan-bit:fix/cuer-0.0.4
Open

chayan-bit wants to merge 1 commit into
rainbow-me:mainfrom
chayan-bit:fix/cuer-0.0.4

Conversation

@chayan-bit

Copy link
Copy Markdown

Fixes #2677.

Summary

Upgrades cuer from 0.0.3 to 0.0.4 in @rainbow-me/rainbowkit and in the example app.

cuer@0.0.3 builds the WalletConnect QR code with encodeQR(value, 'raw', { border: 0, ... }) and depends on qr: ~0.
qr@0.6.0 (2026-04-28) rejects border <= 0, so any app whose install resolves qr 0.6 or newer (0.7.2 today) throws RangeError: invalid border=0 as soon as the WalletConnect QR renders, and the error unmounts the app.
cuer@0.0.4 (wevm/cuer#11, fixing wevm/cuer#12) encodes with border: 1 and slices that ring off, so the grid is unchanged; its API and types are identical to 0.0.3.

This repo's lockfile pins qr@0.4.2, which is why CI and local development never hit the crash; consumers installing RainbowKit 2.2.11 fresh do.
This supersedes the qr pin in #2678, which describes itself as a workaround until cuer#11 is released.

Demo

Before and after in packages/example, Connect Wallet then WalletConnect, with qr@0.7.2 installed as consumers resolve it (45 s): https://github.com/chayan-bit/rainbowkit/blob/demo-assets/cuer-qr-fix.mp4

  • Before (cuer@0.0.3): Runtime RangeError: invalid border=0 from encodeQR, and the page goes blank.
  • After (cuer@0.0.4): the QR code renders.

Testing

  • pnpm install --frozen-lockfile with the updated lockfile (only the cuer entries change).
  • pnpm lint and pnpm test: 148 passed, 2 expected fail, 1 skipped.
  • cuer@0.0.4 with qr@0.7.2 produces a grid byte-identical to cuer@0.0.3 with qr@0.5.5 for the same WalletConnect URI, so wallets scan the same code as before the qr change.

cuer 0.0.3 renders the WalletConnect QR code with qr's encodeQR and
border: 0. qr 0.6.0 rejects border <= 0, and cuer depends on qr ~0, so
any install that resolves qr 0.6 or newer throws 'invalid border=0' and
unmounts the modal. cuer 0.0.4 encodes with border: 1 and slices it off,
producing the same grid.

Fixes rainbow-me#2677
Copilot AI balanced review requested due to automatic review settings November 10, 2026 10:23
@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

@chayan-bit is attempting to deploy a commit to the rainbowdotme Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 428e112

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

This PR includes changesets to release 18 packages
Name Type
@rainbow-me/rainbowkit Patch
example Patch
@rainbow-me/rainbow-button Patch
rainbowkit-next-app Patch
site Patch
with-create-react-app Patch
with-next-app-i18n Patch
with-next-app Patch
with-next-custom-button Patch
with-next-mint-nft Patch
with-next-siwe-iron-session Patch
with-next-siwe-next-auth Patch
with-next-wallet-button Patch
with-next Patch
with-react-router Patch
with-remix Patch
with-vite Patch
with-next-rainbow-button 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T10:25:45.743351Z 428e112 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​cuer@​0.0.3 ⏵ 0.0.410010086 +186 +7100

View full report

This branch has not been deployed

No deployments
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.

[bug] qr version 0.6.0 throws errors when border=0

2 participants