Skip to content

Update dependency semver to v3.2.0 - #7209

Open
elastic-renovate-prod[bot] wants to merge 1 commit into
mainfrom
renovate/semver-3.x
Open

elastic-renovate-prod[bot] wants to merge 1 commit into
mainfrom
renovate/semver-3.x

Conversation

@elastic-renovate-prod

@elastic-renovate-prod elastic-renovate-prod Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
semver (changelog) ==3.1.0 → ==3.2.0 age confidence

Release Notes

python-semver/python-semver (semver)

v3.2.0

Compare Source

=============

:Released: 2026-11-26
:Maintainer: Tom Schraitle

Security

  • :gh:523: Updated filelock package to 4.1.0 due to security issues.

Breaking Changes

  • :gh:521: The :attr:~semver.version.Version.MAX_LENGTH limit was set too low, raising to to 255.

v3.1.3

Compare Source

=============

:Released: 2026-11-26
:Maintainer: Tom Schraitle

Security

  • Fix potential denial-of-service vulnerability when parsing untrusted input with excessive length or large numeric components.
    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 produce
    equal hashes. A numeric prerelease identifier with leading zeros (for example
    "007") compares equal to its normalized form ("7"), but previously
    hashed differently, which broke set and dict behavior.

    Fix GitHub Python test to use pinned versions in :file:pyproject.toml.

Improved Documentation

  • :pr:514: The prefixed-version documentation example now rejects empty input with
    ValueError, allowing its inherited is_valid method to return False.

v3.1.2

Compare Source

=============

:Released: 2026-11-15
:Maintainer: Tom Schraitle

Deprecations

  • :gh:506: Equality comparisons between :class:~semver.version.Version instances and strings, bytes, tuples,
    or lists now issue a :py:exc:DeprecationWarning and will be removed in semver 4.
    :class:~semver.version.Version remains hashable, but do not mix these types as dictionary keys or
    set elements during the transition. Convert strings and bytes with
    :meth:~semver.version.Version.parse and tuples or lists with Version(*parts).

Trivial Changes

  • :gh:511: :meth:Version.compare now returns early when both prerelease parts are equal,
    or when only one version has a prerelease. This makes comparisons and sorting faster.

v3.1.1

Compare Source

=============

:Released: 2026-11-09
:Maintainer: Tom Schraitle

Bug Fixes

  • :pr:483: Fix :meth:~semver.Version.bump_prerelease and :meth:~semver.Version.bump_build to raise a :class:ValueError when the token argument is not a valid dot-separated SemVer identifier (for example build+meta or rc.). Previously such tokens were concatenated unchecked, producing version strings that :meth:~semver.Version.parse itself would reject.

  • :pr:486: Fix :meth:~semver.Version.next_version to drop the build metadata when incrementing an old-style prerelease without a dot separator (for example rc3). Previously 1.2.3-rc3+build.5 became 1.2.3-rc4+build.5 while 1.2.3-rc.3+build.5 became 1.2.3-rc.4.

  • :pr:489: Version.next_version now validates used prerelease tokens and matches token
    families literally. Invalid tokens raise ValueError. Dotted prefixes advance
    correctly while existing qualifier chains and legacy counters are preserved.

  • :pr:495: The type annotation of Version.is_valid() now includes its existing support for UTF-8 encoded byte strings.

  • :pr:501: Version.replace() now preserves the original constructor TypeError
    when an existing version component receives an invalid value, rather than
    reporting zero unexpected keyword arguments.

  • :pr:508: Version subscripts now accept objects implementing __index__ and raise
    TypeError for invalid key types.

  • :gh:484: Fix :meth:~semver.Version.next_version to correctly increment old-style prerelease versions without a dot separator (for example rc3). Previously, calling next_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 raises
    ValueError because of Python's integer string conversion limit.

  • :gh:497: Version.next_version("prerelease", prerelease_token=...) now advances the
    patch version when switching tokens would otherwise produce a lower version.
    For example, switching from 1.2.3-rc.1 to alpha returns
    1.2.4-alpha.1. Forward token changes retain the current patch version.

  • :gh:499: Version.next_version("prerelease") now advances the patch version when
    incrementing an old-style prerelease counter would produce an older version.
    For example, 1.2.3-rc9 becomes 1.2.4-rc10. The legacy token and
    incremented counter are preserved; increments that already move forward keep
    the current patch version.

Trivial Changes

  • :pr: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:pysemver return code for an invalid version, and the :func:deprecated() messages.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 semver from 3.1.0 to 3.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 elastic-renovate-prod Bot changed the title Update dependency semver to v3.1.2 Update dependency semver to v3.1.3 Nov 26, 2026
@elastic-renovate-prod elastic-renovate-prod Bot changed the title Update dependency semver to v3.1.3 Update dependency semver to v3.2.0 Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant