Skip to content

Commit 7f50c96

Browse files
committed
Release v0.6.8: code quality, thread safety, and test coverage improvements
1 parent 7a71d4b commit 7f50c96

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ All notable changes to this project will be documented in this file. The format
88

99
---
1010

11+
## [0.6.8] - 2026-03-28
12+
13+
### Improved
14+
15+
- **Markdown parser thread safety**: Remove unnecessary `sync.RWMutex` from parser; headings are now collected via local state, making concurrent `Parse` calls safe without locking
16+
- **Error wrapping in upgrade**: Use `%w` instead of `%v` for inner errors so callers can unwrap them
17+
- **GitHub source hardening**: Guard `.gitattributes` read with stat + size check to avoid reading oversized files
18+
19+
### Added
20+
21+
- **Checksum verification tests**: Comprehensive test suite for upgrade binary checksum verification (valid match, mismatch, missing entry, case-insensitive hash, multiple formats)
22+
- **SSRF redirect validation tests**: Test coverage for PlantUML redirect target validation (localhost, loopback IP, .local suffix, empty hostname)
23+
24+
---
25+
1126
## [0.6.7] - 2026-03-27
1227

1328
### Fixed
@@ -584,7 +599,8 @@ All notable changes to this project will be documented in this file. The format
584599

585600
---
586601

587-
[Unreleased]: https://github.com/yeasy/mdpress/compare/v0.6.7...HEAD
602+
[Unreleased]: https://github.com/yeasy/mdpress/compare/v0.6.8...HEAD
603+
[0.6.8]: https://github.com/yeasy/mdpress/compare/v0.6.7...v0.6.8
588604
[0.6.7]: https://github.com/yeasy/mdpress/compare/v0.6.6...v0.6.7
589605
[0.6.6]: https://github.com/yeasy/mdpress/compare/v0.6.5...v0.6.6
590606
[0.6.5]: https://github.com/yeasy/mdpress/compare/v0.6.4...v0.6.5

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var (
1515
// Version is overridden at build time via -ldflags.
16-
Version = "0.6.7"
16+
Version = "0.6.8"
1717
// BuildTime is overridden at build time via -ldflags.
1818
BuildTime = "unknown"
1919
// rootCmd is the root command for the mdpress application.

0 commit comments

Comments
 (0)