Skip to content

v2.0.0

Latest

Choose a tag to compare

@andrew andrew released this 28 Aug 17:23
· 2 commits to main since this release
5f6766b

Added

  • Bazel module version comparison, validation, normalization, cleaning, stable classification, and prerelease classification.
  • Scheme-aware comparison, validation, normalization, cleaning, stable classification, and prerelease classification across language registries, distribution packages, SemVer variants, and other version formats.
  • Native range parsing for Composer, Pub, Conan, OpenSSL, and nginx, with expanded behavior for existing npm, Cargo, RubyGems, PyPI, Maven, and NuGet parsers.
  • Data-driven comparison, containment, native conversion, validation, and canonical parsing tests from vers-spec, upstream package managers, and the Go implementation.

Changed

  • Version ranges retain their canonical scheme through containment and set operations, and reject algebra between incompatible schemes.
  • VERS serialization canonicalizes scheme aliases and rejects a scheme that conflicts with the range.
  • Canonical VERS parsing rejects uppercase types, whitespace, malformed pipes, invalid percent encoding, unencoded reserved characters, duplicate versions, and unsorted constraints when strict parsing is requested.
  • Typed wildcard ranges reject invalid candidate versions.
  • APK comparison and validation now follow apk-tools tokens instead of Gentoo version rules.
  • The minimum supported Ruby version is now 3.3.

Fixed

  • Unioning an unbounded interval with a bounded interval now remains unbounded.
  • Range unions retain exclusions when the other operand does not contain the excluded version.
  • VERS serialization no longer adds an empty constraint to unbounded ranges with exclusions.
  • SemVer comparison handles surrounding whitespace consistently with validation.
  • npm partial and prerelease ranges retain their membership after VERS serialization.
  • Cargo and PyPI intersections follow their scheme-specific build and local version equality rules.