)]}'
{
  "commit": "0bf266b96a53275400c32b231b7f16605d4af2ad",
  "tree": "a0036d30944fba697b80d3aaf3e98791f1c9362d",
  "parents": [
    "f75d52c31e7bfa3512b9b5787ab2686b82c4006f"
  ],
  "author": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Sat Nov 21 01:24:34 2026 +0900"
  },
  "committer": {
    "name": "Ignas Anikevicius",
    "email": "240938+aignas@users.noreply.github.com",
    "time": "Sat Nov 21 01:24:34 2026 +0900"
  },
  "message": "fix(version.bzl): reject invalid versions, normalize local segments\n\n* The non-strict parsing stripped any number of leading and trailing\n  `.` and `*` characters, so `.1`, `1.` or `1.*.*` were accepted. Only\n  a single `.*` suffix is removed now.\n* Versions without a release segment, e.g. an empty string or `1!`,\n  are now rejected instead of crashing or returning an empty version.\n* `parse` returns `None` for versions with placeholders, which can\n  only be normalized. It used to crash or, if the placeholder was in\n  the local version, to return a version that cannot be compared.\n* The `V` prefix is accepted in addition to `v`.\n* The first segment of the local version is normalized as an integer\n  like the rest of them, e.g. `1.0+001` is `1.0+1`.\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2a4260bac41b8327447af502fa912cfc63ee1ed4",
      "new_mode": 33188,
      "new_path": "news/version-normalization.fixed.md"
    },
    {
      "type": "modify",
      "old_id": "a559a6f05fdaf44904d7c056dfe2dae886871092",
      "old_mode": 33188,
      "old_path": "python/private/version.bzl",
      "new_id": "9be9a480a8c7b37d86c9b24a44f8b1ba21d40e1b",
      "new_mode": 33188,
      "new_path": "python/private/version.bzl"
    },
    {
      "type": "modify",
      "old_id": "e41743b87776f0d016bc28bca6643179e2655201",
      "old_mode": 33188,
      "old_path": "tests/version/packaging_conformance_tests.bzl",
      "new_id": "5990958689b43d82b031f57a404ee4926f2be0d8",
      "new_mode": 33188,
      "new_path": "tests/version/packaging_conformance_tests.bzl"
    },
    {
      "type": "modify",
      "old_id": "7ddb6cc851c096e03e95c862ede684073787451a",
      "old_mode": 33188,
      "old_path": "tests/version/version_test.bzl",
      "new_id": "15a4681f41c29b59f4ac05265a62a93c8326bfd4",
      "new_mode": 33188,
      "new_path": "tests/version/version_test.bzl"
    }
  ]
}
