Releases: crystal-term/reader
Releases · crystal-term/reader
v0.3.2
v0.3.1
Features
- Fixed multiline echo issues and output duplication
- Improved backspace handling for both literal \b and escape sequences
- Enhanced key event naming with specific key names instead of generic terms
- Fixed CRLF line ending handling in multiline mode
- Prevented ANSI escape sequences from interfering with test output
- Added comprehensive test isolation to prevent state contamination
Bug Fixes
- Resolved all multiline echo duplication and formatting issues
- Fixed newline stripping in read_line output
- Improved test reliability and consistency
All 193 tests now pass reliably across different execution contexts.
Release v0.3.0
Fixed
- Constructor type signature now accepts IO instead of IO::FileDescriptor for better testing compatibility
- All test syntax updated from 'should' to 'expect().to' for proper Spectator compatibility
- Multiline specs that were failing now pass correctly
Added
- Support for IO::Memory in constructor for better testing
- Logic to handle non-FileDescriptor IO types gracefully
Technical Details
- Updated get_codes method to read directly from IO::Memory when needed
- Added fallback to STDIN for Console when non-FileDescriptor IO is used
- All 48 tests now pass including previously failing multiline specs
Compatibility
- Maintains backward compatibility with existing FileDescriptor usage
- Improved testability with support for memory-based IO streams