Repository navigation
feat!: land the 1.0.0 public API audit decisions - #684
Merged
Merged
Conversation
List every public name, setting, CLI option and documented extension hook, mark each keep, rename, make private or mark experimental, and put the decisions and the defaults review for 0.9.0 at the top. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Correct the counts and claims the review disproved, add the Component, Citry and CitryRender members, name the covered parts the audit does not list, and prefer docstring marks over renames for RenderFrame and the ExtensionManager dispatch methods. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Make Citry(...), CitrySettings, LintSettings and URLRoute (after the handler) keyword-only, and remove the unused URLRoute.extra field. - Stop accepting Events._topics; it now fails at class definition as an unknown config attribute. - Mark the template analysis API, the host template API, citry.ext.preview, the "payload" render cache mode, the browser plugin methods, the Events extension hooks, the event resolver and codec settings, and RenderFrame experimental with the Experimental: docstring section. - Document the ExtensionManager.on_* methods and has_attrs_resolved_hook as internal. - Re-export safe_eval and unsafe from citry, add CitryDeprecationWarning, add I18nExtension to citry.ext.i18n.__all__, and give citry.reload an __all__ with a reference page. - Record each decision in the audit doc. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Keep LspPosition and LspRange out of the experimental template analysis intro, and say on the manager docstring that an extension's on_files_reset hook stays public. - Test the exact pytest filter string for CitryDeprecationWarning, and that URLRoute refuses extra=. - Clarify the changelog, the reference intros, the guide notes and the experimental docstrings; mark prepare_browser_render() experimental where the dependencies guide names it. - Count the new hot reload reference category in the docs project test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands the decisions from the 1.0.0 public API audit (
docs/design/public_api_1_0_0_audit.md) for 0.9.0, the last release that may break the API. Refs #624.Upgrading from 0.8.x (also in
CHANGELOG.md)Citry(...),CitrySettings,LintSettingsandURLRoutetake their options by name only. A positional argument raisesTypeError.URLRoutestill takes the path and the handler by position.URLRoute(extra=...)is removed. Citry never read it.Events._topics(on a component or inextensions_defaults["events"]) now raisesValueErroras an unknown config attribute. Citry never used it.Other changes
Marked experimental with the
Experimental:docstring section thatComponentGraphalready uses (audit rows 1 to 8):Citry.template_analysis();citry.ext.preview;"payload"render cache mode;Extension.browser_plugin()andprepare_browser_render();on_event,on_event_resultandon_event_error;event_result_resolversandevent_payload_codecssettings;RenderFrame.The reference intros and the guide pages that teach these features say so too.
The
ExtensionManager.on_*methods andhas_attrs_resolved_hooksay in their docstrings that they are internal (row 9).Additions:
safe_evalandunsafeare re-exported fromcitry.CitryDeprecationWarning(aDeprecationWarningsubclass) is new.I18nExtensionis incitry.ext.i18n.__all__.citry.reloadhas an__all__and a "Hot reload" reference page, and the docs site counts it as a public entrypoint.Debugkeeps its name (row 13 was not approved).The audit doc records the decision for each row, and the marker choice (open question 8).
Checks
packages/py/citry/testssuite. Its failures are the same set as on unmodifiedorigin/mainin the same venv, which has a stale compiledcitry_core.docs_site/testsandpython -m docs_site build-checkpass (0 errors). One reference test also fails onorigin/mainin the same environment.ruff check .andruff format --check .pass. mypy passes on the gate's file list, both natively and with--platform linux.Mechanism 8: the reviewer could not open the private advisory survey. This change re-exports the expression sandbox entry points, changes constructor signatures, removes one Events config name, and edits docstrings and docs. The maintainer should say which kinds of bug apply.
🤖 Generated with Claude Code