fix(notices): confine the 4.0.0 release modal to the 4.0.x line

Without an upper bound it would greet somebody who jumped 3.x straight to
4.2 with a summary of a release they skipped, and it would run alongside
the next release's own notice.

maxVersion is exclusive, so 4.1.0 covers every 4.0.x patch. Pinned in the
registry test, together with the handover from the thank-you notice: at no
version may both be active.
This commit is contained in:
Maurice
2026-08-22 11:05:05 +02:00
committed by Maurice
parent bb7c484ca4
commit e9090fa33c
2 changed files with 35 additions and 0 deletions
+4
View File
@@ -106,7 +106,11 @@ export const SYSTEM_NOTICES: SystemNotice[] = [
conditions: [{ kind: 'managed', is: false }],
publishedAt: '2026-08-22T00:00:00Z',
priority: 110,
// The 4.0.x window. The copy is about this release, so somebody arriving on
// 4.1 — or jumping 3.x straight to 4.2 — should get that release's notice
// instead of this one, not a summary of a version they skipped.
minVersion: '4.0.0',
maxVersion: '4.1.0',
},
// ── Thank-you + support the project — shown once per install AND once per upgrade ──