|
2 | 2 |
|
3 | 3 | All notable changes to `jinja-php` will be documented in this file. |
4 | 4 |
|
| 5 | +## 2.0.0 - 2025-07-20 |
| 6 | + |
| 7 | +### What's New |
| 8 | + |
| 9 | +**Core Language Features** |
| 10 | + |
| 11 | +- Added macro support with `{% macro %}` and `{% endmacro %}` blocks |
| 12 | +- Added break and continue statement support for loops |
| 13 | +- Added ternary expressions and improved `if-else` parsing with `elif` support |
| 14 | +- Added spread expressions (`*args`) for function argument unpacking |
| 15 | +- Added comment support with `{# #}` syntax |
| 16 | +- Added null literal support (`none`, `None`) |
| 17 | + |
| 18 | +**Template Processing** |
| 19 | + |
| 20 | +- Added custom transformers-specific `generation` tag support |
| 21 | +- Added string concatenation operator (`~`) and multiple string literal support |
| 22 | +- Enhanced set statements with body support and `{% endset %}` blocks |
| 23 | +- Added `for-else` loops with `{% else %}` blocks |
| 24 | + |
| 25 | +**String Manipulation** |
| 26 | + |
| 27 | +- Added new filters: `capitalize`, `replace`, `split` with maxsplit, `join` |
| 28 | +- Enhanced `startswith`/`endswith` filters with tuple argument support |
| 29 | +- Added `items`, `keys`, `values` methods for object iteration |
| 30 | +- Added trimming functions: `strip`, `lstrip`, `rstrip` |
| 31 | + |
| 32 | +**Data Processing** |
| 33 | + |
| 34 | +- Added Python-style negative array indexing (e.g., `messages[-1]`) |
| 35 | +- Added new filters: `tojson`, `map`, `indent` |
| 36 | +- Added proper numeric type handling with `IntegerValue` and `FloatValue` |
| 37 | +- Added support for both lowercase and uppercase boolean literals |
| 38 | + |
| 39 | +### Fixes |
| 40 | + |
| 41 | +- Fixed undefined array key errors in parser and lexer with proper bounds checking |
| 42 | +- Improved error messages and exception handling throughout |
| 43 | +- Enhanced parser architecture with better statement detection |
| 44 | +- Added `JsonSerializable` interface to runtime values |
| 45 | + |
| 46 | +### Breaking Changes |
| 47 | + |
| 48 | +None - all changes are backward compatible. |
| 49 | + |
| 50 | +### New Contributors |
| 51 | + |
| 52 | +* @dkeetonx made their first contribution in https://github.com/CodeWithKyrian/jinja-php/pull/3 |
| 53 | + |
| 54 | +**Full Changelog**: https://github.com/CodeWithKyrian/jinja-php/compare/1.0.0...2.0.0 |
| 55 | + |
5 | 56 | ## v1.0.0 - 2024-03-19 |
6 | 57 |
|
7 | 58 | ### Initial Release |
|
0 commit comments