Commit a0e1579
feat(changelog): add template-level CHANGELOG.md (CalVer)
Track changes to the PowerShell module template itself with its own
changelog, separate from the downstream-module starter changelog.
CHANGELOG.md (new) — template's own history. Uses Calendar Versioning
(YYYY.MM.DD) since the template has no API contract for SemVer to
describe; date-based answers the question downstream consumers actually
ask ("how stale is my init?"). First entry [2026.04.29] captures the
five chunks landed in the chore/template-sync branch.
Initialize-Template.ps1:
- Add CHANGELOG.md to the substitution-loop exclusion list. Without
this, init would rewrite literal {{ModuleName}} mentions in the
template's history to the user's chosen module name.
- After the README.template.md → README.md swap, add a parallel
CHANGELOG.template.md → CHANGELOG.md swap so downstream modules
receive the placeholder-laden starter changelog (the existing
CHANGELOG.template.md, formerly CHANGELOG.md), not the template's
own history.
tests/Manifest.tests.ps1:
- Skip the "Changelog and manifest versions are the same" assertion
when running on the un-initialized template, where CHANGELOG.md
holds the template's CalVer version which intentionally diverges
from the {{ModuleName}}.psd1 ModuleVersion. Marker: presence of
CHANGELOG.template.md (exists only pre-init; survives init's
substitution loop because nothing in the path matches a placeholder
token). The "valid version in changelog" assertion stays — PowerShell
parses [Version]'2026.4.29' fine.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 65fd9e4 commit a0e1579
3 files changed
Lines changed: 53 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
290 | 300 | | |
291 | 301 | | |
292 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
180 | 188 | | |
181 | 189 | | |
182 | 190 | | |
183 | | - | |
| 191 | + | |
184 | 192 | | |
185 | 193 | | |
186 | 194 | | |
| |||
0 commit comments