Skip to content

Widen the @arkenv/nextjs React peer range - #1877

Merged
yamcodes merged 1 commit into
v1from
cursor/widen-nextjs-react-peer-bf41
Sep 20, 2026
Merged

yamcodes merged 1 commit into
v1from
cursor/widen-nextjs-react-peer-bf41

Conversation

@yamcodes

Copy link
Copy Markdown
Owner

Forward-port of #1833 / #1842 onto v1. Published @arkenv/nextjs was pinning React to the catalog exact version (19.2.5). This sets peerDependencies.react to ^18.2.0 || ^19.0.0 and adds a patch changeset.

Parent tracking: #1867

Closes #1868

Open in Web Open in Cursor 

Replace the published catalog pin with ^18.2.0 || ^19.0.0 so consumers
on React 18.2+ and React 19 are not forced onto 19.2.5.

Co-authored-by: Yam Borodetsky <[email protected]>
@changeset-bot

changeset-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9f3c1eb

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

This PR includes changesets to release 1 package
Name Type
@arkenv/nextjs 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

@pkg-pr-new

pkg-pr-new Bot commented Sep 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

@arkenv/agent-plugin

npm i https://pkg.pr.new/@arkenv/agent-plugin@1877

arkenv

npm i https://pkg.pr.new/arkenv@1877

@arkenv/build

npm i https://pkg.pr.new/@arkenv/build@1877

@arkenv/bun-plugin

npm i https://pkg.pr.new/@arkenv/bun-plugin@1877

@arkenv/core

npm i https://pkg.pr.new/@arkenv/core@1877

@arkenv/fumadocs-ui

npm i https://pkg.pr.new/@arkenv/fumadocs-ui@1877

@arkenv/nextjs

npm i https://pkg.pr.new/@arkenv/nextjs@1877

@arkenv/nuxt

npm i https://pkg.pr.new/@arkenv/nuxt@1877

@arkenv/rsbuild-plugin

npm i https://pkg.pr.new/@arkenv/rsbuild-plugin@1877

@arkenv/standard

npm i https://pkg.pr.new/@arkenv/standard@1877

@arkenv/tanstack-addon

npm i https://pkg.pr.new/@arkenv/tanstack-addon@1877

@arkenv/vite-plugin

npm i https://pkg.pr.new/@arkenv/vite-plugin@1877

commit: 9f3c1eb

@github-actions github-actions Bot added docs Adds or changes documentation, or acts as documentation in and of itself tests This issue or PR is about adding, removing or changing tests @arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv labels Sep 20, 2026
@yamcodes
yamcodes marked this pull request as ready for review September 20, 2026 05:53

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes

  • Widen the published React peer — packages/nextjs/package.json now sets peerDependencies.react to ^18.2.0 || ^19.0.0 instead of the catalog: alias, so pnpm stops baking the exact 19.2.5 pin into published npm metadata. The range mirrors Next.js's own React peer.
  • Regression test — packages/nextjs/src/package.test.ts asserts the published peer literal exactly, so a future revert to catalog: fails CI rather than silently shipping.
  • Biome suppression — packages/nextjs/src/script.tsx adds the noDangerouslySetInnerHtml ignore on ArkEnvScript's intentional SSR env injection (same pattern as fumadocs-ui/apps/www). Not unrelated: per the dev source commit, dropping the catalog alias activates Biome's React domain rules, which flag that injection and break autofix.ci.
  • Changeset — .changeset/widen-nextjs-react-peer.md carries the consumer-facing release note matching dev #1842; top-level placement is correct while v1 is in pre mode.

I checked vitest run src/package.test.ts (passes, and the assertion genuinely fails on catalog:), biome check on the changed files (clean), and pnpm install --frozen-lockfile --offline ("Already up to date" — the peer edit needs no lockfile change). The only remaining item from #1868, verifying npm view @arkenv/nextjs@alpha peerDependencies.react after publish, is a post-merge release step, not part of this diff.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes
yamcodes merged commit c18c102 into v1 Sep 20, 2026
19 of 20 checks passed
@yamcodes
yamcodes deleted the cursor/widen-nextjs-react-peer-bf41 branch September 20, 2026 06:04
@arkenv-bot arkenv-bot Bot mentioned this pull request Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv docs Adds or changes documentation, or acts as documentation in and of itself tests This issue or PR is about adding, removing or changing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1: widen @arkenv/nextjs React peer (forward-port #1833)

2 participants