Skip to content

fix: widen @json-render/react peer to React 18 and 19 - #373

Open
mvanhorn wants to merge 2 commits into
vercel-labs:mainfrom
mvanhorn:fix/329-widen-react-peer
Open

mvanhorn wants to merge 2 commits into
vercel-labs:mainfrom
mvanhorn:fix/329-widen-react-peer

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

React 18 apps that depend on @json-render/react fail npm's peer dependency check. The package requires react ^19.2.3, so those installs only succeed when the peer warning is overridden. peerDependencies.react in @json-render/react was ^19.2.3, a range that does not match any React 18 release. The workspace lockfile stored that same specifier and still resolved react 19.2.4, and the installation docs listed the peer as react ^19.0.0.

Summary

The react peer range is now ^18.0.0 || ^19.0.0, and the lockfile specifier matches it while the resolved version stays 19.2.4. The installation page states that range alongside zod ^4.0.0, and the docs baseline hashes for that page are updated to the new content. A vitest reads the package manifest and expects peerDependencies.react to be ^18.0.0 || ^19.0.0, with react-dom left out of peerDependencies.

Verification

A frozen lockfile install of the workspace completes after the peer specifier change.

Closes #329

The react peer range is now ^18.0.0 || ^19.0.0, and the lockfile
specifier matches it while the resolved version stays 19.2.4. The
installation page states that range alongside zod ^4.0.0, and the docs
baseline hashes for that page are updated to the new content. A vitest
reads the package manifest and expects peerDependencies.react to be
^18.0.0 || ^19.0.0, with react-dom left out of peerDependencies.

Fixes vercel-labs#329
@vercel

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

@mvanhorn is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

The previous commit set the react peer range in packages/react/package.json
to ^18.0.0 || ^19.0.0 but left the lockfile specifier at ^19.2.3, so
pnpm install --frozen-lockfile failed in CI. Regenerated with pnpm 11.1.3;
the resolved version stays 19.2.4.

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.

Widen @json-render/react peer range to react ^18.0.0 || ^19.0.0

1 participant