Files
website/src/components/StabilityBanner.astro
T
chrnx e2b55ece4a
CI / build (pull_request) Successful in 14s
content: say that only the first release of a year breaks after stable
The FAQ and the stability banner described the deprecation notice but not the rule it serves, which
the docs' stability page and core's SECURITY.md now state: after stable, a release within a year
never breaks a public API, so a ^ range is safe, and removals land only in the first release of a
year.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-11-23 13:42:44 -06:00

44 lines
1.3 KiB
Plaintext

---
// Site-wide notice of the API freeze and the deprecation policy (core CARD-22, D18). It sits above
// the header on every page because it is a promise about the product, not a feature of one section.
// The full policy lives in the docs; this states only what a reader needs before upgrading.
const policyURL = 'https://green-tea.expressive-tea.io/docs/stability/';
---
<aside class="stability" aria-label="API stability">
<p class="wrap stability__text">
<strong>The API is frozen at RC.1.</strong> Until stable, releases are fixes only. After stable, only the
first release of a year can break, and nothing is removed without at least two releases' notice.{' '}
<a href={policyURL}>Read the stability policy</a>
</p>
</aside>
<style>
.stability {
background: color-mix(in srgb, var(--matcha) 12%, var(--base));
border-bottom: 1px solid color-mix(in srgb, var(--matcha) 35%, transparent);
}
.stability__text {
margin: 0 auto;
padding-block: 0.6rem;
color: var(--ink);
font-size: 0.9rem;
line-height: 1.5;
text-align: center;
}
.stability__text strong {
color: var(--matcha);
}
.stability__text a {
color: var(--matcha);
white-space: nowrap;
}
.stability__text a::after {
content: ' →';
}
</style>