Releases: rubricate/str
Releases · rubricate/str
Release list
v2.2.0 (LTS Legacy Support)
This release completes the modernization of the string encoding layer, bringing strict typing and codebase consistency up to PHP 7.2+ standards without introducing breaking changes.
🔄 Refactored
- Type Safety: Enforced strict argument and return type hints across
AbstractEncoderStrand related encoding utilities. - Code Consistency: Renamed internal legacy variables (e.g.,
$strto$string) to match the codebase naming conventions. - Payload Optimization: Cleaned up internal loops and encoding checks (
seemsUtf8,utf8UriEncode) for cleaner maintenance.
🚀 Performance & Compatibility
- Fully compatible with PHP 7.2 up to current versions.
- Zero BC (Backward Compatibility) breaks detected; internal behavior remains exact.
v1.0.0 (Legacy Support)
Added
- Initial stable release of the Rubricate String component.
- Introduced
AbstractEncoderStrto isolate low-level character encoding logic.
Refactored
- Modernized legacy code structure for clean PHP 5.4+ compatibility (short array syntax
[], strict visibility modifiers). - Moved
utf8UriEncodetoAbstractEncoderStrand changed its visibility toprotectedfor better encapsulation. - Standardized all method arguments to consistently use
$string.
Changed (API Clean up)
Renamed several methods to improve semantics, consistency, and eliminate redundancy:
clean->strip(explicitly states it strips HTML tags).autoLinkUrl->linkUrlautoLinkEmail->linkEmailautoLink->linkencodeHtmlTag->encodeEntities(focused on HTML entities conversion).stripIndentation->flattenSpace(accurately describes flattening block text).