Skip to content

refactor: share TOML parse between detection and migration - #1880

Merged
max-sixty merged 1 commit into
mainfrom
deprecation-parse-once
Apr 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
deprecation-parse-once

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Follow-up to #1876. check_and_migrate() now parses the TOML content once and threads the parsed document and template strings through to both detect_deprecations_from_doc() and write_migration_file(), eliminating the last redundant parse in the deprecation pipeline.

The extract_template_strings and replace_deprecated_vars convenience wrappers (which parsed internally) are now test-only helpers. Production code uses the _from_strings/_from_doc variants exclusively.

This was written by Claude Code on behalf of @max-sixty

…nd_migrate

check_and_migrate() now parses once and passes both the doc and extracted
template strings to detect_deprecations_from_doc() and write_migration_file(),
eliminating the last redundant parse in the deprecation pipeline.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit b83edff into main Apr 1, 2026
23 checks passed
@max-sixty
max-sixty deleted the deprecation-parse-once branch April 1, 2026 22:42
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.

2 participants