---
title: "semver 3.2.0 Breaking Changes on PyPI | Since.dev"
description: "What each semver release removed, renamed or changed: 57 breaking changes in 7 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/semver
last_updated: 2026-12-04
---

# semver breaking changes

semver 3.2.0 (November 26, 2026) is its newest release with breaking changes. The first: Default changed MAX_LENGTH. Every breaking API change we have recorded in semver on PyPI: 57 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.2.0`, released November 26, 2026. [Source repository](https://github.com/python-semver/python-semver)

Its 3.1.0 release drops Python 3.7 and [3.9](https://since.dev/calendar/python/3.9.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0](#v-3-0-0) to [3.2.0](#v-3-2-0): 12 breaking changes in 3 versions.

## semver 3.2.0 breaking changes

semver 3.2.0, released November 26, 2026: 1 breaking change.

- **Default changed** `MAX_LENGTH`  

The maximum length limit MAX_LENGTH was raised to 255, so strings longer than the previous limit are now accepted. Code that relied on the old limit to reject them must be updated. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.2.0)

## semver 3.1.1 breaking changes

semver 3.1.1, released November 9, 2026: 6 breaking changes.

- **Behavior changed** `Version.bump_build`  

Version.bump_build now raises an error for invalid token arguments that it previously accepted. Check that the tokens you pass are valid. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.1.1)
- **Behavior changed** `Version.bump_prerelease`  

Version.bump_prerelease now raises an error for invalid token arguments that it previously accepted. Check that the tokens you pass are valid. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.1.1)
- **Signature changed** `semver.Version.__getitem__`  

Was def \_\_getitem\_\_(self, index: Union\[int, slice\]) -> Union\[int, Optional\[str\], Tuple\[Union\[int, str\], ...\]\]; now def \_\_getitem\_\_(self, index: Union\[SupportsIndex, slice\]) -> Union\[int, Optional\[str\], Tuple\[Union\[int, str\], ...\]\]. [pypi.org](https://pypi.org/project/semver/3.1.1/)
- **Signature changed** `semver.Version.is_valid`  

Was @classmethod def is_valid(cls, version: str) -> bool; now @classmethod def is_valid(cls, version: String) -> bool. [pypi.org](https://pypi.org/project/semver/3.1.1/)
- **Signature changed** `semver.version.Version.__getitem__`  

Was def \_\_getitem\_\_(self, index: Union\[int, slice\]) -> Union\[int, Optional\[str\], Tuple\[Union\[int, str\], ...\]\]; now def \_\_getitem\_\_(self, index: Union\[SupportsIndex, slice\]) -> Union\[int, Optional\[str\], Tuple\[Union\[int, str\], ...\]\]. [pypi.org](https://pypi.org/project/semver/3.1.1/)
- **Signature changed** `semver.version.Version.is_valid`  

Was @classmethod def is_valid(cls, version: str) -> bool; now @classmethod def is_valid(cls, version: String) -> bool. [pypi.org](https://pypi.org/project/semver/3.1.1/)

## semver 3.1.0 breaking changes

semver 3.1.0, released September 12, 2026: 5 breaking changes.

- **Removed**  

Python 3.7 to 3.9 are no longer supported, as they reached end of life. Users on these Python versions must stay on semver 3.0.4 or upgrade their Python. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.1.0)
- **Behavior changed**  

Version strings containing non-ASCII digits or trailing newlines are now rejected during parsing. Code that relied on accepting such input must be updated. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.1.0)
- **Behavior changed** `next_version`  

next_version clears the prerelease part when the bumped token changes. Code that depended on the old prerelease handling may get different results. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.1.0)
- **Signature changed** `semver.Version.bump_prerelease`  

Was def bump_prerelease(self, token: Optional\[str\] = 'rc') -> Version; now def bump_prerelease(self, token: Optional\[str\] = 'rc', bump_when_empty: Optional\[bool\] = False) -> Version. [pypi.org](https://pypi.org/project/semver/3.1.0/)
- **Signature changed** `semver.version.Version.bump_prerelease`  

Was def bump_prerelease(self, token: Optional\[str\] = 'rc') -> Version; now def bump_prerelease(self, token: Optional\[str\] = 'rc', bump_when_empty: Optional\[bool\] = False) -> Version. [pypi.org](https://pypi.org/project/semver/3.1.0/)

## semver 3.0.0 breaking changes

semver 3.0.0, released April 2, 2023: 39 breaking changes.

- **Removed** `semver.deprecated`  

semver.deprecated was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__eq__`  

VersionInfo.\_\_eq\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__ge__`  

VersionInfo.\_\_ge\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__getitem__`  

VersionInfo.\_\_getitem\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__gt__`  

VersionInfo.\_\_gt\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__hash__`  

VersionInfo.\_\_hash\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__init__`  

VersionInfo() was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__iter__`  

VersionInfo.\_\_iter\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__le__`  

VersionInfo.\_\_le\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)
- **Removed** `semver.VersionInfo.__lt__`  

VersionInfo.\_\_lt\_\_ was removed in semver 3.0.0 [pypi.org](https://pypi.org/project/semver/3.0.0/)

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

## semver 3.0.0.dev3 breaking changes

semver 3.0.0.dev3, released April 2, 2023: 3 breaking changes.

- **Renamed** `semver.version.cmp`  

The function semver.version.cmp was renamed to a private name and should no longer be used directly. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.0.0-dev.3)
- **Renamed** `semver.version.comparator`  

The function semver.version.comparator was renamed to a private name and should no longer be used directly. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.0.0-dev.3)
- **Behavior changed** `Version`  

Comparing a Version with an unsupported type now returns NotImplemented rather than raising TypeError, so code catching TypeError will behave differently. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.0.0-dev.3)

## semver 3.0.0.dev2 breaking changes

semver 3.0.0.dev2, released April 2, 2023: 1 breaking change.

- **Signature changed** `semver.VersionInfo`  

The VersionInfo class is now named Version; the old name remains as an alias for compatibility. [pypi.org](https://pypi.org/project/semver/3.0.0/)

## Older versions

1 older version.

### semver 3.0.0.dev1 breaking changes

semver 3.0.0.dev1, released April 2, 2023: 2 breaking changes.

- **Removed**  

Code and test configuration related to Python 2 and older Python 3 versions were removed, so Python 2.7, 3.4 and 3.5 are no longer supported. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.0.0-dev.1)
- **Behavior changed** `VersionInfo`  

VersionInfo arguments major, minor and patch can no longer be negative, so code passing negative numbers will now fail. [github.com](https://github.com/python-semver/python-semver/releases/tag/3.0.0-dev.1)

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