Releases: thunderer/Shortcode
Releases · thunderer/Shortcode
v0.7.7
What's Changed
- Drop offsets when tokenizing with RegularParser by @funkjedi in #111
- RegularParser now properly takes into account escaped tokens by @thunderer in #120
- Optimize parsers: O(n²) → O(n) offset calculation by @rhukster in #121
- Fixed serialization test by @thunderer in #122
New Contributors
Full Changelog: v0.7.6...v0.7.7
v0.7.6
v0.7.5
v0.7.4
v0.7.3
v0.7.2
v0.7.1
v0.7.0
- many
RegularParserimprovements and fixes:- backtracks now rely on their offsets only, this is an over 10x performance and memory usage improvement which evens its performance with other parsers while still keeping its feature advantage,
- subsequent non-token text fragments are now reported as single
T_STRINGtokens, - fixed #70,
preg_match_all()with large inputs was sometimes silently failing and returning only subset of matches which reduced the number of reported shortcodes, - fixed #58 where invalid token sequences in shortcode content may confuse the parser,
- inlined
content()method effectively halving the call nesting level, - disabled
xdebug.max_nesting_levelduringparse()to prevent development environment parsing errors,
- added support for PHPUnit 6.x with fallback translation for PHP 5.x compatibility,
- dropped PHP 5.3 (still supported) and added PHP 7.2 from Travis matrix,
- asterisk
*is now a valid shortcode name, - minor internal
Processorimprovements, - minor README updates.