Skip to content

Commit 5bc6f17

Browse files
CodeWithKyriangithub-actions[bot]
authored andcommitted
Update CHANGELOG
1 parent 05eed81 commit 5bc6f17

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,57 @@
22

33
All notable changes to `jinja-php` will be documented in this file.
44

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+
556
## v1.0.0 - 2024-03-19
657

758
### Initial Release

0 commit comments

Comments
 (0)