Skip to content

Commit 2d60427

Browse files
committed
Release v0.2.0: Major bug fixes and improvements
1 parent 5470d13 commit 2d60427

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.2.0] - 2024-01-XX
11+
12+
### Fixed
13+
14+
- **BREAKING**: Fixed hostname collision detection bug that caused false positives
15+
- Previously adding `host` would fail if `localhost` existed
16+
- Now only exact hostname matches prevent additions
17+
- **BREAKING**: Fixed remove function being too aggressive
18+
- Previously removing `host` would also remove `localhost` and `myhost`
19+
- Now only exact IP+hostname combinations are removed
20+
- Fixed file formatting issues that could create double newlines
21+
- Fixed inconsistent async usage throughout codebase
22+
1023
### Changed
1124

1225
- Renamed project from `locdev` to `hostie`
1326
- Updated to Rust edition 2024
14-
- Updated all dependencies to latest versions
27+
- Removed unnecessary tokio dependency (now fully synchronous)
1528
- Improved code quality with clippy fixes
1629
- Modernized GitHub Actions workflows
30+
- Added comprehensive integration tests (24 total tests)
31+
- Improved cross-platform support (Windows hosts file path)
32+
- Enhanced clap CLI configuration following modern best practices
33+
34+
### Added
35+
36+
- Cross-platform hosts file path detection (Windows/Unix)
37+
- Environment variable support for testing (`HOSTIE_HOSTS_FILE`)
38+
- Comprehensive test suite covering all edge cases and bug scenarios
39+
- Better error handling and user feedback
40+
- Whitespace handling for various hosts file formats
1741

1842
## [0.1.2] - 2024-01-XX
1943

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hostie"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
edition = "2024"
55
description = "hostie is a command-line utility for managing your /etc/hosts file."
66
authors = ["Nicholas Rempel <[email protected]>"]

0 commit comments

Comments
 (0)