From 1.0.0 Alder follows Semantic Versioning. One version number covers the VS Code extension, the alder command (npm @x-ror/alder) and the language server inside them. A change that breaks anything listed under Covered needs a new major version, even when only one of the three is affected.
Covered
Section titled “Covered”- Rule names and departments: every
Department/Namein the rules and diagnostics references,Syntax/*andConfig/Invalidincluded. A rule is not renamed, merged or removed in a minor version. .alder.toml: the tables, keys, options and values described under configuration, how files merge, and the defaults: which rules are on and the default value of every option.- The command line: the
checkandformatsubcommands and their flags, the exit codes, and the shape of each--formatoutput: thetextline format, the GitHub workflow commands, the JSON field names and types, and the SARIF 2.1.0 log structure. New JSON fields and SARIF properties may be added. - VS Code: the ids of the settings, the commands and the languages.
Not covered
Section titled “Not covered”These may change in any release:
- The text of diagnostic messages, including the message part of a
textline. Match on the rule, not the words. - Which cases a rule reports, within its documented purpose: fixing false positives or catching more of the same problem is a fix.
--verboseoutput.- The language server protocol between the extension and its server:
initializationOptions, custom requests and notifications such asalder/routes, andDiagnostic.data. The server ships inside the extension, and other editors are not supported yet. - Experimental features: anything a page labels experimental.
Rules in minor versions
Section titled “Rules in minor versions”A minor version may add rules, but a project that passes alder check and format --check keeps passing:
- A new formatting rule is off by default, and a department’s
enabled = truedoesn’t turn it on: only its ownenabled = truedoes. - A new lint rule is off by default or reports at information severity, which never fails
check. It may be turned on, or raised, in the next major version. - A rule’s severity may be lowered in a minor version, and raised only in a major one.
Formatter output
Section titled “Formatter output”In a minor version the formatter’s output changes only to fix wrong output: output that changes how the page renders, that changes again when formatted a second time, or that contradicts the documented behaviour. Style changes wait for a major version.
Deprecations
Section titled “Deprecations”A setting, key, flag or rule is deprecated in at least one minor version before it is removed: it keeps working and reports a deprecation note. It is removed only in a major version.
Older versions and newer config
Section titled “Older versions and newer config”A .alder.toml that uses a rule or key added in 1.N is reported as a problem (exit 1) by versions before 1.N. Pin @x-ror/alder in CI to a version that knows your config.