feat: add package.dcr-version pin with load-time compatibility warnings

This commit is contained in:
2026-08-08 14:33:46 +08:00
parent a20c61cc88
commit 60d7420929
8 changed files with 198 additions and 5 deletions

View File

@@ -4,6 +4,16 @@ sidebar_label: Changelog
# Changelog
## 0.8.5 (2026-08-08)
- **`package.dcr-version`** — optional CLI version pin in `dcr.toml`.
`dcr new` / `dcr init` write the current version. On config load:
- missing / empty pin → warn "add dcr-version";
- dcr older than pin → warn "update dcr";
- dcr newer than pin → warn "check changelog, update pin";
- equal → silent.
Commands do not fail, warning only (once per path per process).
## 0.8.4 (2026-08-04)
**Added:**