main ← theme-version-latest
merged 04:05PM - 09 Sep 26 UTC
Discourse builds are versioned as `2026.8.0-latest` and `2026.8.0-latest.1` betw…een releases, but the `about.json` validation for `minimum_discourse_version` and `maximum_discourse_version` only accepted `X.Y.Z` and `X.Y.Z.betaN`. Gem::Version treats `-latest` as a pre-release, so a theme that needs `2026.8.0` was disabled on `2026.8.0-latest.1`, and authors could not express the intended constraint `2026.8.0-latest` because the import rejected it.
- `Discourse::VERSION_REGEXP` now allows `-latest` and `-latest.N` suffixes.
- Add specs for the regexp, for `has_needed_version?` ordering of `-latest` builds, and for the `RemoteTheme` validation.
See https://meta.discourse.org/t/411985