Rule 13.10
Chapter 13, Change control Test
A change that keeps a program compiling and makes it compute something other than what an official release (Rule 13.9) computed for it must ship in two steps, and the second must come no earlier than the next breaking release after the first step’s official release was published (the next minor before 1.0.0, the next major after it).
First, an official release must report every affected line as a category: 'warning' diagnostic behind the opt-in deprecation option (compile(src, { deprecations: true }), tshc check --deprecations), naming the edit that keeps today’s meaning, with no emitted byte moved with the option on or off.
Then the default changes, the warning and its code are retired, a ### Changed entry names the old meaning, the new one and the one-line edit that keeps the old, and every example golden is re-baked and reviewed.
The window is counted in official releases. A meaning that no official release carried owes no window. From 1.0.0, a spelling or an export that will be removed must get the same window: the spelling warns under the same option, and the export carries @deprecated in its JSDoc naming its replacement.
The rule text and the parts under it are the compiler's own English, as the design document writes them.
Rationale
a program that stops compiling says so, with its fix (Rule 12.1); a program that computes something else says nothing, and a shader is where a silent change is hardest to see. A warning that never reached npm warned nobody. The bundled builds were tests (OD-6).
Derives from
RELEASING.md#7-versions-and-deprecations; changes/0010-versions-and-deprecation-window.md; docs/owner-decisions.md OD-6; change 0139; change 0134, which closed the one window that was open.
How it is verified
Checked by a test. A test, a gate script or a CI workflow names this rule, and the traceability check fails when a file listed below stops naming it.
Where the rule says the compiler enforces it:
src/compiler/ts/deprecation-window.test.ts (the option with no window open: no warning, no emitted byte moved, in both halves); review for the timing of each step.
The files that verify it at commit af54ddad5, each at the first line that names the rule:
Explained in
The sections of the surface document that explain this rule, at commit af54ddad5:
See also
Source
The rule at commit af54ddad5:
docs/language-design.md:1862(the design document)reqs/rules/RULE-1310.md(its traceability item)