Repository navigation
Releases
3.2.0
3.1.3
What's Changed
- Security fix GHSA-3qgw-g8j9-rcg4. Thanks to @plailenceGrill.
- Fix empty-input validation in the prefixed version example by @anticipate218 in #514
- Fix hash contract: equal Versions must hash equal (#515) by @SonicHedghog in #516
- Bump version 3.1.2 -> 3.1.3 by @tomschr in #519
New Contributors
- @anticipate218 made their first contribution in #514
- @SonicHedghog made their first contribution in #516
Full Changelog: 3.1.2...3.1.3
PyPI: https://test.pypi.org/project/semver/3.1.3/
3.1.2
What's Changed
- Deprecate cross-type Version equality in semver 3 by @tomschr in #507
- Skip prerelease comparison in Version.compare when the result is known by @g4lb in #511
- Bump version 3.1.1 -> 3.1.2 by @tomschr in #512
New Contributors
Full Changelog: 3.1.1...3.1.2
PyPI: https://pypi.org/project/semver/3.1.2/
3.1.1
What's Changed
- Reject invalid token arguments in Version.bump_prerelease and Version.bump_build by @Str0k in #483
- Fix #484: Increment old-style prerelease with dot by @tomschr in #485
- Drop build metadata when bumping an old-style prerelease by @youdie006 in #486
- Compare long numeric prerelease identifiers without integer conversion by @SAY-5 in #488
- fix: validate and match prerelease token prefixes by @MbappeWU in #489
- Bump urllib3 from 2.7.0 to 2.8.0 by @dependabot[bot] in #491
- Bump virtualenv from 21.5.1 to 21.7.13 by @dependabot[bot] in #492
- Annotate supported bytes inputs to Version.is_valid by @xiehuanyi in #495
- Preserve version order when switching prerelease tokens by @Apeksha9389 in #498
- Preserve version order when legacy prerelease counters roll over by @pabszero in #500
- Bump virtualenv from 21.7.13 to 21.14.13 by @dependabot[bot] in #503
- Bump certifi from 2026.6.17 to 2026.10.19 by @dependabot[bot] in #504
- Preserve constructor TypeError in Version.replace by @Zhuyuyangyy in #501
- test: cover six behaviours found untested by mutation testing by @coresystemdev23 in #502
- Use the integer index protocol for Version subscripts by @shrohan2003 in #508
- Bump version 3.1.0 -> 3.1.1 by @tomschr in #509
New Contributors
- @youdie006 made their first contribution in #486
- @SAY-5 made their first contribution in #488
- @MbappeWU made their first contribution in #489
- @xiehuanyi made their first contribution in #495
- @Apeksha9389 made their first contribution in #498
- @pabszero made their first contribution in #500
- @Zhuyuyangyy made their first contribution in #501
- @coresystemdev23 made their first contribution in #502
- @shrohan2003 made their first contribution in #508
Full Changelog: 3.1.0...3.1.1
Documentation: https://python-semver.readthedocs.io/en/3.1.1/
Discussion: #510
3.1.0
What's Changed
- Fix #463: Remove duplicate code Version.bump_build by @tomschr in #464
- Fix #460 Improve bump_prerelease to alway get a newer version by @Learloj in #462
- 441 update pydantic section of docs by @jbkroner in #442
- Fix #448: Remove Python 3.7-3.9 (EOL) by @tomschr in #470
- fix: replace semver.parse() with semver.Version.parse() in docstrings by @koteshyelamati in #471
- fix: next_version should bump version for build-only versions by @binggao1230 in #469
- fix(next_version): reset prerelease when token changes (#339) by @Mukller in #472
- Bump cryptography from 49.0.0 to 50.0.0 by @dependabot[bot] in #473
- Declare support for Python 3.15 by @edgarrmondragon in #475
- Add optional native parser backend (minimal adapter) by @lowmiaq-gmail in #476
- Reject non-ASCII digits and trailing newlines in version parsing by @Str0k in #478
- Fix bump_build() silently returning an unchanged version for digitless build metadata by @Str0k in #480
- Handle malformed collection operands in Version comparisons by @Str0k in #479
- Change version to 3.1.0 by @tomschr in #481
New Contributors
- @Learloj made their first contribution in #462
- @jbkroner made their first contribution in #442
- @koteshyelamati made their first contribution in #471
- @binggao1230 made their first contribution in #469
- @Mukller made their first contribution in #472
- @dependabot[bot] made their first contribution in #473
- @edgarrmondragon made their first contribution in #475
- @lowmiaq-gmail made their first contribution in #476
- @Str0k made their first contribution in #478
Full Changelog: 3.0.4...3.1.0
Documentation: https://python-semver.readthedocs.io/en/3.1.0/
3.0.4
Documentation: https://python-semver.rtfd.io/en/3.0.4/
PyPI: https://pypi.org/project/semver/3.0.4/
Full Changelog: 3.0.3...3.0.4
What's Changed
New Contributors
Thanks to @RobPasMue and @mgorny ❤️
3.0.3
Documentation: https://python-semver.rtfd.io/en/3.0.3/
PyPI: https://pypi.org/project/semver/3.0.3/ (yanked release)
Full Changelog: 3.0.2...3.0.3
What's Changed
- Use meta directive for SEO by @tomschr in #435
- Move search box more at the top by @tomschr in #436
- Update workflow file by @tomschr in #440
- Improve type hints to fix TODOs by @waketzheng in #439
- Gha add python313 by @tomschr in #446
- Improve private
_nat_cmp()method by @tomschr in #445 - Modernize project configs with pyproject.toml by @tomschr in #447
- Turn our Markdown issue templates into YAML by @tomschr in #451
- Fix comparison with subclasses by @viccie30 in #453
- Release/3.0.3 by @tomschr in #454
New Contributors
- @waketzheng made their first contribution in #439
- @viccie30 made their first contribution in #453
3.0.2
Documentation: https://python-semver.rtfd.io/en/3.0.2/
PyPI: https://pypi.org/project/semver/3.0.2/
Full Changelog: 3.0.1...3.0.2
Full Changelog between last 2 release and 3: 3.0.1...3.0.2
What's Changed
- GHA: Use matrix to test MacOS too by @tomschr in #417
- Return dict instead of OrderedDict by @dschwoerer in #419
- Introduce ClassVar type by @tomschr in #420
- Add mypy config to pyproject.toml by @tomschr in #421
- Fix #422: Update advanced topic about Pydantic v2 by @tomschr in #423
- Fix #426: call subclass when deriving from Version by @tomschr in #427
- GH Action: Don't block when only doc files are modified by @tomschr in #428
- Improve documentation wording & consistency by @tomschr in #425
- Fix #429: bug on serialization to json by @apiwat-chantawibul in #430
- Clarify version policy for semver by @tomschr in #431
- Improve external docs with intersphinx extension by @tomschr in #432
- Build 3.0.2 release of semver by @tomschr in #433
New Contributors
- @dschwoerer made their first contribution in #419
- @RobinGroundfog made their first contribution in #422
- @apiwat-chantawibul made their first contribution in #430
- @dannystaple made their first contribution in #426
Full Changelog: 3.0.1...3.0.2
3.0.1
Related pr: #413
Documentation: https://python-semver.rtfd.io/en/3.0.1/
PyPI: https://pypi.org/project/semver/3.0.1/
Full Changelog: 3.0.0...3.0.1
Full Changelog between last 2 release and 3: 2.13.0...3.0.1
What's Changed
- Remove incorrect dependencies from build-system section of pyproject.toml by @mgorny in #405
- correct typo in function description of
next_versionby @treee111 in #406 - Improve GitHub Action by @tomschr in #408
- Add CITATION.cff for citation by @tomschr in #409
- Add Version class to
__all__export. Fix #410 by @Soneji in #411 - Configure docformatter by @tomschr in #412
- Prepare version 3.0.1 by @tomschr in #413
New Contributors
- @mgorny made their first contribution in #405
- @treee111 made their first contribution in #406
- @Soneji made their first contribution in #411
Full Changelog: 3.0.0...3.0.1
3.0.0
Related pr: #403
Documentation: https://python-semver.rtfd.io/en/3.0.0/
PyPI: https://pypi.org/project/semver/3.0.0/
Full Changelog: 3.0.0-rc.1...3.0.0
Full Changelog between last 2 release and 3: 2.13.0...3.0.0