Minijinja

Latest version: v2.7.0

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

Scan your dependencies

Page 11 of 15

0.24.0

- Catch divisions by zero.
- Correctly render `inf` floats.
- Enforce a maximum recursion depth during parsing.
- Added `Value::try_iter` to iterate over maps and sequences. (132)

0.23.0

- Added `Value::from_function`. (121)
- Fixed incorrect location information with blocks.
- Fixed broken nested `super()` calls.
- Improve error reporting for failures in blocks and trying to
`super()` when there is no parent block.
- Performance improvements.
- Added support for `{% import %}` / `{% from .. import .. %}`
and `{% macro %}`. (123)
- Added `Value::is_kwargs` which disambiguates if an object passed
to a function or filter is a normal object or if it represents
keyword arguments.
- Added the ability to call functions stored on objects.
- Added `macros` and `multi_template` features to disable some of
the heavier pieces of MiniJinja.
- Fixed an issue that caused trailing commas not to work in lists.

0.22.1

- Fixed an incorrect manifest for `minijinja-autoreload`.

0.22.0

- Add `defined` and `undefined` tests to always be included.
- Removed `Source::load_from_path`.
- Added `Source::from_path`.

Breaking Changes

- Removed `Source::load_from_path`. Use `Source::with_loader` instead.

0.21.0

- Added custom autoescape settings.
- Added custom formatters.
- Restructured engine internals for greater clarity.
- Added support for rendering to `io::Write`. (111)
- Make it impossible to implement `Filter`, `Test` or `Function`
from outside the crate by sealed the traits. (113)
- Added support for remaining arguments with `Rest`. (114)
- Filters, tests and functions can now borrow arguments. (115)
- Added `Value::as_slice` and `Value::get_get_item_by_index`.
- Added support for span error reporting. (118)
- Greatly improved handling of nested errors. (119)
- `ImpossibleOperation` is now `InvalidOperation`.
- Added support for slice syntax. (120)

Breaking Changes

- `Filter`, `Test` and `Function` are now sealed traits.
- `ErrorKind::ImpossibleOperation` is now `ErrorKind::InvalidOperation`.
- Moved up MSRV to 1.61.0 due to bugs on older rust versions related to
HRTBs.

0.20.0

- Remove internal refcounts from environment.
- Changed `Object` and `FunctionArgs` interface to take
arguments by reference. (101)
- `sync` mode is now always enabled. (104)
- Removed meta API. (105)
- Error no longer implements `PartialEq`.
- Simplified the function interface. Filters, tests and global
functions can now directly return values instead of results. (107)
- MiniJinja no longer silently iterates over non iterable values.

Breaking Changes

- The `meta` API is gone without replacement.
- `Object::call_method` and `Object::call` now take the arguments
as `&[Value]` instead of `Vec<Value>`.
- `Object::call_method`, `Object::call` and `FunctionArgs::from_values`
now take the arguments as `&[Value]` instead of `Vec<Value>`.
- The error object used to implement `PartialEq` but this was implemented
by comparing the error kind instead. Explicitly use the `.kind()`
method of the error if you want the same behavior.
- `DebugInfo` is no longer exposed. This might come back if a better
API can be found.

Page 11 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.