Skip to content

Releases: thunderer/Shortcode

v0.7.7

18 Jun 09:26

Choose a tag to compare

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

20 Dec 19:05

Choose a tag to compare

  • support for PHP 8.4.

v0.7.5

13 Jan 19:01

Choose a tag to compare

  • full Psalm type coverage,
  • moved from Travis to GitHub Actions,
  • support for PHP 8.1,
  • CI runs Infection.

v0.7.4

08 Mar 11:30
79a219f

Choose a tag to compare

Merge pull request #85 from funkjedi/patch-1

Updating getParameter docblock

v0.7.3

03 Dec 22:07
084ed05

Choose a tag to compare

Fixed PHP 7.4 compatibility errors reported in #81 and #82.

v0.7.2

20 Apr 13:20
d19ded9

Choose a tag to compare

Fixed #77, merged quality of life improvements from #73.

v0.7.1

03 Feb 22:51
8f3a65f

Choose a tag to compare

Fixed #74.

v0.7.0

18 Dec 23:30
ccf16e8

Choose a tag to compare

  • many RegularParser improvements 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_STRING tokens,
    • 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_level during parse() 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 Processor improvements,
  • minor README updates.

v0.6.5

08 Jan 00:26

Choose a tag to compare

Extended parameter simple values possible value range, #44.

v0.6.4

13 Dec 22:19

Choose a tag to compare

Fixed minor WordPress compatibility issue with content detection in WordpressParser.