Repository navigation
Update dependency semver to v3.2.0 - #7209
Open
elastic-renovate-prod[bot] wants to merge 1 commit into
Open
elastic-renovate-prod[bot] wants to merge 1 commit into
elastic-renovate-prod[bot] wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the semver dependency bump from 3.1.0 to 3.1.2.
No open issues 🎉
What changed in this PR
Updates the detection-rules project’s pinned Python semver dependency to receive upstream fixes and comparison improvements.
Changes:
- Bumps
semverfrom3.1.0to3.1.2; no application code changes.
| File | Description |
|---|---|
pyproject.toml |
Updates the semver dependency pin to 3.1.2. |
Review effort: Balanced
elastic-renovate-prod
Bot
force-pushed
the
renovate/semver-3.x
branch
from
November 26, 2026 10:26
32e23d8 to
261073b
Compare
elastic-renovate-prod
Bot
force-pushed
the
renovate/semver-3.x
branch
from
November 26, 2026 18:25
261073b to
774357f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.1.0→==3.2.0Release Notes
python-semver/python-semver (semver)
v3.2.0Compare Source
=============
:Released: 2026-11-26
:Maintainer: Tom Schraitle
Security
523: Updatedfilelockpackage to 4.1.0 due to security issues.Breaking Changes
521: The :attr:~semver.version.Version.MAX_LENGTHlimit was set too low, raising to to 255.v3.1.3Compare Source
=============
:Released: 2026-11-26
:Maintainer: Tom Schraitle
Security
For details, see
GHSA-3qgw-g8j9-rcg4 <https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4>_.Bug Fixes
:gh:
515: Fix :meth:Version.__hash__so that versions which compare equal now produceequal hashes. A numeric prerelease identifier with leading zeros (for example
"007") compares equal to its normalized form ("7"), but previouslyhashed differently, which broke
setanddictbehavior.Fix GitHub Python test to use pinned versions in :file:
pyproject.toml.Improved Documentation
514: The prefixed-version documentation example now rejects empty input withValueError, allowing its inheritedis_validmethod to returnFalse.v3.1.2Compare Source
=============
:Released: 2026-11-15
:Maintainer: Tom Schraitle
Deprecations
506: Equality comparisons between :class:~semver.version.Versioninstances and strings, bytes, tuples,or lists now issue a :py:exc:
DeprecationWarningand will be removed in semver 4.:class:
~semver.version.Versionremains hashable, but do not mix these types as dictionary keys orset elements during the transition. Convert strings and bytes with
:meth:
~semver.version.Version.parseand tuples or lists withVersion(*parts).Trivial Changes
511: :meth:Version.comparenow returns early when both prerelease parts are equal,or when only one version has a prerelease. This makes comparisons and sorting faster.
v3.1.1Compare Source
=============
:Released: 2026-11-09
:Maintainer: Tom Schraitle
Bug Fixes
:pr:
483: Fix :meth:~semver.Version.bump_prereleaseand :meth:~semver.Version.bump_buildto raise a :class:ValueErrorwhen thetokenargument is not a valid dot-separated SemVer identifier (for examplebuild+metaorrc.). Previously such tokens were concatenated unchecked, producing version strings that :meth:~semver.Version.parseitself would reject.:pr:
486: Fix :meth:~semver.Version.next_versionto drop the build metadata when incrementing an old-style prerelease without a dot separator (for examplerc3). Previously1.2.3-rc3+build.5became1.2.3-rc4+build.5while1.2.3-rc.3+build.5became1.2.3-rc.4.:pr:
489:Version.next_versionnow validates used prerelease tokens and matches tokenfamilies literally. Invalid tokens raise
ValueError. Dotted prefixes advancecorrectly while existing qualifier chains and legacy counters are preserved.
:pr:
495: The type annotation ofVersion.is_valid()now includes its existing support for UTF-8 encoded byte strings.:pr:
501:Version.replace()now preserves the original constructorTypeErrorwhen an existing version component receives an invalid value, rather than
reporting zero unexpected keyword arguments.
:pr:
508:Versionsubscripts now accept objects implementing__index__and raiseTypeErrorfor invalid key types.:gh:
484: Fix :meth:~semver.Version.next_versionto correctly increment old-style prerelease versions without a dot separator (for examplerc3). Previously, callingnext_version("prerelease")on such versions would reset the prerelease number to 1 instead of incrementing it.:gh:
487: Comparing versions with long numeric prerelease identifiers no longer raisesValueErrorbecause of Python's integer string conversion limit.:gh:
497:Version.next_version("prerelease", prerelease_token=...)now advances thepatch version when switching tokens would otherwise produce a lower version.
For example, switching from
1.2.3-rc.1toalphareturns1.2.4-alpha.1. Forward token changes retain the current patch version.:gh:
499:Version.next_version("prerelease")now advances the patch version whenincrementing an old-style prerelease counter would produce an older version.
For example,
1.2.3-rc9becomes1.2.4-rc10. The legacy token andincremented counter are preserved; increments that already move forward keep
the current patch version.
Trivial Changes
502: Add tests for six behaviours that mutation testing showed were not covered: :func:match()at the boundary version, build metadata in :func:is_compatible(), numeric-only prereleases in :func:bump_prerelease(), the :command:pysemverreturn code for an invalid version, and the :func:deprecated()messages.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.