Skip to content

Relax agents peerDependency to include ^0.4.0#859

Merged
threepointone merged 2 commits into
mainfrom
broaden-peer-deps
Feb 7, 2026
Merged

Relax agents peerDependency to include ^0.4.0#859
threepointone merged 2 commits into
mainfrom
broaden-peer-deps

Conversation

@threepointone

Copy link
Copy Markdown
Contributor

Broaden the "agents" peerDependency in packages/ai-chat and packages/codemode to allow agents v0.4.x. ai-chat: "agents" updated from ^0.3.10 to ^0.3.10 || ^0.4.0. codemode: "agents" updated from ^0.3.7 to ^0.3.10 || ^0.4.0. Aligns peer ranges so consumers using agents@^0.4.0 are compatible without code changes.

Broaden the "agents" peerDependency in packages/ai-chat and packages/codemode to allow agents v0.4.x. ai-chat: "agents" updated from ^0.3.10 to ^0.3.10 || ^0.4.0. codemode: "agents" updated from ^0.3.7 to ^0.3.10 || ^0.4.0. Aligns peer ranges so consumers using agents@^0.4.0 are compatible without code changes.
@changeset-bot

changeset-bot Bot commented Feb 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3487cc1

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

This PR includes changesets to release 3 packages
Name Type
@cloudflare/codemode Patch
@cloudflare/ai-chat Patch
agents 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

@claude

claude Bot commented Feb 7, 2026

Copy link
Copy Markdown

Claude Code Review

Issue: Premature peer dependency broadening

The PR broadens peer dependencies to include agents@^0.4.0, but v0.4.0 doesn't exist yet - the latest release is agents@0.3.10 (published Feb 4, 2026). This creates a problematic situation:

  1. No validation possible: Can't verify if ai-chat and codemode are actually compatible with agents v0.4.x since it doesn't exist
  2. Unnecessary version range: Adding compatibility for unreleased versions without testing may lead to runtime issues
  3. Inconsistency in codemode: The PR updates codemode's lower bound from ^0.3.7 to ^0.3.10 || ^0.4.0, but this should likely just be ^0.3.10 to match ai-chat unless there's a specific reason for the bump

Recommendation: Wait until agents@0.4.0 is actually released and tested before broadening peer dependencies. If there's a specific need driving this (e.g., pre-release testing), document it in the PR description or add it when v0.4.0 release is imminent.

@pkg-pr-new

pkg-pr-new Bot commented Feb 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@859

commit: 3487cc1

@threepointone
threepointone merged commit 3de98a3 into main Feb 7, 2026
5 checks passed
@threepointone
threepointone deleted the broaden-peer-deps branch February 7, 2026 11:04
@github-actions github-actions Bot mentioned this pull request Feb 6, 2026
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