You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
## [Unreleased]
24
24
25
25
### Added
26
+
-`src/protocol/MessageType.h`: focused header with `MessageType` enum, `message_type_from_wire()`, `message_type_to_wire()`, and `message_type_to_string()` helpers.
27
+
- Compatibility unit tests: `test_message_type_legacy_req_maps_to_cmd` and `test_message_type_cmd_wire_byte_is_C`.
28
+
- Migration guide in README for `MessageType::Req` → `MessageType::Cmd`.
26
29
-`CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md`, `CHANGELOG.md`, issue/PR templates, and `CITATION.cff` for OSS best practices.
27
30
28
31
### Changed
32
+
-`MessageType::Req` (wire byte `'R'`) renamed to `MessageType::Cmd` (wire byte `'C'`). Parsers accept both `'R'` (legacy) and `'C'` (new) via `message_type_from_wire()`.
33
+
-`src/TinyProtocol.h` now includes `src/protocol/MessageType.h` instead of defining the enum inline.
34
+
- Examples updated to use `message_type_to_wire(MessageType::Cmd)`.
29
35
- Payload size limit reduced from 240 bytes to 64 bytes to enforce micro-message design intent and eliminate a latent `_rawIdx` overflow bug on large payloads.
0 commit comments