Files
factorio-clusterio/test/lib
bbassieandClaude Opus 4.8 97a6c32838 Parse mod versions leniently like the game does
The mod portal "ApiVersion" enum was validated strictly when loading a
mod's info.json, which rejected versions the game itself accepts. Versions
are now normalised the same lenient way the game reads them: leading
whitespace is allowed, the major and minor are required, the patch is
optional, any trailing content is ignored, and numbers are read as integers.

This applies to both a mod's version and its factorio_version, validated by
a regex schema rather than the fixed enum. The enum is no longer used to
validate versions at all - the mod portal is the source of truth, so its
error is now surfaced when a version is unsupported. The known-version list
kept for the web interface fallback gains 2.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 16:24:43 +00:00
..
2026-05-29 18:38:07 +01:00
2026-04-09 22:53:13 +02:00
2025-05-16 19:39:43 +01:00
2024-01-15 03:49:41 +01:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2023-07-28 16:03:29 +02:00
2026-04-09 22:53:13 +02:00