Skip to content

refactor(templates): drop the v2 suffix from the invoice package#280

Merged
DemchaAV merged 1 commit into
2.0-devfrom
refactor/2.0-drop-invoice-v2-suffix
Jul 1, 2026
Merged

refactor(templates): drop the v2 suffix from the invoice package#280
DemchaAV merged 1 commit into
2.0-devfrom
refactor/2.0-drop-invoice-v2-suffix

Conversation

@DemchaAV

@DemchaAV DemchaAV commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Why

With the classic invoice stack removed, the layered presets no longer need the v2 package segment — first of the four per-family suffix drops (invoice → proposal → cover-letter → cv), smallest family first to prove the rename mechanics.

What

  • git mv templates/invoice/v2/presetstemplates/invoice/presets (main + test); rewrite templates.invoice.v2templates.invoice across all 15 referencing files (engine, tests, examples, benchmarks).
  • Fix the prose {@code invoice.v2} mentions in surviving javadoc (incl. two in proposal/v2 that named the now-gone package) and the invoice parent package-info.
  • Pure rename: InvoiceV2VisualParityTest passes against the unchanged committed baseline — the render is identical.

Deferred: docs/templates/v2-layered/contributor-guide.md walkthrough (one coherent docs pass in 3-13 after all suffixes drop); the examples' own examples/templates/invoice/v2/ directory name (examples-internal, cosmetic).

Tests

./mvnw verify javadoc:javadoc -pl . — 1378 tests, 0 failures, javadoc clean. Examples + benchmarks compile; perf-smoke + examples-generation smoke (85) green. japicmp report-only on this line.

With the classic invoice stack gone, the layered presets no longer need the
v2 package segment. Move templates.invoice.v2.presets to
templates.invoice.presets and rewrite every import and doc reference across
the engine, tests, examples, and benchmarks. Pure rename — the visual parity
test passes against the unchanged committed baseline, so the render is
identical.

Tests: ./mvnw verify javadoc:javadoc -pl . — 1378 tests, 0 failures, javadoc
clean; examples + benchmarks compile; perf-smoke + examples-generation smoke
(85) green.
@DemchaAV DemchaAV merged commit d17ae9b into 2.0-dev Jul 1, 2026
11 checks passed
@DemchaAV DemchaAV deleted the refactor/2.0-drop-invoice-v2-suffix branch July 1, 2026 21:11
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