---
title: "gitonomy/gitlib v2.0.0 Breaking Changes on Packagist"
description: "What each gitonomy/gitlib release removed, renamed or changed: 371 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/gitonomy/gitlib
last_updated: 2026-12-04
---

# gitonomy/gitlib breaking changes

gitonomy/gitlib v2.0.0 (November 10, 2026) is its newest release with breaking changes, 371 of them. The first: gitonomy/gitlib v2.0.0 requires PHP 8.4 or later. Every breaking API change we have recorded in gitonomy/gitlib on Packagist: 371 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v2.0.0`, released November 10, 2026. MIT license. [Source repository](https://github.com/gitonomy/gitlib)

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

## gitonomy/gitlib v2.0.0 breaking changes

gitonomy/gitlib v2.0.0, released November 10, 2026: 371 breaking changes.

- **Removed**  

The package now requires PHP 8.4 or later and uses native types throughout. [github.com](https://github.com/gitonomy/gitlib/releases/tag/v2.0.0)
- **Removed**  

gitlib 2.0 requires PHP 8.4 or later; stay on 1.7 for older PHP versions. [github.com](https://github.com/gitonomy/gitlib/blob/v2.0.0/UPGRADE-2.0.md)
- **Removed** `Admin`  

Admin is removed; use the static methods of Repository instead. [github.com](https://github.com/gitonomy/gitlib/releases/tag/v2.0.0)
- **Removed** `CommitReference`  

Use Submodule instead. [github.com](https://github.com/gitonomy/gitlib/blob/v2.0.0/UPGRADE-2.0.md)
- **Removed** `Gitonomy\Git\Admin`  

Gitonomy\\Git\\Admin was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame::$file`  

Gitonomy\\Git\\Blame::$file was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame::$lineRange`  

Gitonomy\\Git\\Blame::$lineRange was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame::$lines`  

Gitonomy\\Git\\Blame::$lines was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame::$repository`  

Gitonomy\\Git\\Blame::$repository was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame::$revision`  

Gitonomy\\Git\\Blame::$revision was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame::getGroupedLines`  

Use getHunks, which returns Blame\\Hunk objects. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame\Line::$blockLine`  

Gitonomy\\Git\\Blame\\Line::$blockLine was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame\Line::$commit`  

Gitonomy\\Git\\Blame\\Line::$commit was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame\Line::$content`  

Gitonomy\\Git\\Blame\\Line::$content was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame\Line::$sourceLine`  

Gitonomy\\Git\\Blame\\Line::$sourceLine was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame\Line::$targetLine`  

Gitonomy\\Git\\Blame\\Line::$targetLine was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blame\Line::getLine`  

Use getNumber or getOriginalNumber instead. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blob::__construct`  

Gitonomy\\Git\\Blob::\_\_construct was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blob::$content`  

Gitonomy\\Git\\Blob::$content was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blob::$hash`  

Gitonomy\\Git\\Blob::$hash was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blob::$mimetype`  

Gitonomy\\Git\\Blob::$mimetype was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blob::$repository`  

Gitonomy\\Git\\Blob::$repository was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Blob::$text`  

Gitonomy\\Git\\Blob::$text was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Commit::__construct`  

Gitonomy\\Git\\Commit::\_\_construct was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Commit::getFixedShortHash`  

Commit::getFixedShortHash() is removed. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Commit::getShortMessage`  

Commit::getShortMessage() is removed. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Commit::setData`  

Gitonomy\\Git\\Commit::setData was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\CommitReference`  

Use Submodule instead. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\Diff::$files`  

Gitonomy\\Git\\Diff\\Diff::$files was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\Diff::$rawDiff`  

Gitonomy\\Git\\Diff\\Diff::$rawDiff was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\Diff::setRepository`  

Pass the repository to Diff::parse or fromArray instead. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$changes`  

Gitonomy\\Git\\Diff\\File::$changes was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$isBinary`  

Gitonomy\\Git\\Diff\\File::$isBinary was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$newIndex`  

Gitonomy\\Git\\Diff\\File::$newIndex was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$newMode`  

Gitonomy\\Git\\Diff\\File::$newMode was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$newName`  

Gitonomy\\Git\\Diff\\File::$newName was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$oldIndex`  

Gitonomy\\Git\\Diff\\File::$oldIndex was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$oldMode`  

Gitonomy\\Git\\Diff\\File::$oldMode was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$oldName`  

Gitonomy\\Git\\Diff\\File::$oldName was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::$repository`  

Gitonomy\\Git\\Diff\\File::$repository was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::addChange`  

Gitonomy\\Git\\Diff\\File::addChange was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::getAnchor`  

Gitonomy\\Git\\Diff\\File::getAnchor was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::isChangeMode`  

Use isModeChange, isDeletion, and a substring of getNewIndex instead. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::isDelete`  

Use isDeletion instead. [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\File::setRepository`  

Gitonomy\\Git\\Diff\\File::setRepository was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\FileChange::$lines`  

Gitonomy\\Git\\Diff\\FileChange::$lines was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\FileChange::$rangeNewCount`  

Gitonomy\\Git\\Diff\\FileChange::$rangeNewCount was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\FileChange::$rangeNewStart`  

Gitonomy\\Git\\Diff\\FileChange::$rangeNewStart was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\FileChange::$rangeOldCount`  

Gitonomy\\Git\\Diff\\FileChange::$rangeOldCount was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)
- **Removed** `Gitonomy\Git\Diff\FileChange::$rangeOldStart`  

Gitonomy\\Git\\Diff\\FileChange::$rangeOldStart was removed in gitonomy/gitlib v2.0.0 [packagist.org](https://packagist.org/packages/gitonomy/gitlib#v2.0.0)

And 321 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## 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.
