Skip to content

docs: add the Versioning and support page - #695

Merged
JuroOravec merged 3 commits into
mainfrom
docs/versioning-page
Nov 15, 2026
Merged

JuroOravec merged 3 commits into
mainfrom
docs/versioning-page

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Part of #624 (item 14, plus the item 4 comment fix and the #601 sms: docs follow-up).

What changes

  • New page about/versioning.md ("Versioning and support"), linked from the nav, README.md and SECURITY.md. It states the maintainer's 1.0.0 decisions for users:
    • pinning: citry>=1.0.0,<2 once 1.0.0 is out, one 0.x minor before that, one minor for citry-ui;
    • what each kind of release may change, what the promise covers (Python names, documented _ options, templates, settings, hooks, node class names but not constructors, CLI and rule names, VS Code settings and commands, the browser JavaScript API and HTTP routes as PR docs(events): freeze Events v1 #693 sections 4.10 and 4.11 list them, server events) and what it does not;
    • the security exception: a 1.x release may refuse input it used to accept when that is needed to close a security hole, and the release notes say so;
    • the experimental list, now including EventsDispatcher and TransportContext;
    • new check rules and which rules have no setting;
    • deprecations: a deprecated feature warns for the rest of 1.x, and Citry does not remove it before 2.0.0;
    • supported versions for every package;
    • rolling deploys between 1.x releases only, matching the PR docs(events): freeze Events v1 #693 spec text on vue-prepared/1 renders;
    • the frozen citry-events/1 protocol;
    • citry-lsp 1.x working with any citry 1.x;
    • the 24-hour State token default from 1.0.0;
    • Python, PyPy, free-threaded, browser and Vue policy.
  • SECURITY.md: the supported-versions table lists all six published packages and stays true before and after 1.0.0.
  • security.md: adds sms: to the allowed link schemes, matching citry_ui/components/_url.py, and says what Citry UI does with a refused URL.
  • ide/template-linting.md: says "most rules" have a rule_* setting, and points to the Diagnostics page, which marks the rules you can change.
  • CitryDeprecationWarning docstring: the new deprecation window, and a correct description of when Python shows the warning.
  • citry/__init__.py comment: the documented _ configuration names are covered.

No changelog entry. This is a docs and docstring change.

Depends on, or must land with

  • docs(events): freeze Events v1 #693 marks EventsDispatcher and TransportContext experimental in their docstrings. Until it lands, the page's claim that every experimental name has an Experimental box is false for those two.
  • The State token PR (C7) must change security.md ("With the default storage and no _max_age, it never expires") and the state.py docstring when it adds the 24-hour default. The page says "From 1.0.0".
  • The Compatibility page PR (C9) should add the browser list (the latest two versions of Chrome, Edge, Firefox and Safari) that this page states.
  • The https://citry.dev/about/versioning/ links in README.md and SECURITY.md return 404 until the 1.0.0 docs are published.

Checks

  • python -m docs_site build-check --strict with the docs venv: 0 errors, 0 warnings. The 26 info notes are all on other pages.
  • ruff check and ruff format --check on the two Python files: pass.
  • Claims checked against source: the _ options (ext/events/handlers.py, extension.py:351-361 for the four app-wide ones), the Experimental: docstring sections, the rule catalog (_diagnostic_catalog.py, _checker.py hard-codes js-data.unsupported-type as a warning), render cache entries keyed by the Citry version (ext/cache/artifact.py:38-40), token handling (ext/events/tokens.py), the Citry UI URL checks, the weekly PyPy 3.11 and 3.14t workflow, the VS Code commands, and every anchor.

Review (Mechanism 6)

An independent fact and prose reviewer and the docs-cold-reader both ran. Folded in:

  • the _ option list: four Events options are app-wide only; added _debounce and _throttle;
  • the rules without a setting: many more than three, so the page names two warnings and points to the Diagnostics page;
  • the experimental list now names the missed citry.analysis functions and OnTemplateForeign* classes;
  • browser API coverage follows PR docs(events): freeze Events v1 #693: anything a docs page teaches, not only the Browser APIs page;
  • HTTP routes: routes that only Citry's own browser code calls are covered for path and method only;
  • rolling deploys:
    • new page to old server can get protocol_mismatch;
    • a refused State token gets invalid_state with no reload prompt;
    • the render cache is ignored on every upgrade and during the deploy window;
    • added a runtime file bullet;
  • the security exception is worded the same in all three places;
  • a patch release now mentions the exception;
  • experimental features are removed from the "may change in a patch release" list;
  • citry-ui pin advice is in its own bullet;
  • the table explains package versions;
  • clearer deprecation and warning-display text in the page and docstring;
  • reflowed the template-linting paragraph;
  • SECURITY.md asks for the newest release of the affected package only.

Not changed:

  • invalid_state versus the decision's "treated as missing" for a new token format. That is a code change (map a wrong format version to stale_state), listed for the rolling-deploy work.
  • Heading renames and replacing the term "covered". The term is defined where it is introduced.
  • Whether the VS Code extension works with any citry-lsp 1.x. It is not decided yet.

🤖 Generated with Claude Code

JuroOravec and others added 2 commits November 15, 2026 12:55
Add docs_site/content/about/versioning.md, which states the Citry 1.x
promise: what an upgrade may and may not change, the experimental
features, new check rules, deprecations (a deprecated name warns for the
rest of 1.x and is removed only in 2.0.0), supported versions, rolling
deploys, the frozen citry-events/1 protocol, citry-lsp compatibility,
the 24-hour State token default, and the Python and browser policy.

Link it from the nav, README.md and SECURITY.md, and list every
published package in the SECURITY.md supported-versions table. Add sms:
to the allowed link schemes in security.md, update the
CitryDeprecationWarning docstring to the new deprecation window, say in
template-linting.md that only most rules have a rule_* setting, and fix
the citry/__init__.py comment that called every _ name internal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Write the page for readers already on 1.x, reorder it from the most
common questions (pinning, supported versions, Python and browsers,
deprecations) to the detailed coverage lists, turn enumerations into
sub-lists, and mark the nav entry for review. Align the security-fix
wording with the merged Events spec (#693) and list EventsDispatcher and
TransportContext as experimental.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Align the Versioning page with the C6 and C7 behavior: a page that gets
a State token, render or fragment it cannot read reloads once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec merged commit 4b0bb44 into main Nov 15, 2026
3 of 13 checks passed
@JuroOravec
JuroOravec deleted the docs/versioning-page branch November 15, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant