Minijinja

Latest version: v2.7.0

Safety actively analyzes 702116 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 15

2.2.0

- Fixes a bug where some enums did not deserialize correctly when
used with `ViaDeserialize`. 554
- Implemented `IntoDeserializer` for `Value` and `&Value`. 555
- Added `filesizeformat` to minijinja-contrib. 556
- Added support for the `loop_controls` feature which adds
`{% break %}` and `{% continue %}`. 558
- Iterables can now be indexed into. It was already possible previously
to slice them. This improves support for Jinja2 compatibility as Jinja2
is more likely to create temporary lists when slicing lists. 565

2.1.2

- Flush filter and test cache when processing extended template.
This fixes a bug that caused the wrong filters to be used in some
cases. 551

2.1.1

- Added `indent` parameter to `tojson` filter. 546
- Added `randrange`, `lipsum`, `random`, `cycler` and `joiner` to
`minijinja-contrib`. 547
- Added the ability to use `&T` and `Arc<T>` as parameters
to filters and functions if `T` is an `Object`. 548
- `minijinja-cli` now also enables the datetime, timezone and rand features. 549
- Aligned the behavior of the `int` filter closer to Jinja2. 549

2.1.0

- minijinja-cli now supports `.ini` files. 532
- Fixed a bug that caused cycle detection to trigger incorrectly when an included
template extended from another template. 538
- Bumped the minimum version of `self_cell` to 1.0.4. 540
- MiniJinja will now warn if the `serde` feature is disabled. This is in
anticipation of removing the serde dependency in the future. 541
- Improved an edge case with `State::resolve`. It now can resolve the
initial template context in macro calls even if no closure has been
created. 542

2.0.3

- Added new methods to pycompat: `str.endswith`, `str.rfind`,
`str.isalnum`, `str.isalpha`, `str.isascii`, `str.isdigit`,
`str.isnumeric`, `str.join`, `str.startswith`. 522
- Added the missing tests `boolean`, `divisibleby`, `lower` and `upper`. 592
- minijinja-cli now supports YAML aliases and merge keys. 531

2.0.2

- Implemented sequence (+ some iterator) and string repeating with the `*`
operator to match Jinja2 behavior. 519
- Added the new `minijinja::pycompat` module which allows one to register
an unknown method callback that provides most built-in Python methods.
This makes things such as `dict.keys` work. Also adds a new
`--py-compat` flag to `minijinja-cli` that enables it. This improves
the compatibility with Python based templates. 521
- Added a new `|split` filter that works like the `.split` method in Python. 517

Page 2 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.