---
title: "cweagans/composer-patches 2.0.0 Breaking Changes"
description: "What each cweagans/composer-patches release removed, renamed or changed: 14 breaking changes in 3 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/cweagans/composer-patches
last_updated: 2026-12-04
---

# cweagans/composer-patches breaking changes

cweagans/composer-patches 2.0.0 (October 31, 2025) is its newest release with breaking changes, 8 of them. The first: Patch report generation was removed in cweagans/composer-patches 2.0.0. Every breaking API change we have recorded in cweagans/composer-patches on Packagist: 14 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.0.0`, released October 31, 2025. BSD-3-Clause license. [Source repository](https://github.com/cweagans/composer-patches)

Its 2.0.0 release requires PHP 8 or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [2.0.0-beta1](#v-2-0-0-beta1) to [2.0.0](#v-2-0-0): 9 breaking changes in 2 versions.

## cweagans/composer-patches 2.0.0 breaking changes

cweagans/composer-patches 2.0.0, released October 31, 2025: 8 breaking changes.

- **Removed**  

The patch report feature is no longer available. Stop relying on generated patch reports. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0)
- **Removed** `cweagans\Composer\Patches`  

cweagans\\Composer\\Patches was removed in cweagans/composer-patches 2.0.0 [packagist.org](https://packagist.org/packages/cweagans/composer-patches#2.0.0)
- **Removed** `cweagans\Composer\PatchEvent`  

cweagans\\Composer\\PatchEvent was removed in cweagans/composer-patches 2.0.0 [packagist.org](https://packagist.org/packages/cweagans/composer-patches#2.0.0)
- **Removed** `cweagans\Composer\PatchEvents`  

cweagans\\Composer\\PatchEvents was removed in cweagans/composer-patches 2.0.0 [packagist.org](https://packagist.org/packages/cweagans/composer-patches#2.0.0)
- **Renamed**  

The patches lock file now uses the .json extension. Rename existing patches.lock files to patches.lock.json. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0)
- **Behavior changed**  

Events are emitted with composer and io, and the event is emitted before the exception is thrown when a patch does not apply. Code relying on the old event timing may need adjusting. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0)
- **Behavior changed**  

The package requires PHP 8 for this release. Projects on PHP 7 must stay on the 1.x line. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0)
- **Configuration changed**  

The exit-on-failure option now comes from the composer extra section. Move any setting that was under localPackage into extra. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0)

## cweagans/composer-patches 2.0.0-beta2 breaking changes

cweagans/composer-patches 2.0.0-beta2, released October 31, 2025: 1 breaking change.

- **Behavior changed**  

Dependency patch resolution was added back in this beta, changing how patches from dependencies are applied. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0-beta2)

## cweagans/composer-patches 2.0.0-beta1 breaking changes

cweagans/composer-patches 2.0.0-beta1, released October 31, 2025: 5 breaking changes.

- **Removed**  

Patch report generation was removed and dependency patch resolution was removed, so code relying on them will no longer work and must be adapted to the new documentation. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0-beta1)
- **Behavior changed**  

Patch resolution was split out into Composer Capabilities and debugging info is only shown with the verbose option, so existing setups may behave differently. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0-beta1)
- **Behavior changed**  

The package now requires PHP 8, so users on older PHP versions cannot use this release. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0-beta1)
- **Behavior changed**  

The release notes warn that the 2.0.0 release will work a little differently than 1.x, so users should read the new documentation before upgrading. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0-beta1)
- **Behavior changed**  

The lock file was renamed, so tooling and version control references to patches.lock must be updated. [github.com](https://github.com/cweagans/composer-patches/releases/tag/2.0.0-beta1)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
