Skip to content

refactor(templates): remove the classic CV family#277

Merged
DemchaAV merged 1 commit into
2.0-devfrom
refactor/2.0-remove-classic-cv
Jul 1, 2026
Merged

refactor(templates): remove the classic CV family#277
DemchaAV merged 1 commit into
2.0-devfrom
refactor/2.0-remove-classic-cv

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

The Gen-2 CV stack (cv.{presets,builder,spec,layouts} + data.cv) is superseded by the layered cv.v2 surface. This is the last classic template family — with it gone, the entire Gen-2 classic estate (cv + cover-letter + builtins) is removed.

What

  • Delete the classic CV packages + their tests + the CvTestFixtures / CvDocumentSpecMock fixtures. Keep + repoint cv/package-info at cv.v2. All of cv.v2 is untouched (its 14 presets are name-twins of the classic ones in a different package).
  • Delete the now-orphaned templates.api.SlotMap (+ its test) — it was the carrier between the deleted CvBuilder and CvLayout, with no other consumer.
  • Benchmark repoint: the four CV benchmarks (CanonicalBenchmarkSupport, CurrentSpeedBenchmark, jmh.ColdStartJmhBenchmark, jmh.TemplateCvJmhBenchmark) now use cv.v2.presets.ModernProfessional.create() + a new com.demcha.mock.CvDataFixtures.canonicalCv() v2 CvDocument fixture (sibling of the invoice/proposal fixtures). The benchmarks now render the v2 CV — a different renderer, so absolute numbers shift.
  • Strip the classic sampleCv()/sampleHeader() from ExampleDataFactory; repoint the cv + data package-info docs.

Tests

./mvnw verify javadoc:javadoc -pl . — 1458 tests, 0 failures, javadoc clean. Benchmarks test + the perf-smoke run (CurrentSpeedBenchmark smoke — the v2 CV renders, no overflow) + examples-generation smoke (85) all green. japicmp report-only on this line.

The Gen-2 CV stack (cv.{presets,builder,spec,layouts} + data.cv) is
superseded by the layered cv.v2 surface — the last classic template family,
completing the Gen-2 removal.

Delete the classic CV packages, their tests, the CvTestFixtures /
CvDocumentSpecMock fixtures, and the now-orphaned templates.api.SlotMap (the
carrier between the deleted CvBuilder and CvLayout, with no other consumer).
Repoint the four CV benchmarks onto cv.v2.presets.ModernProfessional and a
new com.demcha.mock.CvDataFixtures.canonicalCv() v2 CvDocument fixture
(sibling of the invoice/proposal fixtures) — the benchmarks now render the
v2 CV, a different renderer, so absolute numbers shift. Strip the classic
sampleCv / sampleHeader from ExampleDataFactory and repoint the cv and data
package-info docs at the v2 surface.

Tests: ./mvnw verify javadoc:javadoc -pl . — 1458 tests, 0 failures, javadoc
clean; benchmark gates + perf-smoke (v2 CV renders) + examples-generation
smoke (85) green.
@DemchaAV DemchaAV merged commit bddea8f into 2.0-dev Jul 1, 2026
11 checks passed
@DemchaAV DemchaAV deleted the refactor/2.0-remove-classic-cv branch July 1, 2026 05:18
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