Dashboard › craft › Verify version-gate constants against a…
019f8982-bb8b-70c4-8802-3cfb337fbe26When implementing or reviewing minimum-version gates (e.g., WORKSPACES_MIN_VERSION, AUTO_VERSION), always cross-check the chosen constant against the current package.json version string before finalizing. Since checkMinimalConfigVersion requires the running package version to be >= a config's declared minVersion, setting a gate to a future/unreleased version (e.g., '2.28.0' when package.json is '2.27.0-dev.0') will break tests and block usage until release. Do not guess or hardcode a future release version — instead: (1) read package.json's actual version, (2) reason about how pre-release/dev suffixes compare in SemVer, and (3) if the correct value affects feature usability at release or requires a product decision, explicitly flag it to the user for confirmation rather than silently picking a value. Also verify whether the gate is even necessary given schema opt-in status.