Repository navigation
Description
Citry 1.0.0 will be the first stable release. From 1.0.0 on, a breaking change needs a new major version, and we deprecate a feature before we remove it. This issue lists what to decide, what to finish, and what to publish before then. It also sorts the open issues by whether they need to land before 1.0.0.
Planned order: 0.8.0 (in preparation), then 0.9.0 with the last breaking changes, then 1.0.0. The general Roadmap stays the place for feature direction; this issue covers only the stable release.
Where things stand today:
- Current versions:
citry0.7.0,citry-core1.9.0,citry-lsp0.3.0,citry-ui0.4.0,pygments-citry0.2.1 and the VS Code extension 0.3.0. Each package has its own version number.citryrequires one exactcitry-coreversion. - Each of the last two releases (0.6.0 and 0.7.0) shipped a long list of breaking changes, and the Unreleased section of the changelog already has another one (signed State tokens).
- Nothing written down defines what counts as a breaking change, how long a deprecation lasts, or which versions get fixes. The code has no deprecation warnings at all; past changes were made as removals.
citry/__init__.pysays only the names incitry.__all__are public and that submodules may change. The docs teach imports from submodules such ascitry.ext.events,citry.contrib.djangoandcitry_core.safe_eval.- An earlier plan (
docs/design/v1_beta_launch_plan.md) and its beta charter, both from July 2026, proposed a1.0.0b1beta. Some of its facts are out of date (for example Python 3.10 support), but its open questions overlap with the decisions below.
Decisions
Decisions 1 to 11 are decided as written below.
-
How do we get from 0.8.0 to 1.0.0?
Decided: release 0.8.0 (in preparation), then 0.9.0, then 1.0.0 directly. 0.9.0 holds the remaining breaking changes needed before 1.0.0, for example Whitespace differs between Python-rendered HTML and Vue's render #152, v-for aliases accept the $, _ and citry prefixes that v-slot reserves #560 and MakeURLRoutematching linear in path length, whatever the routes #602. There is no release candidate and no1.0.0b1beta, because Citry has no users yet who would test one. 1.0.0 itself adds no breaking changes on top of 0.9.0. -
What does the stability promise cover?
Decided: everything the docs describe, except features marked experimental (decision 9).- Covered: the names in
citry.__all__, the public exports of thecitry.ext.*andcitry.contrib.*modules, the template syntax, component class attributes and nested classes (Kwargs,Slots,State,Lintand the rest), settings, CLI commands and their options, the JSON output ofcitry check --format json, the diagnostic rule names, and the documented extension hooks. - Not covered: names that start with
_,citry_core._rust, the code the template compiler generates, the messages that Citry's own server and browser code send each other (unless the Events task below freezes them), error message text, and the exact whitespace in rendered HTML. - Rewrite the comment in
citry/__init__.pyto match, because today it contradicts the docs.
- Covered: the names in
-
May
citry checkadd new rules in a minor release?
Decided: yes. List new rules in the changelog, and document how to turn a rule off with itsrule_*setting (each check rule has one). A new rule can fail a CI job that passed before, even though no API changed, so this is the one kind of default change a minor release may make. In a minor release, never add a rule that makes a template that renders today fail to render. -
How long does a deprecation last?
Decided: a deprecated feature keeps working and warns for at least two minor releases and at least three months, and is removed only in a major release. Warnings use one public class, such asCitryDeprecationWarning, so users can turn them into errors in their tests. Django also keeps a deprecated feature for at least two releases. Removing it only in a major release is what Pydantic and Vue do. -
How often do we release?
Decided: no fixed schedule. Release a minor version when features are ready and a patch whenever a fix is ready, as Vue does. A fixed date is a promise that is hard to keep for one maintainer. -
Which versions get fixes?
Decided: only the latest 1.x minor gets bug fixes and security fixes, so there are no backport branches during 1.x. When 2.0.0 comes out, the last 1.x minor gets security fixes for 12 months. The 0.x line gets no fixes after 1.0.0, so 0.x users must upgrade, and that upgrade must be small. -
Must a rolling deploy across a minor upgrade keep working?
During a rolling deploy, old and new processes serve the same visitors. They read each other's signed State tokens (the component state Citry keeps in the page), Events requests (the browser calling Python handlers), render cache entries and HTML fragments. The signed State token change in the Unreleased section of the changelog already breaks this once. Decided: within 1.x, a patch or minor upgrade must not make open pages fail. Old pages may reload once, as the State token change does now, but must not show an error. The render cache may be emptied on upgrade. Write this down and test it with one old and one new version. -
What versions do the other packages get?
Decided:citry-lspand the VS Code extension: move both to 1.0.0 together withcitry1.0.0. They are how users get editor support, and today acitryrelease often needs a matchingcitry-lsprelease ("upgrade the packages together" in 0.7.0). From 1.0.0 on,citry-lsp1.x should work with everycitry1.x. That means the datacitry-lspreads fromcitry(the lint data and the i18n index) needs a version check that tolerates a newercitry.citry-ui: keep it at 0.x and marked alpha. Its own plan says its contracts are not settled, and holdingcitry1.0.0 back for it would delay the release a lot.citry-core: keep its own numbering (it is already 1.9.0) and keep the exact pin fromcitry. Say in its README that users should depend oncitry, not oncitry-coredirectly. Re-exportsafe_evalandunsafefromcitryso the docs no longer importcitry_core.pygments-citry: move to 1.0.0 once the template syntax is frozen. It is small and follows the syntax.
-
Which features does 1.0.0 mark as experimental?
Decided: freeze what is documented and settled, and mark the rest experimental with a badge in the docs and a note in the docstring, instead of holding 1.0.0 back.ComponentGraphand its helper types (#92) are marked experimental; the rest of AI eval suite for measuring usefulness of context and validate the need for ComponentGraph #92 waits until after 1.0.0. Other candidates to check:citry.ext.preview, the browser parts of i18n that its design calls deferred, and the extension hooks no outside extension uses yet. An experimental feature can change in a minor release. -
Which Python, framework and browser versions do we support?
Decided:- Python: support every CPython version that upstream still maintains. Add a new Python in a minor release. Drop a version in a minor release after it reaches end of life, and say so in the changelog. This is the one exception to the breaking-change rule, and it matches what Django and Pydantic do. Python 3.11 reaches end of life in October 2027.
- PyPy and free-threaded CPython: support them on a best-effort basis for 1.0.0 and say so. Both run today, but PyPy gets weaker checks (#434) and free-threaded builds turn the GIL back on (#433), and they are tested only weekly.
- Web frameworks: state the oldest supported Django, FastAPI/Starlette and Flask versions on the Compatibility page and test them in CI. Today they appear only as test dependencies.
- Browsers: state the policy, for example the latest two versions of Chrome, Edge, Firefox and Safari, tested on Playwright's Chromium, Firefox and WebKit.
- Vue: Citry bundles one exact Vue version. A Vue minor update may come in a Citry minor release; moving to a new Vue major needs a Citry major.
-
Which built-in names does Citry reserve?
Decided: reserve the names below, so a built-in tag added in 1.x cannot clash with a user component of the same name.- The 18 built-in tag names that exist today:
if,elif,else,for,empty,raw,fill,slot,provide,cache,component,element,error-fallback,js,css,i18n,transandmark. The first eight are tags the template parser reads directly; the other ten are components Citry registers itself. - Four names for tags that issues and design docs already plan:
lazy,teleport,transitionandsuspense. - Every attribute name that starts with
$c-(such as$c-tr) or#c-(such as#c-keyand#c-ignore). One place records which extension owns each$c-name.
Registering a component under an existing built-in name already fails with an error (
citry/component_registry.py). What is new is the written list, the four future names, and the prefix rule with the owner registry. New built-in names come only from the reserved set. This work lands in 0.9.0. - The 18 built-in tag names that exist today:
Tasks
Must means 1.0.0 should not ship without it. Nice means it helps but can follow in 1.0.x or 1.1.0.
Freeze the API and the contracts
- Must: Write a public API audit for 1.0.0, like the one for 0.6.0 (
public_api_0_6_0_audit.md). List every public name, setting, CLI option and documented hook, and mark each as keep, rename, make private or mark experimental. This is the last cheap chance to rename things. - Must: Review the defaults (lint rules,
check_input_types, the expression sandbox,security_csp,security_javascript, cache settings). Changing a default after 1.0.0 is a breaking change; adding a check rule is the one exception (decision 3). - Must: Land every rename and removal from the audit in 0.8.0 or 0.9.0, each with an "Upgrading from" section in the changelog.
- Must: Fix the API comment in
citry/__init__.py. It says only the names in__all__are public; it must also name the public exports ofcitry.ext.*andcitry.contrib.*(decision 2). - Must: Make the rest of the code agree with decision 2: re-export
safe_evalandunsafefromcitry, and make private the public names the audit marks "make private". - Must: Settle the issues in group 1 of the triage below.
- Must (0.9.0): Write down the reserved names (decision 11) in
template_grammar.md: the 18 built-in tag names,lazy,teleport,transitionandsuspense, and the$c-and#c-prefixes. Make registering a component under one of the four future names fail with the same error as the existing built-in names. Record in one place which extension owns each$c-name. Mark the V3 syntax as frozen for 1.x there. - Must: Put the i18n index version back to 1.
citrywrites"version": 2(citry/ext/i18n/extension.py) andcitry-lspexpects 2 (citry_lsp/project.py). This breaks the rule inCLAUDE.mdthat keeps contract versions at 1 before 1.0.0. - Must: Give the data
citry-lspreads fromcitrya version check that accepts anycitry1.x (decision 8). Then acitryminor release no longer forces a newcitry-lsprelease. - Must: Freeze the Events v1 data format (what the browser and server send each other for an event call), or keep it internal.
docs/design/events.mdsays Events v1 is "implemented but not yet frozen". Decide #578 first, because the runtime URL is written into the spec. - Must: Rewrite the "Pre-1.0 contracts stay at version 1" rule in CLAUDE.md for 1.x. A contract version is the number Citry writes into stored or exchanged data (State tokens, cache entries, the lint data) so a reader can tell which format it got. Suggested rule: after 1.0.0, raise a contract version only when old readers cannot handle the new data, and keep reading the previous version for at least one minor release when a rolling deploy can mix them (decision 7).
- Must: In the same rule, say which package owns a contract that two packages share.
citry-coreis already past 1.0.0, so the rule's "owning package" is unclear for data thatcitry-coreandcitryboth handle. - Nice: Add
publish = falseto every Rust crate. None is on crates.io, but several carry 1.x versions (citry_template_parser1.0.0,python_safe_eval1.0.0) that look like public releases.
Add deprecation support
- Must: Add a public
CitryDeprecationWarningand a small helper that warns at the caller's line. Without it, the first deprecation in 1.x has nothing to use. - Must: Run the test suite with deprecation warnings turned into errors, so Citry's own code never calls a deprecated API.
- Nice: Add a changelog section heading for deprecations, so users can find them when they plan the next major upgrade.
Docs
- Must: Add a "Versioning and support" page to the docs site. It states decisions 2 to 7 and 10: what is covered, what counts as breaking (including that the public exports of
citry.ext.*andcitry.contrib.*are public API, along withcitry.__all__), the deprecation rule, which versions get fixes, how to pin (citry>=1.0,<2), and how experimental features are marked. Link the Versioning and support page from the README, the Compatibility page,SECURITY.mdand the changelog. - Must: Write an "Upgrading to 1.0.0" guide. Since 0.9.0 is the last breaking release, it can be short: upgrade to 0.9.x first, follow its "Upgrading from 0.8.x" notes, fix any warnings, then upgrade to 1.0.0.
- Must: Update the Compatibility page with the oldest supported framework versions, the browser policy, and whether PyPy and free-threaded Python builds are supported (decision 10).
- Must: Mark the experimental features from decision 9 with a docs badge and a docstring note.
- Must: Mark
ComponentGraphand its helper types experimental: a badge on their docs page and a note in their docstrings (decision 9, AI eval suite for measuring usefulness of context and validate the need for ComponentGraph #92). - Must: Update the supported-versions table in
SECURITY.md. It says Citry is "pre-1.0", and it lists onlycitryandcitry-core. List every published package and point to the Versioning and support page. - Must: Add a "Versioning" section to
docs/codebase.mdthat tells contributors what counts as breaking and how to deprecate. Today it says only that packages are versioned independently. - Must: Mark
v1_beta_launch_plan.mdand its beta charter as done, with a pointer to this issue, so nobody follows the1.0.0b1plan. - Nice: Update stale status lines in design docs a reader may hit, for example the UI library plan, which still describes the 0.2.0 line.
- Nice: Add an editor's note to the introducing Citry post, which says Citry is "in public beta".
- Nice: Keep the last 0.x docs in the version switcher by listing that version under
includeindocs_site/docs_versions.yml. The file keeps only the newest 15 versions, so 1.x patch releases would push 0.x docs out within a few months.
Packages and versions
- Must: Set
citryto 1.0.0. No pre-release version is planned, so the release scripts and the docs version pattern need no change for it. - Must: Release
citry-lsp1.0.0 and the VS Code extension 1.0.0 withcitry1.0.0 (decision 8). Setcitry-lspto requirecitry>=1.0,<2, and set the extension'scitry.lspVersionto 1.0.0. - Must: Set
citry-uito requirecitry>=1.0,<2. Today it requirescitry>=0.7.0with no upper limit, so a futurecitry2.0.0 would install alongside it. - Must: Fix the PyPI classifiers.
citry,citry-coreandcitry-lspalready sayDevelopment Status :: 5 - Production/Stable, whilecitryis 0.7.0 and the launch post says beta. Decided: move them to4 - Betain 0.8.0 and back to5 - Production/Stablein 1.0.0.pygments-citryhas no Development Status classifier.citry-uistays3 - Alpha. - Nice: Release
pygments-citry1.0.0 once the syntax is frozen. - Nice: Say in the
citry-coreREADME that applications should depend oncitry, which pins the matchingcitry-core.
Release process and support
- Must: Use the 0.9.0 release as the rehearsal for 1.0.0: release every package through the full pipeline, with the docs build, the GitHub release, and the Discord post, and fix whatever needs manual steps.
- Must: Test a rolling deploy from the previous release to the new one (decision 7): an open page with State and Events keeps working, or reloads once without an error.
- Must: Create GitHub milestones
1.0.0and1.1.0and add a description to thev1.1label. The label is on 84 open issues, but nothing says what it means. - Nice: Finish the release conveniences in #608 (start the candidate with one command) and #589 (publish the VS Code extension without stored tokens).
- Nice: Add a CI job that installs the oldest supported version of each dependency (the
>=floors inpyproject.toml) and runs the tests. The floors become a promise at 1.0.0.
Communication
- Must: Write the 1.0.0 blog post in
docs_site/content/blog/. Cover what "stable" means, what is covered and what is experimental, how to upgrade, the support policy, what comes next (link the Roadmap), and thanks. Link to a release tag, not tomain. - Must: Write the 1.0.0 changelog entry: a short summary, an "Upgrading from 0.9.x" section, and a link to the Versioning and support page.
- Must: Update the README: say Citry is stable, add how to pin, and link the Versioning and support page.
- Must: Update the Roadmap. It still lists 0.7.0 as pending.
- Nice: Announce in Discord and the project's other channels, and send the post to newsletters such as Python Weekly and Django News.
- Nice: Ask a few early users to try 0.9.0 on a real project and report problems before 1.0.0.
Right after 1.0.0
- Watch new issues for a week and release 1.0.1 quickly if needed.
- Move the remaining
v1.1issues to the1.1.0milestone or close them. - Check the first 1.x pull requests against the new rules (deprecate before removing, no default changes), so the rules become habit.
- Plan when
citry-uireaches 1.0.0.
Triage of open issues
Every open issue on 2026-11-13, sorted by whether it should land before 1.0.0. The main question for each one: if it ships after 1.0.0, does it need a breaking change or a deprecation cycle? Several placements depend on the decisions above; those are noted in the reason.
1. Must be done before 1.0.0
An item here that changes behavior users could rely on lands in 0.9.0 at the latest.
| Issue | Why |
|---|---|
| #79 | The Roadmap still lists 0.7.0 as pending. Before 1.0.0, only refresh the Roadmap text and link it from the blog post; nothing in it needs to be built first. |
| #145 | Decided: lands in 0.9.0. Decide exactly which order scripts run in, because 1.0.0 will promise it. Loosening the promise later is possible only as an opt-in. |
| #152 | Decided: lands in 0.9.0. The fix changes the whitespace of every page rendered from Python. Decision 2 does not cover exact whitespace, so it is not a breaking change, but every user would see it at once, so it ships with the other changes in the last breaking release. |
| #559 | Decided: lands in 0.9.0. It changes only the exception type, but code that catches RuntimeError stops catching it. Cheap now, breaking later. |
| #560 | Decided: lands in 0.9.0. The fix makes some templates that load today fail to load. After 1.0.0 that breaks user templates. |
| #578 | Decided: before 1.0.0. The runtime URL is written into the Events v1 spec and the docs. Decide it before the Events task above freezes the spec. |
| #601 | Decided: kept as is for 1.0; allowlist after 1.0. Citry keeps today's behavior, where the app checks the scheme of a URL that data puts in a link attribute, as the security page says. An opt-in scheme allowlist may come after 1.0. Two small follow-ups come with this choice: merge the four scheme readers into one, and add the missing sms: scheme to the security page. |
| #602 | Decided: lands in 0.9.0. Replace the regex route matching with a segment matcher that keeps today's results and takes time linear in path length. Refuse two parameters with nothing between them ({a}{b}) with ValueError when routes are mounted. This is the one breaking part: URLRoute is public, and those routes match today. The Django integration registers a simple shape regex, and Citry's matcher splits the values. |
2. Highly recommended before 1.0.0
| Issue | Why |
|---|---|
| #580 | Decided: before 1.0.0. citry preview fails for any component with Events. A new user trying preview hits it right away. The fix changes no API, so it does not need to wait for 0.9.0. |
3. Recommended before 1.0.0
| Issue | Why |
|---|---|
| #123 | A Django comparison page helps Django developers who look at Citry at launch. Docs only. |
| #141 | Citry UI snippets that users copy break the one-attribute-per-line style. Formatting only. |
| #150 | Tabs for the Options API and Composition API save readers from translating examples. Docs only. |
| #160 | A small new warning for {{ }} inside <svg> or <math>. Safe to add later too. |
| #259 | The remaining follow-ups from hands-on testing could lead to default changes, which are cheaper before 1.0.0. |
| #302 | Tightens several internal HTML structure checks. Bug fixes, low risk either way. |
| #442 | Settles when onOpenChange runs in Citry UI. Can wait if citry-ui stays at 0.x (decision 8). |
| #495 | The fix changes CSplitButton markup. Can wait if citry-ui stays at 0.x. |
| #542 | A small crash fix in five Citry UI scripts. Not seen in practice. |
| #561 | Adds a depth limit to translation files. Choosing the limit before 1.0.0 avoids rejecting existing catalogs later. Real catalogs are far below it. |
| #585 | PyPy fails the server-stored State size check. Rises to group 2 if 1.0.0 supports PyPy (decision 10). |
| #600 | Lets security_javascript="forbid" accept <a download href="data:...">. Fits a minor release, but some apps cannot turn on forbid until then. |
| #603 | Writes down which template and extension inputs only the template author may supply. That should be clear before the 1.0.0 promise. |
4. Can wait until after 1.0.0
| Issue | Why |
|---|---|
| #9 | Browser live reload is a new development feature. |
| #10 | The asset compiler would be new, opt-in API. |
| #15 | Benchmarks and CI only. |
| #19 | Streaming rendering is a new output mode next to today's. |
| #20 | Internal optimization. |
| #25 | Internal build change for the browser runtime. |
| #27 | Bindings for other languages would be new packages. Their absence does not affect the Python 1.0.0. |
| #34 | Static export is new. |
| #35 | ESM output, minification and source maps are additions; a new mode can keep today's behavior as the default. |
| #36 | Scoped and inlined CSS is opt-in. |
| #40 | Internal docs tooling. |
| #76 | Repository process. |
| #78 | A JetBrains plugin is a new integration; LSP4IJ already works. |
| #80 | Playground only. |
| #84 | Depends on a date, not on code. |
| #92 | Decided: after 1.0.0. Before 1.0.0, ComponentGraph and its helper types are only marked experimental (see the task above), so they can still change in a minor release. |
| #97 | Outreach, no code here. |
| #112 | Depends on a second maintainer. |
| #116 | New editor feature. |
| #117 | New debugging tool. |
| #118 | New editor setup. |
| #119 | New editor extension. |
| #124 | Waits on upstream. Must be opt-in if it lands after 1.0.0. |
| #129 | Large new feature on existing contracts. |
| #138 | Internal dependency cleanup. |
| #139 | Internal build change; formatter output stays the same. |
| #142 | New feature. |
| #143 | Exploration; any route API would be new. |
| #144 | Performance research. |
| #146 | Makes the first server HTML match Vue more often. An improvement, not a change users rely on. |
| #148 | Loosening the one-id rule later is an addition. |
| #151 | Benchmarks only. |
| #153 | New developer tooling. |
| #157 | Internal dependency update. |
| #158 | Benchmarks and research. |
| #165 | Better recorded after 1.0.0, so the videos do not need redoing. |
| #166 | Makes something rejected today work. |
| #167 | Makes something rejected today work. |
| #169 | Makes something rejected today work. |
| #171 | New warning rule. |
| #227 | Blog or docs content. |
| #248 | Mostly new checks plus small fixes. |
| #258 | CI cleanup that waits on outside fixes. |
| #300 | Internal Rust work for a future JS binding. |
| #308 | Research. |
| #331 | Internal cleanup. |
| #354 | Upstream report; a workaround exists. |
| #378 | Dependency housekeeping. |
| #393 | Edge-case fix, no API change. |
| #405 | CI only. |
| #429 | Clear error today; making it work only adds behavior. |
| #433 | Free-threaded builds already run, with the GIL turned back on. |
| #434 | Only affects how much citry check finds on PyPy. |
| #465 | New setting; a workaround is documented. |
| #492 | Decided: after 1.0.0, in a minor release. It changes citry format output by default, so the changelog must warn that projects running citry format --check in CI need one reformat. |
| #496 | Speed only. |
| #498 | New lint findings. |
| #519 | Accepts templates that are refused today. |
| #528 | Internal measurement. |
| #531 | Release tooling. |
| #536 | Whitespace in generated code. Internal. |
| #537 | Internal compiler output. Speed only. |
| #552 | Dependency housekeeping. |
| #557 | Rendering improvement; nothing fails today. |
| #558 | New lint findings. |
| #567 | Large new feature that fits a minor release. |
| #568 | New helper functions. |
| #589 | Release pipeline change; listed as nice above. |
| #590 | Decided: after 1.0.0; not needed now. A release that can restart after a registry outage, and a longer Open VSX wait, can come in 1.x. |
| #599 | Upstream report. |
| #604 | Test organization only. |
| #605 | Accepts more than today. |
| #606 | Source formatting only. |
| #607 | New lint finding. |
| #608 | Mostly done; the rest are conveniences. |
| #613 | Internal dependency change. |
| #616 | Project admin. |
| #623 | Maintainer tooling follow-up. |
🤖 Generated with Claude Code
Activity
fix: prepare three 1.0.0 contract items from #624
fix: prepare three 1.0.0 contract items from #624 (#629)
feat(registry): reserve lazy, teleport, transition and suspense, and …
JuroOravec commentedon Nov 14, 2026
Follow-ups from the 1.0.0 public API audit (
docs/design/public_api_1_0_0_audit.md, landing with the 0.9.0 audit PR). These need deciding or doing before 1.0.0:citry, 86 of them from private modules. No label makes "citry-lsp 1.x works with every citry 1.x" true, so this needs its own mechanism (a stable module for the lsp, or a tighter version pairing).rule_*setting. Reword the decision to "each rule a user may reasonably disagree with has a setting", or add the settings (additive, so it can also come in 1.x).EventsDispatcherandTransportContext. Mark them experimental if the Events v1 task keeps the call format internal; keep them if it freezes it.The i18n index task above is done (#629) and can be ticked.
docs: apply the second review to the API audit changes (#624)
docs: say who may write safe_eval source and when unsafe applies (#624)
feat!: land the 1.0.0 public API audit decisions (#684)
docs: write the contributor rules for breaking changes, deprecation a…
docs: contributor rules for breaking changes, deprecation and contrac…
JuroOravec commentedon Nov 16, 2026
Citry 1.0.0 was released on 2026-11-16: citry 1.0.0, citry-core 2.1.0, citry-lsp 1.0.0, citry-ui 0.6.0, pygments-citry 1.0.0, and the VS Code extension 1.0.0. The rules users can rely on are on the Versioning page, and the upgrade guide covers moving from 0.9.x. Follow-up work is in the 1.1.0 milestone.
🤖 Generated with Claude Code